Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
Loading
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. 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.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.