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

Set all standard objects soft deletable #7006

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Sep 12, 2024

No description provided.

Copy link

@greptile-apps greptile-apps bot left a 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 sets all standard objects as soft deletable by default, removing individual soft delete specifications from entity decorators.

  • Modified StandardObjectFactory in standard-object.factory.ts to set isSoftDeletable: true as default for all standard objects
  • Removed softDelete: true property from entity decorators in multiple files, including company.workspace-entity.ts, note.workspace-entity.ts, and person.workspace-entity.ts
  • This change ensures consistent soft delete behavior across all standard objects, potentially affecting data management and recovery processes

8 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@charlesBochet charlesBochet merged commit 9b46e8c into main Sep 12, 2024
6 checks passed
@charlesBochet charlesBochet deleted the c--set-all-standard-objects-soft-deletable branch September 12, 2024 11:44
Weiko added a commit that referenced this pull request Sep 13, 2024
…ldMetadata (#7017)

This #7006 introduced a
regression.

The goal was to set "isSoftDeletable" to all standard objects but it was
done at the wrong level, meaning it was setting the boolean correctly
but not creating the corresponding fieldMetadata.

I took the occasion to update the new graphql query runner to use that
boolean and automatically add a filter on soft delete in case it's true.

Also adding **IsQueryRunnerTwentyORMEnabled** by default in the seeds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants