[ 
https://issues.apache.org/jira/browse/ATLAS-5339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brijesh Bhalala updated ATLAS-5339:
-----------------------------------
    Summary: Atlas React UI: Clicking Create Entity while on an Entity Detail 
Page opens the Edit Form instead of Create Form  (was: 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
>
>
> *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)

Reply via email to