Skip to content
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

Update to 2.426.x, simplify JSON parsing #909

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

basil
Copy link
Member

@basil basil commented Jul 24, 2024

Now that Prototype.js has been removed in 2.426.x, we can remove the no-longer needed Object.toJSON workaround.

Testing done

mvn clean verify -DskipTests

@basil basil added the internal label Jul 24, 2024
@basil basil requested a review from a team as a code owner July 24, 2024 23:45
@jglick jglick added dependencies Pull requests that update a dependency file and removed internal labels Jul 25, 2024
@jglick jglick changed the title Simplify JSON parsing Update to 2.426.x, simplify JSON parsing Jul 25, 2024
Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated tests do not cover Snippetizer GUI (that I can recall), so did a quick sanity test manually.

@@ -1,8 +1,6 @@
function handlePrototype(url) {
buildFormTree(document.forms.config);
// TODO JSON.stringify fails in some circumstances: https://gist.github.com/jglick/70ec4b15c1f628fdf2e9 due to Array.prototype.toJSON
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Confirmed that the bug described in the Gist is no longer reproducible in script console of either Firefox or Chrome.)

@jglick jglick merged commit 780f54f into jenkinsci:master Jul 25, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants