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

[feat] console - add pagination #254

Merged
merged 6 commits into from May 19, 2022
Merged

[feat] console - add pagination #254

merged 6 commits into from May 19, 2022

Conversation

jbtrystram
Copy link
Member

@jbtrystram jbtrystram commented Mar 18, 2022

The "last page" button is acting as a "next" button, as the registry does not
sends back the total number of devices when limiting, so we cannot calculate the total number of pages. This seems to be the recommended behaviour in patternfly examples.

Allow to pass query options to the wasm request builder

image
image

@ctron ctron added this to the 0.10.0 milestone Mar 21, 2022
The "last page" button is disabled for now, as the registry does not
sends back the total number of devices when limiting. So we cannot
calculate the total number of page.

Allow to pass query options to the wasm request builder
@jbtrystram jbtrystram requested a review from ctron May 17, 2022 15:42
@jbtrystram jbtrystram changed the title [feat] console - add pagination for devices list [feat] console - add pagination May 18, 2022
@ctron
Copy link
Member

ctron commented May 18, 2022

/test

@drogue-bot
Copy link

Aye, aye, captain! … Triggered System Test worklow!

Copy link
Member

@ctron ctron left a comment

Choose a reason for hiding this comment

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

LGTM! Let's check what the CI has to say about it.

I am not happy with the added "query" parameter. However, I am also not happy with the other parameters of this function 😁 … so let's keep this pattern for now (as it is consistent), but maybe refactor this into some more builder-style pattern in the future.

@drogue-bot
Copy link

Total Passed Failed Ignored Filtered Duration
147 147 0 0 0 33m 18s

Git: https://github.com/drogue-iot/drogue-cloud @ refs/heads/feat/paging

Commit: 87376afb551eac6e912da3b010938a5da6018156
Author: jbtrystram <jbtrystram@redhat.com>
Date: Wed, 18 May 2022 10:30:08 -0200

    update patternfly yew dependency

Job: https://github.com/drogue-iot/drogue-cloud-testing/actions/runs/2345953449

Report: https://drogue-iot.github.io/drogue-cloud-testing/test-report/2022/05/18/test-run-2345953449.html

@jbtrystram jbtrystram merged commit f043c9b into main May 19, 2022
@jbtrystram jbtrystram deleted the feat/paging branch May 19, 2022 08:02
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.

None yet

3 participants