order media so that latest added are top #660
No reviewers
Labels
No labels
A: API
A: Backend
A: Federation
A: Front-End
A: I18N
A: Meta
A: Security
Build
C: Bug
C: Discussion
C: Enhancement
C: Feature
Compatibility
Dependency
Design
Documentation
Good first issue
Help welcome
Mobile
Rendering
S: Blocked
S: Duplicate
S: Incomplete
S: Instance specific
S: Invalid
S: Needs Voting/Discussion
S: Ready for review
Suggestion
S: Voted on Loomio
S: Wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Plume/Plume#660
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feature/621"
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?
partial fix for #621
Codecov Report
❓
@ -66,0 +67,4 @@medias::table.filter(medias::owner_id.eq(owner)).order(medias::id.desc()).load::<Self>(conn)is this guaranteed to be such?
do we have a create date anywhere?
@ -66,0 +67,4 @@medias::table.filter(medias::owner_id.eq(owner)).order(medias::id.desc()).load::<Self>(conn)we don't have date, and the ids we use are monotonic counter, unless we overflow that 64b signed counter (not likely to happen)
@ -66,0 +67,4 @@medias::table.filter(medias::owner_id.eq(owner)).order(medias::id.desc()).load::<Self>(conn)i wonder if anyone expects that editing a media pushes it to the top again…
@ -66,0 +67,4 @@medias::table.filter(medias::owner_id.eq(owner)).order(medias::id.desc()).load::<Self>(conn)We can't edit media information for the moment, so…
@ -66,0 +67,4 @@medias::table.filter(medias::owner_id.eq(owner)).order(medias::id.desc()).load::<Self>(conn)well then… pushes [resolve] button
Ideally, it should be done for the paginated version too, so that
/medialists them in the correct order.👍