Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
eff568c
fix(intake-forms): render every custom-property type correctly in cre…
harshach Jul 29, 2026
15be278
Update generated TypeScript types
github-actions[bot] Jul 29, 2026
3d7d2b4
Merge branch 'main' into harshach/intake-form-property-bug
harshach Jul 29, 2026
c96a4af
fix(intake-forms): version the custom-property prune via EntityUpdater
harshach Jul 29, 2026
50a1f68
fix(intake-forms): guard non-finite numbers, empty tables, markdown v…
harshach Jul 29, 2026
41ee01a
fix(intake-forms): render glossary intake fields with UntitledUI, not…
harshach Jul 29, 2026
80719e4
style(intake-forms): apply prettier formatting
harshach Jul 29, 2026
3f39edb
fix(migrations): survive a non-array requiredFields when backfilling …
harshach Jul 29, 2026
1802f04
style(intake-forms): satisfy the src ESLint + organize-imports checks…
harshach Jul 29, 2026
3aae80c
fix(intake-forms): emit a change event for the custom-property prune
harshach Jul 29, 2026
aa215c4
Removed alert based helperText and nit picks
anuj-kumary Jul 29, 2026
3a4b624
Merge branch 'harshach/intake-form-property-bug' of https://github.co…
anuj-kumary Jul 29, 2026
910c84f
nit
anuj-kumary Jul 29, 2026
0054185
fix ui checkstyles
anuj-kumary Jul 29, 2026
b98ccc0
fix route glossary import/export spec to the ImportExport lane
anuj-kumary Jul 30, 2026
7de0565
ci(playwright): let impact-map select specs moved to the ImportExport…
harshach Jul 30, 2026
6fd0af9
fix(e2e): stabilize multi-enum Autocomplete selection in IntakeForm spec
anuj-kumary Jul 30, 2026
48de6c3
Merge branch 'main' into harshach/intake-form-property-bug
anuj-kumary Jul 30, 2026
5ded29b
Removed custom properties label
anuj-kumary Jul 30, 2026
1a36e80
fix lint issue
anuj-kumary Jul 30, 2026
4cd0bc3
fix unit test
anuj-kumary Jul 30, 2026
1551000
fix(e2e): drop stale Custom Properties heading assertions in IntakeFo…
anuj-kumary Jul 30, 2026
da0745c
fix(e2e): fix two more flaky interactions in IntakeForm custom-proper…
anuj-kumary Jul 30, 2026
2c575af
nit
anuj-kumary Jul 30, 2026
7e8e9eb
fix lint checks
anuj-kumary Jul 30, 2026
fe71f40
fix playwright nit and lint checks
anuj-kumary Jul 30, 2026
d42382b
Merge branch 'main' into harshach/intake-form-property-bug
anuj-kumary Jul 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/playwright/impact-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
"chromium",
"Basic",
"Ingestion",
"ImportExport",
"search-nightly",
"Reindex",
"GlobalSettings"
Expand Down Expand Up @@ -179,7 +180,7 @@
"openmetadata-ui/src/main/resources/ui/src/pages/Glossary/**",
"openmetadata-service/src/main/java/org/openmetadata/service/resources/glossary/**"
],
"projects": ["chromium", "Basic"],
"projects": ["chromium", "Basic", "ImportExport"],
"specs": [
"playwright/e2e/Features/Glossary/**/*.spec.ts",
"playwright/e2e/Pages/*Glossary*.spec.ts",
Expand Down Expand Up @@ -225,7 +226,7 @@
"openmetadata-ui/src/main/resources/ui/src/components/Auth/**",
"openmetadata-ui/src/main/resources/ui/src/pages/Login/**"
],
"projects": ["chromium", "Basic", "SearchRBAC"],
"projects": ["chromium", "Basic", "SearchRBAC", "ImportExport"],
"specs": [
"playwright/e2e/**/*Permission*.spec.ts",
"playwright/e2e/Pages/Login*.spec.ts",
Expand Down

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Will we need this migration to 2.0 as well?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not needed here, 1.13.3 will be executed for 2.0 as well.
Any migration in lower versions not executed will be executed in higher versions, so its fine

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-- Backfill IntakeForm formFields from the legacy requiredFields representation.
-- requiredFields is only trusted when it is actually an array, and only object
-- entries are carried over, so a JSON null or scalar left by an older write can
-- never turn into a malformed formFields array.
UPDATE intake_form_entity AS intake_form
SET json = JSON_SET(
json,
'$.formFields',
COALESCE(
(
SELECT JSON_ARRAYAGG(
JSON_SET(required_field.field_json, '$.required', CAST('true' AS JSON))
)
FROM JSON_TABLE(
CASE
WHEN JSON_TYPE(JSON_EXTRACT(intake_form.json, '$.requiredFields')) = 'ARRAY'
THEN JSON_EXTRACT(intake_form.json, '$.requiredFields')
ELSE JSON_ARRAY()
END,
'$[*]' COLUMNS (field_json JSON PATH '$')
) AS required_field
WHERE JSON_TYPE(required_field.field_json) = 'OBJECT'
),
JSON_ARRAY()
)
)
WHERE JSON_CONTAINS_PATH(json, 'one', '$.requiredFields')
AND NOT JSON_CONTAINS_PATH(json, 'one', '$.formFields');
Comment thread
Copilot marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-- Backfill IntakeForm formFields from the legacy requiredFields representation.
-- requiredFields is only trusted when it is actually an array: jsonb_array_elements
-- raises "cannot extract elements from a scalar" on a JSON null or scalar value,
-- which would abort the whole upgrade for one malformed row. Non-object entries
-- are skipped for the same reason.
UPDATE intake_form_entity
SET json = jsonb_set(
json,
'{formFields}',
COALESCE(
(
SELECT jsonb_agg(required_field.field_json || '{"required": true}'::jsonb)
FROM jsonb_array_elements(
CASE
WHEN jsonb_typeof(json -> 'requiredFields') = 'array'
THEN json -> 'requiredFields'
ELSE '[]'::jsonb
END
) AS required_field(field_json)
WHERE jsonb_typeof(required_field.field_json) = 'object'
),
'[]'::jsonb
)
)
WHERE jsonb_exists(json, 'requiredFields')
AND NOT jsonb_exists(json, 'formFields');
Loading
Loading