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

Replace Paranoia methods with Discard equivalents #3554

Merged
merged 3 commits into from
Mar 18, 2020

Conversation

cedum
Copy link
Contributor

@cedum cedum commented Mar 13, 2020

This PR replaces the usage of Paranoia methods with their Discard equivalent methods:

  • .with_deleted => .with_discarded
  • .only_deleted => .discarded
  • #deleted? => #discarded?

This has been extracted from the #3488 PR. After some feedback, I'm extracting the non-breaking bits into separate PRs, so we can merge them without having to wait for Solidus v3.
Once merged, I'll rebase and revisit #3488 to definitely remove Paranoia as a dependency from Solidus v3.

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have updated Guides and README accordingly to this change (if needed)
  • I have added tests to cover this change (if needed)
  • I have attached screenshots to this PR for visual changes (if needed)

cedum added 2 commits March 13, 2020 14:30
We're replacing Paranoia with Discard. This replaces paranoia' method
'with_deleted' with 'with_discarded' which is the equivalent method
provided by discard.
We're replacing Paranoia with Discard. This replaces paranoia' method
'deleted?' with 'discarded?' which is the equivalent method
provided by discard.
We're replacing Paranoia with Discard. This replaces paranoia' method
'only_deleted' with 'discarded' which is the equivalent method
provided by discard.
@cedum cedum force-pushed the replace-paranoia-methods branch from e8db716 to 9f5ed14 Compare March 13, 2020 15:20
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

Thanks, Dumitru!

Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

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

@cedum thank you 👍

@kennyadsl kennyadsl merged commit d456b11 into solidusio:master Mar 18, 2020
@kennyadsl kennyadsl deleted the replace-paranoia-methods branch March 18, 2020 17:12
@cedum cedum mentioned this pull request Apr 3, 2020
8 tasks
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