pagination updates doesn't show records by most recently published #62
Open
opened 2024-11-04 20:53:20 +00:00 by zramsay
·
2 comments
No Branch/Tag Specified
Labels
Clear labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Something isn't working
Pull requests that update a dependency file
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Further information is requested
This will not be worked on
An issue or PR manually copied from GitHub.
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/laconic-console#62
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
previously, the console showed the most recently published records. the recent pagination updates are nice but they don't sort very well.
for example, i go to: https://console-sapo.laconic.com/#/registry and can't see the latest records and can't figure out how to see the record i just published
In laconic-console, the fetched records are sorted by
createTimeon the client side. Because of this, we are able to see latest records first in older console as it fetches all the records at once.Whereas in the new console with pagination, we only fetch page-size number of records for a particular page which then get sorted in the console; and these records may not include the latest records. We are using cosmos-sdk's inbuilt pagination, which returns results sorted on the collection's key (in this case the record id).
For having the desired effect of having records paginated and sorted by
createTime, we'll have to create an index oncreateTimeand implement the pagination part "manually" (deviating from the standard pattern) as pagination when iterating on on an index is not supported.oh man, software is hard :(