-
Notifications
You must be signed in to change notification settings - Fork 0
[CITE-189] Added filter for citation item type #45
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
base: develop
Are you sure you want to change the base?
Conversation
} else { | ||
query.addCriteria(Criteria.where("itemType").ne(ItemType.NOTE.name()).andOperator( | ||
Criteria.where("itemType").ne(ItemType.ATTACHMENT.name()), | ||
Criteria.where("itemType").is(type.name()))); |
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.
if Criteria.where("itemType").is(type.name())
, Criteria.where("itemType").ne(ItemType.NOTE.name())
and Criteria.where("itemType").ne(ItemType.ATTACHMENT.name())
will be true by default.
} else { | ||
query.addCriteria(Criteria.where("itemType").ne(ItemType.NOTE.name()).andOperator( | ||
Criteria.where("itemType").ne(ItemType.ATTACHMENT.name()), | ||
Criteria.where("itemType").is(type.name()))); |
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.
see above
List<? extends ICitation> findCitations(String groupId, long start, int pageSize, boolean isDeleted, List<String> conceptIds, String itemType); | ||
|
||
List<? extends ICitation> findCitationsInCollection(String groupId, String collectionId, long start, int pageSize, List<String> conceptIds); | ||
List<? extends ICitation> findCitationsInCollection(String groupId, String collectionId, long start, int pageSize, List<String> conceptIds, String itemType); |
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.
the enum should be passed in
Guidelines for Pull Requests
If you haven't yet read our code review guidelines, please do so, You can find them here.
Please confirm the following by adding an x for each item (turn
[ ]
into[x]
).Please provide a brief description of your ticket
(you can copy the ticket if it hasn't changed)
https://diging.atlassian.net/browse/CITE-189
...Put description here...
On the citation list page, it should be possible to filter by type.
Anything else the reviewer needs to know?
... describe here ...