[
https://issues.apache.org/jira/browse/ATLAS-5339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18096461#comment-18096461
]
ASF subversion and git services commented on ATLAS-5339:
--------------------------------------------------------
Commit 9df46eb180eeeac5992909bd2d5257fb5acf0b70 in atlas's branch
refs/heads/master from Brijesh Bhalala
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=9df46eb18 ]
ATLAS-5339: Atlas React UI: Clicking Create Entity while on an Entity Detail
Page opens the Edit Form instead of Create Form (#693)
* ATLAS-5339: Atlas React UI: Clicking Create Entity while on an Entity Detail
Page opens the Edit Form instead of Create Form
* ATLAS-5339: Atlas React UI: Clicking Create Entity while on an Entity Detail
Page opens the Edit Form instead of Create Form
> Atlas React UI: Clicking Create Entity while on an Entity Detail Page opens
> the Edit Form instead of Create Form
> ----------------------------------------------------------------------------------------------------------------
>
> Key: ATLAS-5339
> URL: https://issues.apache.org/jira/browse/ATLAS-5339
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Affects Versions: 2.5.0
> Reporter: Brijesh Bhalala
> Assignee: Brijesh Bhalala
> Priority: Major
> Attachments: Screenshot from 2026-07-07 14-41-38.png
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> *Overview:* Users are completely blocked from creating a new entity if they
> initiate the action while currently viewing an existing entity's detail page.
> *Root Cause:* The EntityForm modal component incorrectly relies on
> useParams() to determine if it is in "Edit" mode or "Create" mode. When the
> modal is launched from the CreateDropdown while the user is on a
> /#/detailPage/:guid route, useParams() extracts the page's guid. The
> EntityForm mistakenly assumes it should edit the current entity and fetches
> its data, instead of starting with a blank slate for creation.
> *Steps to Reproduce:*
> Navigate to any Entity Detail Page (e.g., /#/detailPage/{some-guid}).
> Click the global + Create button in the sidebar or top bar to create a new
> entity.
> Observe that instead of opening a blank "Create entity" modal with the type
> dropdown, it opens the "Edit entity" modal pre-filled with the data of the
> entity you are currently viewing.
> *Expected Result: *The EntityForm modal should decouple its mode from the URL
> useParams() when opened via the CreateDropdown. It should always open in a
> clean "Create" mode (showing the Search-entity-type dropdown) regardless of
> what page the user is currently on.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)