Skip to content

Commit

Permalink
Rollback the code so that existing cyNDEx-2 users still gets green check
Browse files Browse the repository at this point in the history
marks for their exported networks.
  • Loading branch information
jingjingbic committed Jan 13, 2020
1 parent b89041e commit b2b8732
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ protected void persistNetworkData(InputStream in, boolean isAspectUpdate)
if (actualCount == 0) {
//metadata.remove(e.getName());
tobeRemovedMetaData.add(e.getName());
warnings.add("Metadata of aspect " + e.getName() + " is removed by NDEx server because this aspect has no data in it.");
}
}
// }
Expand All @@ -516,7 +517,6 @@ protected void persistNetworkData(InputStream in, boolean isAspectUpdate)

for (String name : tobeRemovedMetaData) {
metadata.remove(name);
warnings.add("Metadata of aspect " + name + " is removed by NDEx server because this aspect has no data in it.");
}
// check if all the aspects has metadata
for ( String aspectName : aspectTable.keySet() ){
Expand Down

0 comments on commit b2b8732

Please sign in to comment.