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

[FR] Sort branches by latest modified + user avatar #12763

Closed
made2140 opened this issue Sep 8, 2020 · 3 comments
Closed

[FR] Sort branches by latest modified + user avatar #12763

made2140 opened this issue Sep 8, 2020 · 3 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@made2140
Copy link

made2140 commented Sep 8, 2020

Description

Currently in Bitbucket it is possible to see branches sorted by latest modified date (top -> bottom).
Of course, BB has it by default, though I would propose to have a sort option to enable sorting in various modes.

In addition, would be quite cool to have last commit's user avatar available to each branch.
This would give easier view of who was last working with specific branch, without clicking into each branch separately

Screenshots

  • Bitbucket
    image

  • Gitea
    image

@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Sep 9, 2020
@lunny
Copy link
Member

lunny commented Jun 16, 2023

depends on #22743

@lunny
Copy link
Member

lunny commented Jun 28, 2023

#22743 have implemented sort by last modified desc, more sort options could be another PRs.

lunny added a commit that referenced this issue Jun 29, 2023
Related #14180
Related #25233 
Related #22639
Close #19786
Related #12763 

This PR will change all the branches retrieve method from reading git
data to read database to reduce git read operations.

- [x] Sync git branches information into database when push git data
- [x] Create a new table `Branch`, merge some columns of `DeletedBranch`
into `Branch` table and drop the table `DeletedBranch`.
- [x] Read `Branch` table when visit `code` -> `branch` page
- [x] Read `Branch` table when list branch names in `code` page dropdown
- [x] Read `Branch` table when list git ref compare page
- [x] Provide a button in admin page to manually sync all branches.
- [x] Sync branches if repository is not empty but database branches are
empty when visiting pages with branches list
- [x] Use `commit_time desc` as the default FindBranch order by to keep
consistent as before and deleted branches will be always at the end.

---------

Co-authored-by: Jason Song <[email protected]>
@lunny
Copy link
Member

lunny commented Jun 29, 2023

I think this has been resolved by #22743

@lunny lunny closed this as completed Jun 29, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

2 participants