-
-
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
Fix repo graph JS #31377
Fix repo graph JS #31377
Conversation
So the bug has been fixed in v1.23? |
We do not use getElementById in 1.23 |
Note that this is |
The bug was actually fixed as a side-effect during the refactor: 507fbf4#diff-b1b78ba5dc4cc4c29c14bdb3285dcb7e2893f4afd4904659c6afdad99a49b917R72-R74 Strictly speaking, this is actually a bug in the eslint rule that it even touched this, but as I don't see any negatives in that fix, I'm not even going to report it. |
Unless everyone agrees to rewrite the legacy code carefully and fully test the newly-written code. Otherwise, blindly replacing old code won't work with typescript. |
Typescript addition is not a rewrite. It's more of an enhancement of existing code. Adding type signatures to functions already gets you 90% to type safety because the type inferrence is very good. |
Most bugs are caused by refactoring & rewriting & accessing HTML data/HTTP response. I do not see how typescript would really help daily development at the moment if it doesn't help the refactoring&rewriting work. So at the moment I am not sure whether it is the right time to introduce it. That's just my opinion, I don't understand and I won't block. |
My suggestion is: if a new approach would be introduced, then start it from the hardest part, for example: rewrite |
If I refactor a part of the code, I would definitely want the new parts to be typesafe so it would definitely help in combing the work of type safety and general refactoring which both can be done in one go. I have been writing a lot of typescript lately, and I find it a bit scary to touch a JS codebase given the lack of "safety nets" provided by typescript. |
Fix #31376
Regression of #30395