-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Update topics repo count when deleting repository #10051
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10051 +/- ##
==========================================
- Coverage 42.29% 42.29% -0.01%
==========================================
Files 619 619
Lines 80879 80879
==========================================
- Hits 34211 34210 -1
- Misses 42458 42461 +3
+ Partials 4210 4208 -2
Continue to review full report at Codecov.
|
@lunny @guillep2k updated to single update command using xorm builder. FYI: |
"`repo_count`": builder.Select("count(*)").From("`repo_topic`").Where(builder.Eq{ | ||
"`repo_topic`.`topic_id`": builder.Expr("`topic`.`id`"), | ||
}), | ||
}).From("`topic`").Where(builder.Eq{"'1'": "1"})) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such cunning evilness
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just wanted to see if it can be done 😆
Fixes #10038