Skip to content
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

Get Collection Items extension - facets - filter queries - sort/type #230

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

g-saracca
Copy link
Contributor

What this PR does / why we need it:

Extends the Get Collection Items use case.
Now returns the facets according to the search.
Also now accepts 3 more properties in the CollectionSearchCriteria - sort, order and filterQueries.
sort: 'name' or 'date'
type: 'asc' or 'desc'
filterQueries: an strings Array of type string:string

Which issue(s) this PR closes:

Suggestions on how to test this:

Visual code inspection and run tests.

Is there a release notes update needed for this change?:

No

@g-saracca g-saracca added Size: 3 A percentage of a sprint. 2.1 hours. GREI Re-arch GREI re-architecture-related Original size: 3 SPA.Q4.1 Collection Page: All Filtering Options FY25 Sprint 12 FY25 Sprint 12 (2024-12-04 - 2024-12-18) labels Dec 9, 2024
@g-saracca g-saracca changed the title Feat/229 get collection items extension facets filter sort Get Collection Items extension - facets - query filters - sort/type Dec 9, 2024
@g-saracca g-saracca changed the title Get Collection Items extension - facets - query filters - sort/type Get Collection Items extension - facets - filter queries - sort/type Dec 9, 2024
@g-saracca g-saracca self-assigned this Dec 9, 2024
@g-saracca g-saracca assigned g-saracca and unassigned g-saracca Dec 9, 2024
@g-saracca g-saracca removed their assignment Dec 10, 2024
@ekraffmiller ekraffmiller self-assigned this Dec 10, 2024
Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, I just have some minor comments below

@g-saracca
Copy link
Contributor Author

@ekraffmiller all changes addressed, thanks for the review!

@g-saracca g-saracca removed their assignment Dec 12, 2024
Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, approved!

@ekraffmiller
Copy link
Contributor

@g-saracca I realized there is one more change needed, there is a SortType Relevance used when the CollectionSearchCriteria contains search text. For example:

Screenshot 2024-12-16 at 3 17 49 PM

I'm going to put the PR back to InReview, sorry about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FY25 Sprint 12 FY25 Sprint 12 (2024-12-04 - 2024-12-18) GREI Re-arch GREI re-architecture-related Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA.Q4.1 Collection Page: All Filtering Options
Projects
Status: In Review 🔎
Development

Successfully merging this pull request may close these issues.

Get Collection Items use case extension
2 participants