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

Add escape hatch for when one doesn't want prepare_query #184

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

caioaao
Copy link
Contributor

@caioaao caioaao commented Oct 25, 2024

Adds a way of configuring specific schemas to not get deleted_at clauses automatically.

This is especially useful for issues like #100

Adds a way of configuring specific schemas to not get `deleted_at`
clauses automatically.
Copy link
Contributor

@grossvogel grossvogel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a reasonable thing to add to the library, I just have two small reasons for hesitating to approve and merge it outright:

  • the name of the option being added, skip_prepare_query? feels a little too tied to the implementation and not obvious enough from the perspective of a library user. I'm thinking maybe auto_exclude_from_queries? (defaulting to true) or something like that would be clearer
  • we might want to add an example in the README to make people aware of the option, though I can see why we wouldn't want to do that if we don't expect it to be widely used

@caioaao
Copy link
Contributor Author

caioaao commented Oct 28, 2024

@grossvogel Yup, I struggled to name this option, and I agree your suggestion is better 👍

About the readme example, I can add it too

@grossvogel grossvogel requested a review from nschello October 28, 2024 17:52
Copy link
Contributor

@grossvogel grossvogel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me! I'll get one more set of eyes on it and then we can get it merged

README.md Outdated Show resolved Hide resolved
@grossvogel grossvogel merged commit 686fe5c into revelrylabs:master Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants