open-metadata / OpenMetadata

OpenMetadata is a unified metadata platform for data discovery, data observability, and data governance powered by a central metadata repository, in-depth column level lineage, and seamless team collaboration.
https://open-metadata.org
Apache License 2.0
5.26k stars 994 forks source link

backend: default persona persisted even after persona is removed #17885

Closed chirag-madlani closed 6 days ago

chirag-madlani commented 1 week ago

Affected module Does it impact the UI, backend or Ingestion Framework? backend

Describe the bug A clear and concise description of what the bug is.

defaultPersona value is being persisted even after removing persona from that user

To Reproduce

  1. Create a User and assign persona to it
  2. Assign that persona as default
  3. Remove it from Persona list
  4. Backed still has that persona as defaultPersona

Screenshots or steps to reproduce

Expected behavior A clear and concise description of what you expected to happen.

If persona is no longer with User, backend should remove it from DefaultPersona too

Version:

Additional context Add any other context about the problem here.