pagination updates doesn't show records by most recently published #62
Labels
No Label
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
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/laconic-console#62
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
createTime
on 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 oncreateTime
and 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 :(