-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Clean views without object metadata #7153
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This pull request introduces a new command to clean views with deleted object metadata and updates the upgrade process for version 0.31. The changes focus on maintaining data integrity and improving the object deletion process.
- Added
CleanViewsWithDeletedObjectMetadataCommand
to identify and delete orphaned views during the 0.31 upgrade process - Modified
ObjectMetadataService
to delete associated views when deleting an object, preventing orphaned data - Updated
UpgradeTo0_31Command
to include workspace metadata synchronization and view cleaning before backfilling workspace favorites - Removed
FeatureFlagModule
dependency fromObjectMetadataModule
, simplifying the module structure - Introduced dry run mode and detailed logging in the new cleaning command for better control and visibility during the upgrade process
5 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings
...abase/commands/upgrade-version/0-31/0-31-clean-views-with-deleted-object-metadata.command.ts
Show resolved
Hide resolved
...abase/commands/upgrade-version/0-31/0-31-clean-views-with-deleted-object-metadata.command.ts
Show resolved
Hide resolved
...abase/commands/upgrade-version/0-31/0-31-clean-views-with-deleted-object-metadata.command.ts
Show resolved
Hide resolved
}, | ||
}); | ||
|
||
if (views.length >= 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Condition should be views.length > 0
instead of >= 0
await this.cleanViewsWithDeletedObjectMetadataCommand.executeActiveWorkspacesCommand( | ||
passedParam, | ||
{ | ||
...options, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ ... options } ==> options
Add command for cleaning + clean on object deletion