Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
docs: add decision record about IDS filtering #1983
docs: add decision record about IDS filtering #1983
Changes from 2 commits
249dce5
45ee4de
3395ea6
d1604e9
5533d85
71cf183
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
IMO this section can be shortened because only two things need to be done:
Range
(for paging) withQuerySpec
, for full querying capabilitiesRange
with object serialization of theQuerySpec
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.
Done.
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.
nope, not quite :) Please highlight that transmitting the
Range
needs to be replaced by transmitting the entireQuerySpec
. Filtering is only one aspect of it. Sorting is another.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.
@paullatzelsperger I'm not sure that introducing
QuerySpec
is the way to go, since the "range" part actually doesn't limitContractOffer
s, butContractDefinition
(if you request a catalog with 50 item you could end up receiving more than 50 contract offers, because of theflatMap
behavior in the service), while thecriteria
part would filter only theAsset
s.In my opinion the
ContractOfferQuery
object should be used, addingdefinitionsRange
andassetCriteria
fields, this will make the process explicitThere 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.
@paullatzelsperger what do you think about @ndr-brt reasoning? I agree with such argument.
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.
@ndr-brt @maciejkizlich-zf here's a weird thing:
ContractOfferQuery.getCriteria()
,.getOffset()
and.getLimit()
appear not to be used anywhere, at least IntelliJ doesn't report any findings.Could we just use those fields? We might even be able to remove the
range
parameter from theContractOfferServiceImpl.queryContractOffers
then.I agree with the opinion that query parameters should affect the list of assets/offers, not the definitions. If that's the case it needs to get fixed.
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.
@maciejkizlich-zf could you adapt your PR as per my last comment regarding the
ContractOfferQuery
?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.
@paullatzelsperger please take a look now, I've added a part regarding ContractOfferQuery.
And yes, we should be able to remove Range from the queryContractOffers(). Also, I'd replace .getOffset and getLimit() with just getRange().