Skip to content
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

feat: prevent delete and archive on parent feature #4913

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Oct 3, 2023

About the changes

Prevent delete and archive of a parent feature.
We have both UI protection and backend API protection.

In the UI we protect against single parent archive:
Screenshot 2023-10-03 at 12 13 25

For the bulk archive and delete we rely on the backend validation for now:

Screenshot 2023-10-03 at 11 42 40

Once we come up with a performant solution for dependencies info in bulk items/lists we can improve bulk archive UI.

Important files

Discussion points

@vercel
Copy link

vercel bot commented Oct 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2023 10:21am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Oct 3, 2023 10:21am

@@ -1,7 +1,7 @@
import { IDependency } from '../../types';

export interface IDependentFeaturesReadModel {
getChildren(parent: string): Promise<string[]>;
getChildren(parents: string[]): Promise<string[]>;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

changing this signature opens options for bulk operations and also works for a single parent

Copy link
Contributor

@FredrikOseberg FredrikOseberg left a comment

Choose a reason for hiding this comment

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

LGTM

@kwasniew kwasniew merged commit 88305a6 into main Oct 4, 2023
11 of 16 checks passed
@kwasniew kwasniew deleted the prevent-archive-and-delete-of-parent-feature branch October 4, 2023 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants