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

Archiving a repo pushes it above active repos #12246

Closed
2 of 7 tasks
the1ts opened this issue Jul 14, 2020 · 1 comment · Fixed by #12266
Closed
2 of 7 tasks

Archiving a repo pushes it above active repos #12246

the1ts opened this issue Jul 14, 2020 · 1 comment · Fixed by #12266
Labels
type/enhancement An improvement of existing functionality

Comments

@the1ts
Copy link

the1ts commented Jul 14, 2020

  • Gitea version (or commit ref): 1.13.0+dev-307-g633f52c22
  • Git version: 2.20.1
  • Operating system: Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
  • Log gist:

Description

I have just archived a large number of repos in a project. Rather confusingly this adds the archived tag to the repo which is great and expected, but changes the updated time and moves the repo above the current active repos which to my mind is confusing at best.

In my mind the archive process should not change the updated time on the repo since I now have archived repos at the top of the project repos list. If this is not possible, could repos be sorted by active or archived then time within those categories, this would put archived repos be below those that are still active?

This I think is more a UX issue since archiving means the user has said this repo is no longer important, but we appear to push it up the list of repos which does the opposite and makes it look more important.

I have not changed the sort from the default "recently updated"
...

Screenshots

From try.gitea.io, archive_test1 moved above archive_test2 after I archived it since the archive process touched the changed time.
image

@lunny lunny added the type/enhancement An improvement of existing functionality label Jul 16, 2020
@lunny
Copy link
Member

lunny commented Jul 16, 2020

We just need add NoAutoTime(). when we update the is_archive column. Then updated will not be updated.

zeripath added a commit to zeripath/gitea that referenced this issue Jul 16, 2020
Fix go-gitea#12246

Signed-off-by: Andrew Thornton <art27@cantab.net>
techknowlogick pushed a commit that referenced this issue Jul 16, 2020
Fix #12246

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lauris BH <lauris@nix.lv>
@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

Successfully merging a pull request may close this issue.

2 participants