You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proper cleanup of resource-sharing policies and shared attributes is critical to maintaining database consistency and avoiding unnecessary data accumulation. Currently, there is no mechanism to handle these cleanups systematically during deletions.
Is your feature request related to a problem? Please describe.
The current system does not clean up resource-sharing policies and shared attributes when resources, attributes, or organizations are deleted. This issue arises because resource-sharing policies are managed in a generalized table for all resources, and shared attributes are managed in a generalized table for all shared attributes. This results in:
Inconsistencies in the database due to orphaned entries.
Unnecessary accumulation of data, increasing storage usage.
Difficulties in maintaining data integrity across organizational hierarchies.
Describe the solution you would prefer
Introduce SQL queries and implement the necessary methods to:
Delete resource-sharing policies based on resource type and ID when resources are deleted.
Delete shared attributes based on attribute type and ID when attributes are deleted.
Delete resource-sharing policies based on organization ID when organizations are deleted.
Additionally, include unit tests to validate the correctness and reliability of these changes.
Additional context
Implementing these changes will:
Maintain consistency and integrity of the database.
Prevent unnecessary data accumulation.
Simplify future maintenance by ensuring that deletions are handled efficiently and systematically.
The text was updated successfully, but these errors were encountered:
The proper cleanup of resource-sharing policies and shared attributes is critical to maintaining database consistency and avoiding unnecessary data accumulation. Currently, there is no mechanism to handle these cleanups systematically during deletions.
Is your feature request related to a problem? Please describe.
Describe the solution you would prefer
Additional context
The text was updated successfully, but these errors were encountered: