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

MAUI-1267: Allow deleting entities via the Admin Panel #4183

Merged
merged 4 commits into from
Oct 11, 2022

Conversation

rohan-bes
Copy link
Collaborator

Issue MAUI-1267:

Allow deleting entities via the Admin Panel. Limitations:

  • Cannot delete country or project entities
  • Cannot delete entities which have lingering survey responses
  • Cannot delete entities which have children

import { GETHandler } from '../GETHandler';
import { assertAnyPermissions, assertBESAdminAccess, hasBESAdminAccess } from '../../permissions';
import { mergeFilter } from '../utilities';
import { assertCountryPermissions } from '../GETCountries';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved this file to be in with the other entity handlers

Copy link
Contributor

@biaoli0 biaoli0 left a comment

Choose a reason for hiding this comment

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

Looks good! Very handy feature!

- Only allow deleting entities without survey responses and children
- Don't allow deleting country or project entities
@rohan-bes rohan-bes merged commit 0899601 into dev Oct 11, 2022
@rohan-bes rohan-bes deleted the maui-1267-delete-entities-ap branch October 11, 2022 04:27
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.

2 participants