-
-
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
Remove jQuery .text()
#30506
Remove jQuery .text()
#30506
Conversation
77ecf85
to
14bd166
Compare
As I said in Propose to restart 1.22 release #30501 , I have objection for merging more pure refactoring (non-bug-related) PRs into main branch in recent weeks. We should focus on making 1.22 release stable and fix regression bugs at the moment. Just wait for some time to make the main branch stable enough, release 1.22 and start the refactoring when we do not need to heavily fix regression bugs. |
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.
Wait for 1.22 to be a stable release
This PR will only merge into |
The proposal is described in #30501 Refactoring without full test would cause many regressions during the 1.22 release period. I believe Gitea shouldn't introduce too many regressions in a RC version. I think we can take a look at the recent fixed regression bugs by such blindly refactoring, there are a lot, and there are still unfixed ones. Details about recent fixes & regressions:
(and there are more .....) There are enough regressions IMO |
To be clear, I never meant that I don't like refactoring, instead, I always prefer to refactor legacy code to make it more maintainable. I don't care about controllable regressions during development stage, sometimes I also introduce regressions. I only mean that during this release period, we need to focus on making the release as stable as possible. |
I still don't understand why you block this. We fork the release branch, give it 1-2 months of backports and that's generally stable enough for a release. That way, we never have to delay refactors and that has worked well in the past. No idea why you suddenly want to change this process. |
I think I didn't "suddenly" change this process. Actually, I am trying to make Gitea's release to following the history procedure. I started writing PRs since 1.15 or 1.16, from that time, I seldom saw big refactoring during the RC period. Only some are done for various necessary purposes. But I don't understand why 1.22 and 1.23 it should start the refactoring too urgent, it would make more regressions and make backport quite difficult. In old release, I never saw the backport became difficult. |
I dismiss my change request. But I keep my opinion: do the best to make Gitea stable during the release, and make bugfixes easy to backport. |
ps: there is another open regression: on the release page, "download source code archive" causes JS error and doesn't work, I think it should also be fixed. -> Refactor and fix archive link bug #30535 |
Another sample, 1.22 is broken for backporting: #30570 (comment) |
That's just a natural side-effect of changes. Nothing we can do about this except releasing more frequently. |
Tested almost everything now and did ancillary jquery removal while testing.
|
Okay, There is one notable difference between that |
Ready again, now everything is tested and it was good to do so because there were bugs in the previous implementation. |
* giteaofficial/main: Fix line number width in code preview (go-gitea#31307) Delete legacy cookie before setting new cookie (go-gitea#31306) [skip ci] Updated translations via Crowdin Use `querySelector` over alternative DOM methods (go-gitea#31280) Remove jQuery `.text()` (go-gitea#30506) [skip ci] Updated translations via Crowdin Remove sub-path from container registry realm (go-gitea#31293) Fix some URLs whose sub-path is missing (go-gitea#31289)
-> Fix JS error when creating new issue #31383 |
Remove and forbid .text(). Tested some, but not all functionality, but I think these are pretty safe replacements.