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

Admin Dashboard - Delete Feature Flag #800

Open
tobi-bams opened this issue Dec 19, 2024 · 1 comment
Open

Admin Dashboard - Delete Feature Flag #800

tobi-bams opened this issue Dec 19, 2024 · 1 comment
Labels

Comments

@tobi-bams
Copy link
Collaborator

Admin Dashboard - Delete Feature Flag


Description:

Implement functionality to delete feature flags and their associated endpoints from the Admin Dashboard.


Deliverables:

  1. Delete Button:

    • Use the "Delete" button on the feature flags table.
  2. Confirmation Dialog:

    • Clicking "Delete" should open a confirmation dialog:
      • Message: "Are you sure you want to delete the feature flag <Feature Flag Name>? This action cannot be undone."
      • Options: "Cancel" and "Delete."
  3. API Integration:

    • Call DELETE /feature_flags/{id} to remove the feature flag.
    • Expected Response:
      {
        "success": true,
        "message": "Feature flag deleted successfully"
      }
  4. Dynamic UI Update:

    • After a successful API call, remove the deleted feature flag's row from the table without reloading the page.
  5. Error Handling:

    • Handle API errors (e.g., failed deletions due to server issues) and display feedback to the user.

Testing Checklist:

  • Ensure the "Delete" button triggers the confirmation dialog.
  • Verify the feature flag is removed from the table upon successful deletion.
  • Test for proper handling of API errors, such as attempting to delete a non-existent feature flag.
@jordan-ae
Copy link
Contributor

I'm available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants