3535import org .omg .sysml .internal .impl .WorkingDataVersionImpl ;
3636import org .omg .sysml .lifecycle .Commit ;
3737import org .omg .sysml .lifecycle .Data ;
38- import org .omg .sysml .lifecycle .DataIdentity ;
3938import org .omg .sysml .lifecycle .DataVersion ;
4039import org .omg .sysml .lifecycle .impl .CommitImpl ;
4140import org .omg .sysml .query .*;
@@ -96,7 +95,7 @@ public List<Data> findByCommitAndQuery(Commit commit, Query query) {
9695 Commit c = em .contains (commit ) ? commit : em .find (CommitImpl .class , commit .getId ());
9796 Query q = query .getId () == null || em .contains (query ) ? query : em .find (QueryImpl .class , query .getId ());
9897 return getCommitIndex (c , em ).getWorkingDataVersion ().stream ()
99- .filter (scope (q ))
98+ // .filter(scope(q))
10099 .map (WorkingDataVersion ::getDataVersion )
101100 .map (DataVersion ::getPayload )
102101 .filter (constrain (q .getWhere ()))
@@ -155,7 +154,7 @@ protected Stream<WorkingDataVersion> streamWorkingDataVersions(Commit commit, En
155154
156155 Set <WorkingDataVersion > _usedDataVersions = ConcurrentHashMap .newKeySet ();
157156 for (ProjectUsage projectUsage : projectUsages ) {
158- Commit usedCommit = projectUsage .getUsedProjectCommit ();
157+ Commit usedCommit = projectUsage .getUsedCommit ();
159158 if (usedCommit == null ) {
160159 continue ;
161160 }
@@ -263,7 +262,7 @@ else if (constraint instanceof CompositeConstraint) {
263262 throw new IllegalArgumentException ("Unknown constraint type: " + constraint .getClass ().getSimpleName ());
264263 }
265264 }
266-
265+ /*
267266 protected Predicate<WorkingDataVersion> scope(Query query) {
268267 if (query.getScope() == null || query.getScope().isEmpty()) {
269268 return ev -> true;
@@ -272,4 +271,5 @@ protected Predicate<WorkingDataVersion> scope(Query query) {
272271 .map(DataIdentity::getId)
273272 .anyMatch(id -> Objects.equals(id, working.getDataVersion().getIdentity().getId()));
274273 }
274+ */
275275}
0 commit comments