-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ui)#12833: soft delete service and edit action restrictions after soft delete #13824
Conversation
limited actions for deleted tables on profiler tab
added soft delete limitations for container and search index custom property tab
@aniketkatkar97 can we add cypress tests for this |
@harshach Yes the tests are almost done. I will raise a separate PR for it. |
const tasksDAGView = useMemo( | ||
() => | ||
!isEmpty(pipelineDetails.tasks) && !isUndefined(pipelineDetails.tasks) ? ( | ||
<Card headStyle={{ background: '#fafafa' }} title={t('label.dag-view')}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we avoid inline staying?
openmetadata-ui/src/main/resources/ui/src/components/TableQueries/TableQueries.tsx
Show resolved
Hide resolved
/> | ||
</Space> | ||
</Col> | ||
{!currentTeam.deleted && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{!currentTeam.deleted && ( | |
{!isTeamDeleted && ( |
...adata-ui/src/main/resources/ui/src/components/Team/TeamDetails/UserTab/UserTab.component.tsx
Show resolved
Hide resolved
<Input | ||
autoComplete="off" | ||
data-testid="confirmation-text-input" | ||
disabled={entityDeleteState.loading === 'waiting'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use autoFocus prop to make it focus instead manual code?
@@ -126,7 +126,7 @@ const CustomEntityDetailV1 = () => { | |||
setIsButtonLoading(false); | |||
} | |||
}, | |||
[selectedEntityTypeDetail.id] | |||
[selectedEntityTypeDetail] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we change this? Can you add details of it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we are using selectedEntityTypeDetail, as well inside the function, and the other data was not updating due to the specified dependancy
getDatabaseSchemas( | ||
const fetchDatabaseSchemas = async (pagingObj?: string) => { | ||
try { | ||
const response = await getDatabaseSchemas( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const response = await getDatabaseSchemas( | |
setSchemaDataLoading(true); | |
const response = await getDatabaseSchemas( |
[open-metadata-ui] Kudos, SonarCloud Quality Gate passed! |
… soft delete (#13824) * Added soft delete option for services * disabled edit actions for deleted entities fixed code smells code refactoring * added loading icon in restore entity modal while API call is pending * fixed code smells * localization changes * changes to make actions disabled for deleted entities * fixed code smell * changes to limit actions for soft deleted teams * localization changes * added deleted badge for soft deleted teams * Fixed unit tests * improved delete modal functionality limited actions for deleted tables on profiler tab * fixed failing unit tests * added missing up vote and down vote functionality for search Index entities * updated the logic to show display name if available in search suggestions * fixed custom properties settings page bug added soft delete limitations for container and search index custom property tab * fixed unit tests * fixed bugs on table details page and container details page * Fixed bug on team details page --------- Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>
… soft delete (#13824) * Added soft delete option for services * disabled edit actions for deleted entities fixed code smells code refactoring * added loading icon in restore entity modal while API call is pending * fixed code smells * localization changes * changes to make actions disabled for deleted entities * fixed code smell * changes to limit actions for soft deleted teams * localization changes * added deleted badge for soft deleted teams * Fixed unit tests * improved delete modal functionality limited actions for deleted tables on profiler tab * fixed failing unit tests * added missing up vote and down vote functionality for search Index entities * updated the logic to show display name if available in search suggestions * fixed custom properties settings page bug added soft delete limitations for container and search index custom property tab * fixed unit tests * fixed bugs on table details page and container details page * Fixed bug on team details page --------- Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>
Describe your changes:
Fixes #12833
I worked on adding edit action checks for soft-deleted entities for the following entities:
Screen.Recording.2023-11-09.at.7.34.57.PM.mov
Screen.Recording.2023-11-09.at.7.42.39.PM.mov
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>