-
Notifications
You must be signed in to change notification settings - Fork 2.8k
console: decouple count query from fetch data query #4269
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
Conversation
|
Review app for commit b297ef6 deployed to Heroku: https://hge-ci-pull-4269.herokuapp.com |
rikinsk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be something going wrong when I am switching the tabs from Browse Rows to some other tab (like Insert row) and then coming back to the Browse rows tab. Its not consistent but sometimes the count doesnt seem to load. Feels like a race condition somehere.
Testing at https://hge-ci-pull-4269.herokuapp.com/console/data/schema/public/tables/test/browse
|
Review app for commit cda0a3b deployed to Heroku: https://hge-ci-pull-4269.herokuapp.com |
|
@rikinsk It should be fixed now. |
console/src/components/Services/Data/TableBrowseRows/ViewActions.js
Outdated
Show resolved
Hide resolved
console/src/components/Services/Data/TableBrowseRows/ViewActions.js
Outdated
Show resolved
Hide resolved
|
Review app for commit e3d0b16 deployed to Heroku: https://hge-ci-pull-4269.herokuapp.com |
|
Review app for commit ad97e1d deployed to Heroku: https://hge-ci-pull-4269.herokuapp.com |
rikinsk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to work well. Regarding UX, I know we decided to show a spinner for the pagination but it felt a little odd not being able to navigate between pages till the count loads. It would be nice to still be able to navigate to next and prev pages till count loads. Maybe react-table has a way to do this or else can we think of some hack?
|
Also noticed one other thing. The bulk selected rows should be reset when we change pages. |
|
Deploy preview for hasura-docs ready! Built with commit 823c066 |
|
|
Review app for commit 1a0733f deployed to Heroku: https://hge-ci-pull-4269.herokuapp.com |
|
/heroku deploy |
|
Review app for commit 8928cee deployed to Heroku: https://hge-ci-pull-4269.herokuapp.com |
console/src/components/Services/Data/TableBrowseRows/ViewActions.js
Outdated
Show resolved
Hide resolved
console/src/components/Services/Data/TableBrowseRows/FilterActions.js
Outdated
Show resolved
Hide resolved
console/src/components/Services/Data/TableBrowseRows/ViewActions.js
Outdated
Show resolved
Hide resolved
marionschleifer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog approved.
|
Review app for commit 8417dc3 deployed to Heroku: https://hge-ci-pull-4269.herokuapp.com |
wawhal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks great.
|
Review app for commit 823c066 deployed to Heroku: https://hge-ci-pull-4269.herokuapp.com |
|
Review app for commit 17c2c18 deployed to Heroku: https://hge-ci-pull-4269.herokuapp.com |
|
Review app for commit 8162d96 deployed to Heroku: https://hge-ci-pull-4269.herokuapp.com |
|
Review app https://hge-ci-pull-4269.herokuapp.com is deleted |
| }, | ||
| }); | ||
|
|
||
| export const getFetchManualTriggersQuery = tableName => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
This PR decouples count query from fetch data query.
Changelog
CHANGELOG.mdis updated with user-facing content relevant to this PR.Affected components
Related Issues
#3793