orchestracities / auth-management-ui

An UI for Anubis and FIWARE-based platforms
https://master--62bcedd6cc1b1300eb9e1607.chromatic.com/
Apache License 2.0
0 stars 1 forks source link

when a tenant is deleted its configuration is not deleted as well #123

Closed chicco785 closed 1 year ago

chicco785 commented 1 year ago

Describe the bug When a tenant with the same as a previously deleted tenant is created, the creation fails due to the old configuration not being deleted as well: E11000 duplicate key error collection: graphql.tenantconfigs index: name_1 dup key: { name: "NewTenant" } the config

To Reproduce Steps to reproduce the behavior:

  1. Create a tenant with some configuration.
  2. Delete the tenant.
  3. Re-create the tenant with the same name.

Expected behavior

Re-creation don't fail.