-
Notifications
You must be signed in to change notification settings - Fork 68
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
[JENKINS-72358] Replace Prototype.js $(var)
with var
#101
Conversation
https://issues.jenkins.io/browse/JENKINS-72358 reports a JavaScript error when the plus sign is clicked to expand the test results analyzer tree. https://www.jenkins.io/blog/2023/05/12/removing-prototype-from-jenkins/ recommends replacing `$(variable)` with `variable`. That's what I did in 3 cases in this change. I've confirmed that the JavaScript message that was displayed with the released version of the plugin is not displayed with these changes.
@gounthar you are currently a maintainer of this plugin. Would you be willing to review and merge this pull request? |
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.
Thank you, Mark. It looks good to me, at least with my understanding of JS.
Hi @gounthar, I’m pretty new to Jenkins so I hope you don’t mind me asking – is it planned to add the current fix to the official Jenkins plugin releases (if you have the necessary access to change the .hpi file)? I appreciate the help! |
Let's see if Mark and I can publish a release today. 🤞 |
Absolutely, it's perfectly normal and welcome to ask for a release when a fix you're looking for gets merged. Your input is valuable, and we appreciate your interest in using Jenkins and this plugin. 🚀 Feel free to reach out if you have any more questions or if there's anything else you'd like to discuss. |
The release 0.41.0 is available, thanks to the joint efforts of Mark and myself. 🚀 |
Thanks a lot for the released version and the lightning fast reactions 😉 I really appreciate the efforts from both of you and the kind words! |
[JENKINS-72358] Replace Prototype.js
$(var)
withvar
JENKINS-72358 reports a JavaScript error when the plus sign is clicked to expand the test results analyzer tree.
The blog post recommends replacing
$(variable)
withvariable
. That's what I did in 3 cases in this change.I've confirmed that the JavaScript message that was displayed with the released version of the plugin is not displayed with these changes.
Testing done
Interactively verified that I could see the JavaScript warning messages in the web developer console before this change and that the warning messages did not appear after the change. The UI behaved incorrectly before the change and behaved correctly after the change.
Submitter checklist