mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-30 22:23:53 +00:00
fix: Add recentupdated
as recognized sort option
- Add `recentupdated` to the `OrderByMap`. - Add integration testing for organization and user repository sorting. - Resolves #5612 - Regression from12e23ee199
where the `recentupdated` case was not added to the map, but was handled seperately as a fallback. The regression came into affect when5a0bc35799
also relied on this map but didn't handle the `recentupdated` case. (cherry picked from commitdf38c41c7a
)
This commit is contained in:
parent
c7e52852bb
commit
642dd61446
6 changed files with 44 additions and 7 deletions
|
@ -28,6 +28,7 @@ func TestOrgRepos(t *testing.T) {
|
|||
users = []string{"user1", "user2"}
|
||||
cases = map[string][]string{
|
||||
"alphabetically": {"repo21", "repo3", "repo5"},
|
||||
"recentupdate": {"repo21", "repo5", "repo3"},
|
||||
"reversealphabetically": {"repo5", "repo3", "repo21"},
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue