-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SO-5842: core API changes to support resource agnostic upgrade mechanism #1193
Conversation
Expand option key name is WIP.
...from representation
...from SearchResourceRequestBuilder Allow overriding filter options before executing the search request.
commons/com.b2international.commons/src/com/b2international/commons/options/OptionsBuilder.java
Show resolved
Hide resolved
...when resolving a resource uri to an actual branch path. Prevent using special URI paths in dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with some minor notes that should be addressed later
...m.b2international.snowowl.core/src/com/b2international/snowowl/core/TerminologyResource.java
Outdated
Show resolved
Hide resolved
...m.b2international.snowowl.core/src/com/b2international/snowowl/core/TerminologyResource.java
Outdated
Show resolved
Hide resolved
...m.b2international.snowowl.core/src/com/b2international/snowowl/core/TerminologyResource.java
Outdated
Show resolved
Hide resolved
}); | ||
|
||
protected final void expandDependencyUpgrades(List<R> results) { | ||
if (!expand().containsKey("dependencies_upgrades")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that we are following java naming conventions for expand keywords? E.g. inboundRelationships
, statedDescendants
, referenceSet
. The wording should probably follow the method's name or the other way around, e.g. dependencyUpgrades
, upgradeDependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would also be nice to save this in a static field somewhere, like:
Line 113 in 4437ec2
public static final String STATED_ANCESTORS = "statedAncestors"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a temporary expand key, we need dot notation support here, like this dependencies.upgrades()
but unfortunately the current expand parser does not like dots in property names and fails to parse the object. A minor refactor is required to make it work so we had to use underscore instead of dot for the separator.
concept = getConcept(upgradeCodeSystem.getResourceURI(), moduleId); | ||
assertEquals(effectiveTime, concept.getEffectiveTime()); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't forget to add back or refactor these unit tests later on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, that's on my to-do list.
return extensionConcept.getDescriptions().getItems().stream().filter(d -> d.getTerm().equals(extensionFsnTerm)).findFirst().get(); | ||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for these
…snowowl/core/TerminologyResource.java
…snowowl/core/TerminologyResource.java
…snowowl/core/TerminologyResource.java
…ce-agnostic-upgrades
No description provided.