Skip to content

[2.1] Fixes openmetadata-collate#7389: Task Form designer saves JSON fields as string schema - #38874

Merged
harsh-vador merged 2 commits into
2.1from
backport/2.1/pr-38864
Nov 27, 2026
Merged

harsh-vador merged 2 commits into
2.1from
backport/2.1/pr-38864

Conversation

@gh-bot-collate

Copy link
Copy Markdown

Automated backport of #38864 to 2.1.

Source PR #38864
Author @karanh37
Merge commit e050cba76e5904c1f39c780e8b4905963757cf99
Method Clean cherry-pick — identical to the commit on main.

Opened from openmetadata-collate, which holds the credentials needed to open a PR here. It merges itself once this branch's required checks pass — no review needed. If a check fails it stays open and the author of #38864 is asked to look.

resolver run

… as string schema (#38864)

* Fix Task Form designer saving JSON fields as string schema

New fields and reloaded text fields carry schemaType 'string', so the
'?? object' fallback never fired when switching them to JSON. Normalize a
JSON field's schema type to object/array in the builder and the type switch.

Fixes open-metadata/openmetadata-collate#7389

* Keep multi-select switched to JSON as JSON and test the type switch

* Map the Task Form designer to its Playwright specs

* Test the JSON builder's schema type guard directly

(cherry picked from commit e050cba)
@gh-bot-collate
gh-bot-collate Bot requested a review from a team as a code owner November 26, 2026 14:12
@gh-bot-collate
gh-bot-collate Bot requested review from harsh-vador and removed request for a team November 26, 2026 14:12
@gh-bot-collate gh-bot-collate Bot added the safe to test Add this label to run secure Github workflows on PRs label Nov 26, 2026
@gh-bot-collate

Copy link
Copy Markdown
Author

🤖 This backport will not merge itself: 2.1 has no required status checks, so there is nothing for auto-merge to wait on. Merge it by hand once CI is green.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 This backport is red, so it will not merge itself. @karanh37

Failing: checkstyle, ui-checkstyle, ui-coverage, ui-coverage-tests

The change is not on 2.1 yet. You raised the PR this was backported from, so please take a look. Push a fix to this branch and it merges automatically once the checks go green.

run log

@harsh-vador
harsh-vador merged commit c1feddd into 2.1 Nov 27, 2026
46 checks passed
@harsh-vador
harsh-vador deleted the backport/2.1/pr-38864 branch November 27, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants