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

Remove use of unnecessary backorderable default column #12885

Merged
merged 4 commits into from
Oct 2, 2024

Conversation

mkllnk
Copy link
Member

@mkllnk mkllnk commented Oct 2, 2024

What? Why?

We got some tech debt inherited from Spree upgrades. While I'm working on some stock logic updates, I used the opportunity to remove some zombie code.

What should we test?

  • Specs are enough.

Release notes

Changelog Category (reviewers may add a label for the release notes):

  • User facing changes
  • API changes (V0, V1, DFC or Webhook)
  • Technical changes only
  • Feature toggled

The title of the pull request will be included in the release notes.

Dependencies

Documentation updates

We have only one stock location and that has the default set to false.
Now we can simplify code.

The mentioned Bugsnag notification has not been found. The stock item is
always present in this case but it doesn't hurt to guard against it with
`&.`.
@mkllnk mkllnk added the technical changes only These pull requests do not contain user facing changes and are grouped in release notes label Oct 2, 2024
@mkllnk mkllnk self-assigned this Oct 2, 2024
@mkllnk mkllnk marked this pull request as ready for review October 2, 2024 05:39
Copy link
Collaborator

@rioug rioug left a comment

Choose a reason for hiding this comment

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

Yeah less code 🧹

app/models/spree/stock_location.rb Show resolved Hide resolved
@rioug rioug merged commit 63a1b39 into openfoodfoundation:master Oct 2, 2024
54 checks passed
@mkllnk mkllnk deleted the stock-cleanup branch October 15, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical changes only These pull requests do not contain user facing changes and are grouped in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants