-
-
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
Get repo list with OrderBy alpha should respect owner too #30784
Conversation
Maybe we should have both? For dashaboard repositories, this order is better. But for explore, maybe order by repository name is better? |
Hmm I think I prefer new order in both cases. |
no at the moment it's just random if you want to sort in explore! - and for single owner lists this does not have any effect so we are fine there too |
@lunny PS: all other sort types are not affected at all ... so the pull request i cherry picked it form dose not have anything to do with this bugfix. in the end its just a bugfix :) |
What's pages will this change affect? I have tested locally on explore -> repositories -> sort=alphabetically and looks no any affection. Looks like there is a bug here, the code expect |
sure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this change will only affect the dashboard right sidebar's repositories sequences and related APIs but not other places. But I'm confused as to why there is the sort parameter. Looks like it will only be used by API.
yes i can confirm, it's only used at the repo search api and the web route for repo search that the dashbord explicite use ... PS: we might refactor other repo search code paths to use that ... but thats not a bugfix but a refactoring then :) so i can confirm it |
…0784) instead of: - zowner/gcode - awesome/nul - zowner/nul - zowner/zzz we will get: - awesome/nul - zowner/gcode - zowner/nul - zowner/zzz
* giteaofficial/main: Make "sync branch" also sync object format and add tests (go-gitea#30878) Make sure git version&feature are always prepared (go-gitea#30877) Get repo list with OrderBy alpha should respect owner too (go-gitea#30784) Fix some UI problems (dropdown/container) (go-gitea#30849) Fix some UI problems (install/checkbox) (go-gitea#30854)
instead of:
we will get: