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

DFC Orders update for pilot 1 and 2 #12899

Merged
merged 11 commits into from
Oct 10, 2024

Conversation

mkllnk
Copy link
Member

@mkllnk mkllnk commented Oct 9, 2024

What? Why?

We trying to run two pilots this week. This pull request contains bug fixes and extended functionality for these pilots.

Unfortunately, we don't have time for review and testing beforehand. So this will be released and deployed to uk-prod for production testing.

What should we test?

  • prod test

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

And the logic becomes a bit simpler.
The method `CheckoutCallbacks#valid_order_line_items?` was a duplicate
of `OrderStockCheck#valid_order_line_items?`.

Apparently, it had been extracted twice:

 * 1d074c2
 * 06eb98b

But the first commit duplicated the method while the second moved the
original declaration.
This will delay the checkout request by a few seconds if there's stock
to sync. But we minimise the chance of missing reduced stock from orders
on another platform.

We still have a gap between the checkout and placing a backorder. In
that time we can't guarantee enough stock. But let's tackle that after
the pilot.
@mkllnk mkllnk self-assigned this Oct 9, 2024
@RaggedStaff RaggedStaff added the pr-staged-uk staging.openfoodnetwork.org.uk label Oct 9, 2024
This spec would fail on Australian systems early in the morning or in
other timezones accordingly.
We don't allow variants to have zero weight or volume. But a DFC import
in production showed that some catalogs list products with zero weight.
Despite the products having a weight, it's simpler to treat these as
items.
Instead of creating a new variant every time.
@mkllnk mkllnk changed the title Dfc stock check DFC Orders update for pilot 1 and 2 Oct 10, 2024
@mkllnk mkllnk added the user facing changes Thes pull requests affect the user experience label Oct 10, 2024
@mkllnk mkllnk marked this pull request as ready for review October 10, 2024 06:06
@mkllnk mkllnk merged commit 2d975c5 into openfoodfoundation:master Oct 10, 2024
52 of 53 checks passed
@mkllnk mkllnk deleted the dfc-stock-check branch October 10, 2024 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-staged-uk staging.openfoodnetwork.org.uk user facing changes Thes pull requests affect the user experience
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants