-
-
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 org repo creation being limited by user limits #34030
Conversation
Docs for behavior difference:Previous:
Proposed:
Writing this there's an alternative solution which is to remove user namespace from the list too (like orgs aren't added), but I think is this simpler and less confusing. |
Can we add some comments? IIRC this is a longstanding problem, many discussions, still unresolved .... (ps: fix ui bug when user can't create repo but org can #15924 ) ps: it looks good to me to leave the check to backend, but do not block user by the frontend. |
I'd like to give users an early warning that the action will fail but I think it's a more complicated solution which would end up needing JS or more understanding of frontend which I lack ATM. Maybe the page should be redone from scratch - no clue there. Where should I add the comments (and anything in particular you'd want me to put in them)? posting techknowlogick's comment so it's not lost in discord:
I've tested it manually and user gets the same error as before, just after submitting the form now. |
I will take a try |
39c9e97
to
1d8f02b
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Not sure whether it could apply to 1.23 clearly. If there is conflict, I could backport it manually. |
1d8f02b
to
fbc1819
Compare
fbc1819
to
bb7a83e
Compare
Wait for more feedbacks before merge. |
83b61c9
to
48f6168
Compare
0fe18a1
to
bd78809
Compare
bd78809
to
bfbc452
Compare
Does the new change look good to you? |
I would like to keep them as-is, because these messages belong to different logic. Or, maybe we could just disable the "submit" button, to avoid the duplicate error message? |
That's what I was suggesting - to disable submit button when user namespace is chosen (if appropriate) |
LGTM |
* giteaofficial/main: [skip ci] Updated translations via Crowdin Add toggleClass function in dom.ts (go-gitea#34063) Add a config option to block "expensive" pages for anonymous users (go-gitea#34024) add additional ReplaceAll in pathsep to cater for different pathsep (go-gitea#34061) [skip ci] Updated translations via Crowdin enable staticcheck QFxxxx rules (go-gitea#34064) update to golangci-lint v2 (go-gitea#34054) Add descriptions for private repo public access settings and improve the UI (go-gitea#34057) Add anonymous access support for private/unlisted repositories (go-gitea#34051) Hide activity contributors, recent commits and code frequrency left tabs if there is no code permission (go-gitea#34053) Update action status badge layout (go-gitea#34018) Add anonymous access support for private repositories (backend) (go-gitea#33257) Simplify emoji rendering (go-gitea#34048) Adjust the layout of the toolbar on the Issues/Projects page (go-gitea#33667) Fix bug on downloading job logs (go-gitea#34041) Fix git client accessing renamed repo (go-gitea#34034) Decouple Batch from git.Repository to simplify usage without requiring the creation of a Repository struct. (go-gitea#34001) fix org repo creation being limited by user limits (go-gitea#34030) Fix the issue with error message logging for the `check-attr` command on Windows OS. (go-gitea#34035) Try to fix check-attr bug (go-gitea#34029)
fixes an issue where user is unable to create new repository in organization via UI if repository limits are in place and user has exhausted them for their own namespace.
closes: #15504