-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Fix organization menu and packages details & refactor org menu #33928
base: main
Are you sure you want to change the base?
Conversation
dfdebdd
to
8da4b0d
Compare
routers/web/user/code.go
Outdated
ctx.ServerError("PrepareOrgHeader", err) | ||
return | ||
} | ||
} |
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.
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.
@wxiaoguang I will attempt to refactor this section and extract more common code.
Is this PR active? Maybe it's good to have it in 1.24, ps: a recent similar PR: |
Thank you very much. I will try to add some asserts to make sure there won't be new regression in the future. Let me try. |
Found more problems in old code. A lot of duplicate calls. Maybe we need to do more refactoring. The mess started from "Count only visible repos on profile (#25928)", after that PR, the code is keeping being patched and copied-pasted. |
All right. let me refactor again. |
I could also help later 😄 |
Note: Throwing in a bunch of unrelated variables could slow things down, but honestly, it's mostly just the UI, so no worries. |
Fix missing items in organization menu.
Menu
Show
Before:
After:
Packages
keep it consistent with the other pages.
Show
Before:
After: