Skip to content
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

Closed
1 of 3 tasks
aswild opened this issue May 14, 2018 · 3 comments
Closed
1 of 3 tasks
Labels
type/enhancement An improvement of existing functionality
Milestone

Comments

@aswild
Copy link
Contributor

aswild commented May 14, 2018

  • Git version: n/a
  • Gitea version (or commit ref): master
  • Operating system: n/a
  • Database: n/a
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (the dashboard page when signed in)
    • No
    • Not relevant
  • Log gist: n/a

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.

@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label May 14, 2018
aswild added a commit to aswild/gitea that referenced this issue May 24, 2018
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 <allenwild93@gmail.com>
@hasufell
Copy link

hasufell commented Jun 7, 2018

👍 is the patch already in a stage where I can test it?

@aswild
Copy link
Contributor Author

aswild commented Jun 7, 2018

@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 order=1 to order=desc on index.js line 1842 to match the updates I made from review comments.

When #3964 is merged I'll open a new PR here to hook it up to the GUI

lunny pushed a commit that referenced this issue Aug 2, 2018
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 <allenwild93@gmail.com>
aswild added a commit to aswild/gitea that referenced this issue Feb 18, 2019
…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.
lafriks pushed a commit that referenced this issue Feb 19, 2019
…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.
@lafriks lafriks added this to the 1.8.0 milestone Feb 19, 2019
@lafriks
Copy link
Member

lafriks commented Feb 19, 2019

Closing as fixed

@lafriks lafriks closed this as completed Feb 19, 2019
@lafriks lafriks added type/enhancement An improvement of existing functionality and removed type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Feb 19, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests

4 participants