Skip to content

ATLAS-5299: Atlas React UI: Create Subcategory API Fails Due to Missi…#649

Open
Brijesh619 wants to merge 1 commit into
apache:masterfrom
Brijesh619:ATLAS-5299
Open

ATLAS-5299: Atlas React UI: Create Subcategory API Fails Due to Missi…#649
Brijesh619 wants to merge 1 commit into
apache:masterfrom
Brijesh619:ATLAS-5299

Conversation

@Brijesh619
Copy link
Copy Markdown
Contributor

ATLAS-5299: Atlas React UI: Create Subcategory API Fails Due to Missing parentCategoryId in UI Payload

What changes were proposed in this pull request?
Currently in the Atlas React UI, creating a child category (subcategory) under an existing category fails because the API payload is missing the correct parentCategoryId. The UI was previously hardcoding the categoryGuid to the root glossaryTypeGuid rather than the specific parent category the user had selected.

This patch fixes the issue by updating AddUpdateCategoryForm.tsx:

It extracts the cGuid (Category GUID) from the node props.
When the form is generating the payload for a "child" type category, it assigns categoryGuid to cGuid if it exists, gracefully falling back to glossaryTypeGuid if it does not.
This ensures that the correct parent ID is successfully passed to the backend API during subcategory creation.

How was this patch tested?
Manual testing in the UI:

Navigated to the Glossary page in the Atlas React UI.
Selected an existing Glossary category and clicked to add a child Category.
Filled out the Category creation form and submitted.
Verified via browser network tools that the POST request payload now correctly contains the parentCategory: { categoryGuid: "" }.
Confirmed that the API returns a success status and the subcategory successfully renders in the Glossary tree UI without crashing.

@Brijesh619
Copy link
Copy Markdown
Contributor Author

Brijesh619 commented May 27, 2026

Screenshot from 2026-05-27 17-58-25

@Brijesh619
Copy link
Copy Markdown
Contributor Author

Screenshot from 2026-05-27 18-18-49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant