-
Notifications
You must be signed in to change notification settings - Fork 15
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
Enable org queues to use task pagination API #11213
Merged
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
e57d639
Enable org queues to use task pagination API
lowellrex 9849fdd
Actually requesting pages from the API now
lowellrex 3a050cb
Add key to prevent sharing state across sibling components
lowellrex 65769d3
Merge branch 'master' into lowell/11054_frontend_pagination_table
lowellrex e36abdb
Rename task collections for clarity
lowellrex 420d027
Merge branch 'master' into lowell/11054_frontend_pagination_table
lowellrex e5cba68
Update TablePagination test
lowellrex 6aca957
Satisfy eslint
lowellrex ef6c091
Merge branch 'master' into lowell/11054_frontend_pagination_table
lowellrex 219cb22
Update test because shape of config changed
lowellrex 3ea371d
Use built-in total_pages from kaminari
lowellrex 0650e67
Replace TablePagination with Pagination
lowellrex 6d268dc
Merge branch 'master' into lowell/11054_frontend_pagination_table
lowellrex 322402e
Fix sloppy merge
lowellrex 25090e4
Use QueueTable directly in OrganizationQueue
lowellrex 99c52ba
Implement component-level caching
lowellrex f631fa5
Increase test coverage
lowellrex 8d0172b
Merge branch 'master' into lowell/11054_frontend_pagination_table
lowellrex 38722a7
Remove caching
lowellrex eccf405
Remove manual testing toggle
lowellrex 217f45e
Merge branch 'master' into lowell/11054_frontend_pagination_table
lowellrex 6d724d9
Merge branch 'master' into lowell/11054_frontend_pagination_table
7e872f9
Merge branch 'master' into lowell/11054_frontend_pagination_table
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
as I'm reading this, the idea seems to be cache each paged task set on the browser, rather than re-fetching on each page click?
I can see the attraction of that for performance reasons. My only concern would be once sorting/filtering are enabled, that the cache invalidation will be tricky. Also, if someone updates a task in a different browser, that the user in this browser won't see the latest when they page "back" to that task set.
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.
Correct. I think we'll have to handle caching some other way when we do sorting/filtering.
And you're totally right about the different browser window/tab causing cached tasks to be in the incorrect state (though we already have this now with entirely front-end pagination).
Happy to back out the caching of paged tasks if you think that's better.
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.
I think the caching falls under the category of premature optimization. Let's back it out. In theory the pagination itself should make things perform well enough that we don't need caching -- time will tell.