-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Sort "My Repositories" on dashboard page by recently updated #3963
Comments
The backend SearchRepositoryByName function supports several sort order options, hook these up to the /repos/search API. New parameters for /repos/search: 'sort': alpha, created, updated, size, or id 'order': asc or desc 'sort' defaults to alpha. 'order' defaults to ascending, and is ignored if 'sort' is not specified. The overall default behavior is unchanged (alphabetically ascending). This partially implements issue go-gitea#3963 Signed-off-by: Allen Wild <[email protected]>
👍 is the patch already in a stage where I can test it? |
@hasufell The API enhancement in #3964 is done, just waiting for the Gitea team to merge it when they're ready. You can grab that for testing right now. Hooking the new API parameters to the GUI is easy, but there isn't a single commit you can cherry-pick right now. You can use aswild@d0e1d20 and change When #3964 is merged I'll open a new PR here to hook it up to the GUI |
The backend SearchRepositoryByName function supports several sort order options, hook these up to the /repos/search API. New parameters for /repos/search: 'sort': alpha, created, updated, size, or id 'order': asc or desc 'sort' defaults to alpha. 'order' defaults to ascending, and is ignored if 'sort' is not specified. The overall default behavior is unchanged (alphabetically ascending). This partially implements issue #3963 Signed-off-by: Allen Wild <[email protected]>
…o-gitea#3963) Similar to Github and other git hosting sites, sort the user's repos on the dashboard by last updated rather than alphabetically. An alphabetic sort isn't very useful once a user has more than 15 repos and wants quick access to recent ones that aren't in the first part of the alphabet.
…3963) (#4599) Similar to Github and other git hosting sites, sort the user's repos on the dashboard by last updated rather than alphabetically. An alphabetic sort isn't very useful once a user has more than 15 repos and wants quick access to recent ones that aren't in the first part of the alphabet.
Closing as fixed |
I would like to be able to sort the "My Repositories" table on the Gitea home page by most recently updated (like Github does) rather than by alphabetically. An alphabetic sort isn't particularly useful, when a user has more than 15 repos it shows the same set all the time and newer active repos get buried.
The backend
SearchRepositoryByName
function supports several sort modes, but they're not exposed in the/repos/search
API used by the JS for the widget. Hooking that up was straightfoward and I'll open a PR soon.Passing the new parameters to the API call in the
repo-search
is trivial if we're willing to unconditionally change that behavior. Making it user-selectable (and persistent) would be trickier but still possible.The text was updated successfully, but these errors were encountered: