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

🐛 Fix Add to Collection for page 2+ of works #2023

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

jeremyf
Copy link
Contributor

@jeremyf jeremyf commented Oct 13, 2023

Prior to this commit, when you were on page 2 of your works and selected
a work to add to a collection, the query for available collections would
use the page 2 as part of the collection query. This would mean the
first 100 collections (default page size) that you had access to add
works to were skipped.

With this commit, we omit the query parameters from the works page and
then query collections.

Related to:

Co-authored-by: LaRita Robinson larita@scientist.com

Prior to this commit, when you were on page 2 of your works and selected
a work to add to a collection, the query for available collections would
use the page 2 as part of the collection query.  This would mean the
first 100 collections (default page size) that you had access to add
works to were skipped.

With this commit, we omit the query parameters from the works page and
then query collections.

Related to:

- samvera/hyrax#5972
- samvera/hyrax#5969
- https://github.com/scientist-softserv/adventist-dl/issues/625

Co-authored-by: LaRita Robinson <larita@scientist.com>
@jeremyf jeremyf added the patch-ver for release notes label Oct 13, 2023
@jeremyf jeremyf merged commit ae6de21 into adventist_dev Oct 13, 2023
2 of 4 checks passed
@jeremyf jeremyf deleted the add-to-collection-for-second-page-work branch October 13, 2023 16:43
jeremyf added a commit to scientist-softserv/adventist_knapsack that referenced this pull request Oct 13, 2023
This includes:

- samvera/hyku#2023

> 🐛 Fix Add to Collection for page 2+ of works
>
> Prior to this commit, when you were on page 2 of your works and selected
> a work to add to a collection, the query for available collections would
> use the page 2 as part of the collection query.  This would mean the
> first 100 collections (default page size) that you had access to add
> works to were skipped.
>
> With this commit, we omit the query parameters from the works page and
> then query collections.
>
> Related to:
>
> - samvera/hyrax#5972
> - samvera/hyrax#5969
> - https://github.com/scientist-softserv/adventist-dl/issues/625

Co-authored-by: LaRita Robinson <larita@scientist.com>
jeremyf added a commit to scientist-softserv/adventist_knapsack that referenced this pull request Oct 16, 2023
This includes:

- samvera/hyku#2023

> 🐛 Fix Add to Collection for page 2+ of works
>
> Prior to this commit, when you were on page 2 of your works and selected
> a work to add to a collection, the query for available collections would
> use the page 2 as part of the collection query.  This would mean the
> first 100 collections (default page size) that you had access to add
> works to were skipped.
>
> With this commit, we omit the query parameters from the works page and
> then query collections.
>
> Related to:
>
> - samvera/hyrax#5972
> - samvera/hyrax#5969
> - https://github.com/scientist-softserv/adventist-dl/issues/625

Co-authored-by: LaRita Robinson <larita@scientist.com>
@kirkkwang kirkkwang mentioned this pull request Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-ver for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants