Skip to content

Conversation

agoyal61
Copy link
Contributor

@agoyal61 agoyal61 commented Mar 22, 2023

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]).

  • I have removed all code style changes that are not necessary (e.g. changing blanks across the whole file that don’t need to be changed, adding empty lines in parts other than your own code)
  • I am not making any changes to files that don’t have any effect (e.g. imports added that don’t need to be added)
  • I do not have any sysout statements in my code or commented out code that isn’t needed anymore
  • I am not reformatting any files in the wrong format or without cause.
  • I am not changing file encoding or line endings to something else than UTF-8, LF
  • My pull request does not show an insane amount of files being changed although my ticket only requires a few files being changed
  • I have added Javadoc/documentation where appropriate
  • I have added test cases where appropriate
  • I have explained any part of my code/implementation decisions that is not be self-explanatory

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 ...

} else {
query.addCriteria(Criteria.where("itemType").ne(ItemType.NOTE.name()).andOperator(
Criteria.where("itemType").ne(ItemType.ATTACHMENT.name()),
Criteria.where("itemType").is(type.name())));
Copy link
Member

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())));
Copy link
Member

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);
Copy link
Member

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

@jdamerow jdamerow closed this Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants