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

preserve source query order on detail view #364

Merged
merged 2 commits into from
Oct 7, 2020
Merged

Conversation

marxide
Copy link
Contributor

@marxide marxide commented Sep 30, 2020

The result source IDs from source queries are stored in the user's session in preserved order. The next and previous source IDs are retrieved from the session (if present) and used for the next / previous links.
If no next / previous source is found, no button is displayed.
The list of source IDs is saved each time a source query is made with the source list API (SourceViewSet.list), before any pagination is performed.
Closes #357

@marxide marxide added the enhancement New feature or request label Sep 30, 2020
@marxide marxide added this to the Collaboration beta release milestone Sep 30, 2020
@marxide marxide requested review from ajstewart and srggrs September 30, 2020 19:06
@marxide marxide self-assigned this Sep 30, 2020
srggrs
srggrs previously requested changes Oct 1, 2020
Copy link
Contributor

@srggrs srggrs left a comment

Choose a reason for hiding this comment

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

Some changes. Also add the changelog entry as per slack conversation. Thx

ajstewart
ajstewart previously approved these changes Oct 3, 2020
The result source IDs from source queries are stored in the user's session in preserved order. The next and previous source IDs are retrieved from the session (if present) and used for the next / previous links.
If no next / previous source is found, no button is displayed.
The list of source IDs is saved each time a source query is made with the source list API (`SourceViewSet.list`), before any pagination is performed.
Closes #357
@marxide marxide merged commit 3724c2b into master Oct 7, 2020
@marxide marxide deleted the store-source-query-order branch October 7, 2020 15:52
ajstewart added a commit that referenced this pull request Oct 8, 2020
Also added missing PR #364 changelog details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vast-candidates merger: Make source detail next and previous buttons follow query results
3 participants