Skip to content

Media Sorting Improvement#16425

Open
Leo-Berman wants to merge 6 commits intonextcloud:masterfrom
Leo-Berman:master
Open

Media Sorting Improvement#16425
Leo-Berman wants to merge 6 commits intonextcloud:masterfrom
Leo-Berman:master

Conversation

@Leo-Berman
Copy link

@Leo-Berman Leo-Berman commented Feb 1, 2026

  • Tests written, or not not needed

@Leo-Berman Leo-Berman marked this pull request as ready for review February 2, 2026 20:27
@Leo-Berman Leo-Berman force-pushed the master branch 2 times, most recently from c074f6b to b781830 Compare February 3, 2026 18:58
- Add extractFolderDate to parse YYYY/MM or YYYY/MM/DD from file paths
- Sort gallery items by folder date first, then modification timestamp
- Group gallery sections by month using folder date when available
- Add unit tests for folder date extraction

Signed-off-by: Leo Berman <leograntberman@gmail.com>
Signed-off-by: Leo Berman <leograntberman@gmail.com>
Signed-off-by: Leo Berman <leograntberman@gmail.com>
Signed-off-by: Leo Berman <leograntberman@gmail.com>
Signed-off-by: Leo Berman <leograntberman@gmail.com>
@Leo-Berman
Copy link
Author

maybe this can't be done in the frontend because if we load by timestamp in the database part then the sections will be loaded weirdly anyways?

Signed-off-by: Leo Berman <leograntberman@gmail.com>
@Leo-Berman
Copy link
Author

I made a change so it loads everything all at once which saves the categories but I don't really understand exactly the load it places

@christianlupus
Copy link

Cross-linking discussion from forum here: https://help.nextcloud.com/t/first-pull-request-help-regarding-testing/239607

@tobiasKaminsky, maybe you can have a quick look at this if something like it would be a good idea to implement. Then, maybe you could either give some good advice on what is needed to get this merged or what would be needed to have good chances? Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants