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 version modal - load data on pagination #3648

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Apr 24, 2023

Follows #3595,
open a collection detail when the collection has more than 10 versions available.
Open version selector, more versions, go to page 2, 💥

the version selector modal still operates under the assumption that collections contains all the versions, not just the first page

making the modal query the api on pagination, have a loading spinner, default page size to 10, not 20 to match the loadCollections request

Cc @jctanner , thanks for finding this! :)


Before:
image (1)

After:
20230424194042
20230424194049
20230424194059

@github-actions github-actions bot added backport-4.6 This PR should be backported to stable-4.6 (2.3) backport-4.7 This PR should be backported to stable-4.7 (2.4) labels Apr 24, 2023
Follows ansible#3595

the version selector modal still operates under the assumption that collections contains all the versions, not just the first page

making the modal query the api on pagination, have a loading spinner, default page size to 10, not 20 to match the loadCollections request

No-Issue
@himdel himdel force-pushed the version-modal-fix branch from b57dc34 to 87697d2 Compare April 24, 2023 19:44
@himdel himdel removed the backport-4.6 This PR should be backported to stable-4.6 (2.3) label Apr 24, 2023
@jctanner
Copy link
Contributor

ty!

@himdel himdel merged commit 8e99d29 into ansible:master Apr 26, 2023
@himdel himdel deleted the version-modal-fix branch April 26, 2023 00:09
@patchback
Copy link

patchback bot commented Apr 26, 2023

Backport to stable-4.7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-4.7/8e99d29a571e1e79dc750b76c24da830b421f6f8/pr-3648

Backported as #3653

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Apr 26, 2023
Follows #3595

the version selector modal still operates under the assumption that collections contains all the versions, not just the first page

making the modal query the api on pagination, have a loading spinner, default page size to 10, not 20 to match the loadCollections request

No-Issue

(cherry picked from commit 8e99d29)
himdel added a commit that referenced this pull request Apr 26, 2023
Follows #3595

the version selector modal still operates under the assumption that collections contains all the versions, not just the first page

making the modal query the api on pagination, have a loading spinner, default page size to 10, not 20 to match the loadCollections request

No-Issue

(cherry picked from commit 8e99d29)

Co-authored-by: Martin Hradil <mhradil@redhat.com>
@github-actions github-actions bot added the backported-4.7 This PR has been backported to stable-4.7 (2.4) label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-4.7 This PR should be backported to stable-4.7 (2.4) backported-4.7 This PR has been backported to stable-4.7 (2.4)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants