Skip to content

Replace update repository function in some places #34566

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

Merged
merged 9 commits into from
Jun 17, 2025

Conversation

lunny
Copy link
Member

@lunny lunny commented May 30, 2025

UpdateAllCols is dangerous, the columns should be updated when necessary.

This PR replaces some updateRepository invokes to reduce possible problems and wrongly updated time. Some parts have been fixed in #34388, but some are hidden in the function updateRepository. Alternatively, using UpdateRepositoryColsNoAutoTime to update the changed columns.

Some UpdateRepoSize invokes are duplicated, so they will be removed when extracting from updateRepository.

PS: I suspect #27472 is related. The num_pulls is not right in the database.

@lunny lunny added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label May 30, 2025
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 30, 2025
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label May 30, 2025
@lunny lunny marked this pull request as ready for review May 30, 2025 20:37
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jun 9, 2025
@yp05327 yp05327 changed the title replace update repository function in some places Replace update repository function in some places Jun 10, 2025
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 17, 2025
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Jun 17, 2025
@lunny lunny merged commit 224aa64 into go-gitea:main Jun 17, 2025
26 checks passed
@GiteaBot GiteaBot added this to the 1.25.0 milestone Jun 17, 2025
@lunny lunny deleted the lunny/extract_update_repository branch June 17, 2025 16:54
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Jun 17, 2025
zjjhot added a commit to zjjhot/gitea that referenced this pull request Jun 18, 2025
* giteaofficial/main:
  Remove unused param `doer` (go-gitea#34545)
  Improve alignment of commit status icon on commit page (go-gitea#34750)
  Run `gopls modernize` on codebase (go-gitea#34751)
  Refactor some file edit related code (go-gitea#34744)
  [skip ci] Updated translations via Crowdin
  Fix ghost user in feeds when pushing in an actions, it should be gitea-actions (go-gitea#34703)
  upgrade orgmode to v1.8.0 (go-gitea#34721)
  Support title and body query parameters for new PRs (go-gitea#34537)
  Improve nuget/rubygems package registries (go-gitea#34741)
  Replace update repository function in some places (go-gitea#34566)
  remove unnecessary duplicate code (go-gitea#34733)
  fix: prevent double markdown link brackets when pasting URL (go-gitea#34745)
  Fix JS error for "select" dropdown (go-gitea#34743)
  [skip ci] Updated translations via Crowdin
  Allow renaming/moving binary/LFS files in the UI (go-gitea#34350)
  Clean bindata (go-gitea#34728)
  Refactor container and UI (go-gitea#34736)
  Prevent duplicate form submissions when creating forks (go-gitea#34714)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code type/refactoring Existing code has been cleaned up. There should be no new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants