-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Refactor and fix archive link bug #30535
Conversation
I have fully tested related changes:
|
8a0b599
to
5ba660d
Compare
BTW, what was the regression? |
I have posted the problem in this comment: #30506 (comment) |
Ah I see, I wasn't aware of that button on the release page. |
Another problem with callback is that you can not serialize the execution with queryElems('a', async () => {
await fetch();
}); This will and can only run in parallel. It's another reason why I don't like callbacks in general and avoid them wherever possible. Not a problem with these click handlers, but in other code, it may as well become a problem. |
Developers should know what they are writing and doing. For example, there were a lot of "async event listeners" which call "preventDefault" after await in old code, I fixed them one by one, that's why I don't like using async for event listeners, but we are still using them (and more and more) I do not see any real bad case for using it like this for such code. |
2071f28
to
4c12585
Compare
Fully rewritten |
4c12585
to
516a280
Compare
Regression of go-gitea#29920 Fixes: go-gitea#30569 Also this is a rewriting to eliminate the remaining jQuery usages from code. Co-authored-by: Giteabot <[email protected]>
* giteaofficial/main: [skip ci] Updated translations via Crowdin Mock queue backoff duration (go-gitea#30553) Improve "Reference in new issue" modal (go-gitea#30547) Add a few root files to lint-spell (go-gitea#30530) Refactor and fix archive link bug (go-gitea#30535) Fixup app.example.ini for task section, which is now queue.task (go-gitea#30555) Some following up changes for routes (go-gitea#30550) Add form field id generation, remove duplicated ids (go-gitea#30546) Fix border-radius on view, blame and code search (go-gitea#30545) Disable enter key for accepting code completion in Monaco (go-gitea#30548)
Backport #30535 by wxiaoguang Regression of #29920 Fixes: #30569 Also this is a rewriting to eliminate the remaining jQuery usages from code. --------- Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: silverwind <[email protected]>
Regression of #29920
Fixes: #30569
Also this is a rewriting to eliminate the remaining jQuery usages from code.