Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #323 from Open-MBEE/release/3.4.1
Browse files Browse the repository at this point in the history
Fixing potential infinite loop
  • Loading branch information
HuiJun authored Oct 20, 2018
2 parents d4067c1 + d40a76b commit 507dae2
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,25 @@ jobs:
command: ./jfrog rt config --url $ARTIFACTORY_URL --user $ARTIFACTORY_USER --apikey $ARTIFACTORY_APIKEY --interactive false
- run:
name: Send mms-amp
command: ./jfrog rt u 'mms-ent/repo-amp/target/*.amp' libs-release-local/gov/nasa/jpl/mms/mms-amp/3.4.0/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true
command: ./jfrog rt u 'mms-ent/repo-amp/target/*.amp' libs-release-local/gov/nasa/jpl/mms/mms-amp/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true
- run:
name: Send mms-share-amp
command: ./jfrog rt u 'mms-ent/share-amp/target/*.amp' libs-release-local/gov/nasa/jpl/mms/mms-share-amp/3.4.0/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true
command: ./jfrog rt u 'mms-ent/share-amp/target/*.amp' libs-release-local/gov/nasa/jpl/mms/mms-share-amp/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true
- run:
name: Send mms java client
command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-java-client/mms-java-*.jar' libs-release-local/gov/nasa/jpl/mms/mms-java-client/3.4.0/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true
command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-java-client/mms-java-*.jar' libs-release-local/gov/nasa/jpl/mms/mms-java-client/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true
- run:
name: Send mms java client
command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-java-client/pom.xml' libs-release-local/gov/nasa/jpl/mms/mms-java-client/3.4.0/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true
command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-java-client/pom.xml' libs-release-local/gov/nasa/jpl/mms/mms-java-client/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true
- run:
name: Send mms python client
command: ./jfrog rt u 'mms-ent/repo-amp/target/mms_python_*.zip' libs-release-local/gov/nasa/jpl/mms/mms-python-client/3.4.0/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true
command: ./jfrog rt u 'mms-ent/repo-amp/target/mms_python_*.zip' libs-release-local/gov/nasa/jpl/mms/mms-python-client/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true
- run:
name: Send mms mathematica client
command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-mathematica-*.zip' libs-release-local/gov/nasa/jpl/mms/mms-mathematica-client/3.4.0/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true
command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-mathematica-*.zip' libs-release-local/gov/nasa/jpl/mms/mms-mathematica-client/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true
- run:
name: Send mms matlab client
command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-matlab-*.zip' libs-release-local/gov/nasa/jpl/mms/mms-matlab-client/3.4.0/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true
command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-matlab-*.zip' libs-release-local/gov/nasa/jpl/mms/mms-matlab-client/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true

workflows:
version: 2
Expand Down
2 changes: 1 addition & 1 deletion mms-ent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>gov.nasa.jpl.mbee</groupId>
<artifactId>mms-ent</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
<name>Alfresco Repository and Share Quickstart with database and an embedded Tomcat runner.</name>
<description>This All-in-One project allows to manage all the components involved in Alfresco development (Repo, Share, Solr4, AMPs) in one project
</description>
Expand Down
2 changes: 1 addition & 1 deletion mms-ent/repo-amp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>gov.nasa.jpl.mbee</groupId>
<artifactId>mms-ent</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
</parent>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,10 @@ public String getImmediateParentOfType(String sysmlId, DbEdgeTypes et, Set<DbNod

try (ResultSet rs = statement.executeQuery()) {
while (rs.next()) {
// Project nodetype elements should not have immediate parents
if (rs.getLong(1) == DbNodeTypes.PROJECT.getValue()) {
return null;
}
for (DbNodeTypes dnt : dnts) {
if (dnt.getValue() == rs.getLong(1)) {
return parentId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,11 @@ private static boolean processDeltasForDb(JsonObject delta, String projectId, St
pgh.deleteEdgesForNode(e.get(Sjm.SYSMLID).getAsString(), false, DbEdgeTypes.VIEW);
pgh.deleteEdgesForNode(e.get(Sjm.SYSMLID).getAsString(), false, DbEdgeTypes.CHILDVIEW);

if (e.get(Sjm.SYSMLID).getAsString().equalsIgnoreCase(projectId)) {
// Remove owner from project element
e.remove(Sjm.OWNERID);
}

if (e.has(Sjm.OWNERID) && !e.get(Sjm.OWNERID).isJsonNull() && !e.get(Sjm.SYSMLID).isJsonNull()) {
Pair<String, String> p =
new Pair<>(e.get(Sjm.OWNERID).getAsString(), e.get(Sjm.SYSMLID).getAsString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ public JsonObject createWorkSpace(String projectId, String sourceWorkId, String
wsJson.addProperty(Sjm.CREATOR, user);
wsJson.addProperty(Sjm.MODIFIED, date);
wsJson.addProperty(Sjm.MODIFIER, user);
wsJson.addProperty("status", "creating");
elasticId = emsNodeUtil.insertSingleElastic(wsJson, ElasticHelper.REF);

if (!NO_WORKSPACE_ID.equals(sourceWorkspaceId) && srcWs == null) {
Expand Down
2 changes: 1 addition & 1 deletion mms-ent/repo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<groupId>gov.nasa.jpl.mbee</groupId>
<artifactId>mms-ent</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion mms-ent/runner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>gov.nasa.jpl.mbee</groupId>
<artifactId>mms-ent</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion mms-ent/share-amp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>gov.nasa.jpl.mbee</groupId>
<artifactId>mms-ent</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
</parent>

<!--
Expand Down
2 changes: 1 addition & 1 deletion mms-ent/share/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>gov.nasa.jpl.mbee</groupId>
<artifactId>mms-ent</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion mms-ent/solr-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>gov.nasa.jpl.mbee</groupId>
<artifactId>mms-ent</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
</parent>

<!-- Build Solr Configuration only when we run an embedded Tomcat (i.e. profile run is enabled).
Expand Down

0 comments on commit 507dae2

Please sign in to comment.