Skip to content

[v3-3-test] Include the JSON parse-error message in the Variable form warning (#71780) - #71953

Merged
bbovenzi merged 1 commit into
v3-3-testfrom
backport-b5b39cc-v3-3-test
Aug 24, 2026
Merged

bbovenzi merged 1 commit into
v3-3-testfrom
backport-b5b39cc-v3-3-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

The Variables form warns "Invalid JSON" the moment the value looks
like it might be JSON but doesn't parse. That warning tells the user
something's wrong but not where, so a typo halfway through a large
value is still a hunt.

The browser's SyntaxError from JSON.parse already carries the position
("Unexpected token ',' at position 42 (line 3 column 12)" on V8,
similar on Firefox / Safari). Surface it alongside the localized label
so users can jump straight to the character that broke the parse.

The parser message is emitted by the JS engine and is only ever in
English — mixing it with a localized label is a compromise, but the
position info is more valuable than perfect localization here, and no
browser offers a localized JSON parse error to begin with.
(cherry picked from commit b5b39cc)

Co-authored-by: Pierre Jeambrun pierrejbrun@gmail.com
closes: #68262

… warning (#71780)

The Variables form warns "Invalid JSON" the moment the value looks
like it might be JSON but doesn't parse. That warning tells the user
something's wrong but not where, so a typo halfway through a large
value is still a hunt.

The browser's SyntaxError from JSON.parse already carries the position
("Unexpected token ',' at position 42 (line 3 column 12)" on V8,
similar on Firefox / Safari). Surface it alongside the localized label
so users can jump straight to the character that broke the parse.

The parser message is emitted by the JS engine and is only ever in
English — mixing it with a localized label is a compromise, but the
position info is more valuable than perfect localization here, and no
browser offers a localized JSON parse error to begin with.
(cherry picked from commit b5b39cc)

Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
closes: #68262
@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Aug 21, 2026
@bbovenzi
bbovenzi marked this pull request as ready for review August 21, 2026 20:43
@bbovenzi
bbovenzi merged commit 557c94c into v3-3-test Aug 24, 2026
108 of 117 checks passed
@bbovenzi
bbovenzi deleted the backport-b5b39cc-v3-3-test branch August 24, 2026 13:25
@github-actions github-actions Bot added this to the Airflow 3.3.2 milestone Aug 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.3.2 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

vatsrahul1001 pushed a commit that referenced this pull request Sep 7, 2026
… warning (#71780) (#71953)

The Variables form warns "Invalid JSON" the moment the value looks
like it might be JSON but doesn't parse. That warning tells the user
something's wrong but not where, so a typo halfway through a large
value is still a hunt.

The browser's SyntaxError from JSON.parse already carries the position
("Unexpected token ',' at position 42 (line 3 column 12)" on V8,
similar on Firefox / Safari). Surface it alongside the localized label
so users can jump straight to the character that broke the parse.

The parser message is emitted by the JS engine and is only ever in
English — mixing it with a localized label is a compromise, but the
position info is more valuable than perfect localization here, and no
browser offers a localized JSON parse error to begin with.
(cherry picked from commit b5b39cc)


closes: #68262

Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
@vatsrahul1001 vatsrahul1001 added the type:bug-fix Changelog: Bug Fixes label Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants