Revisit empty repo will always update the repo's timestamp #13918

Closed
opened 2025-11-02 10:57:15 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @changchaishi on GitHub (Jan 6, 2025).

Description

Reproduce steps (Gitea demo):

  1. Create an empty repo from your profile
  2. empty repo shows last updated now
  3. wait after 1 minute
  4. empty repo at profile shows last updated 1 minute ago (expected)
  5. revisit the empty repo's home page, then back to the profile page for the repo list
  6. empty repo shows last updated now (unexpected)

6 is unexpected since we at step 5 do nothing. Suppose the timestamp should stay fixed.

I will create a PR for this. This is a tiny bug.

Expected behavior:
At step 6, the last update time should grow.

Gitea Version

40765b5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Snipaste_2025-01-06_15-09-07
repo
view_home

Git Version

No response

Operating System

No response

How are you running Gitea?

Gitea Demo and Ubuntu sqlite3 latest commit local build

Database

SQLite

Originally created by @changchaishi on GitHub (Jan 6, 2025). ### Description Reproduce steps (Gitea demo): 1. Create an empty repo from your profile 2. empty repo shows last updated `now` 3. wait after 1 minute 4. empty repo at profile shows last updated 1 minute ago (expected) 5. revisit the empty repo's home page, then back to the profile page for the repo list 6. empty repo shows last updated `now` (**unexpected**) 6 is unexpected since we at step 5 do nothing. Suppose the timestamp should stay fixed. I will create a PR for this. This is a tiny bug. Expected behavior: At step 6, the last update time should grow. ### Gitea Version 40765b5 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![Snipaste_2025-01-06_15-09-07](https://github.com/user-attachments/assets/6fc043aa-096d-4843-830c-d02ed699414b) ![repo](https://github.com/user-attachments/assets/c993df18-ba8b-474e-9ca2-b294c04e80b4) ![view_home](https://github.com/user-attachments/assets/dcaded4c-4214-41d0-b1e6-070df58c9d82) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Gitea Demo and Ubuntu sqlite3 latest commit local build ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 10:57:15 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13918