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

[#162306] Make Cross core orders purchased #4302

Merged
merged 8 commits into from
Jun 6, 2024

Conversation

LeticiaErrandonea
Copy link
Contributor

@LeticiaErrandonea LeticiaErrandonea commented Jun 4, 2024

Release Notes

  • Make Cross core orders purchased.

Additional context

A "new" order in our codebase is a "cart". Once the user purchases it, the order changes to "purchased".
Cross core orders were created in "new" state but never updated to purchased. For instruments (the majority of our tests) it was right, as it's only updated when the reservation is confirmed.
This was causing different problems, the main ones being: cross core order wasn't visible in the Orders tab for the receiving facility, and order's user cart had the last product that was intended to be added to the project.

Copy link
Contributor

@giladshanan giladshanan left a comment

Choose a reason for hiding this comment

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

Getting close!

app/forms/add_to_order_form.rb Outdated Show resolved Hide resolved
app/forms/add_to_order_form.rb Show resolved Hide resolved
app/forms/add_to_order_form.rb Outdated Show resolved Hide resolved
app/forms/add_to_order_form.rb Outdated Show resolved Hide resolved
app/forms/add_to_order_form.rb Show resolved Hide resolved
app/forms/add_to_order_form.rb Show resolved Hide resolved
app/forms/add_to_order_form.rb Outdated Show resolved Hide resolved
app/forms/add_to_order_form.rb Outdated Show resolved Hide resolved
app/services/order_purchaser.rb Outdated Show resolved Hide resolved
app/services/order_purchaser.rb Outdated Show resolved Hide resolved
@LeticiaErrandonea LeticiaErrandonea marked this pull request as ready for review June 6, 2024 14:51
@LeticiaErrandonea LeticiaErrandonea requested a review from a team as a code owner June 6, 2024 14:51
Copy link
Contributor

@giladshanan giladshanan left a comment

Choose a reason for hiding this comment

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

🎉 one small suggestion

spec/system/admin/adding_to_a_cross_core_order_spec.rb Outdated Show resolved Hide resolved
@LeticiaErrandonea LeticiaErrandonea merged commit 3a0d454 into master Jun 6, 2024
3 checks passed
@LeticiaErrandonea LeticiaErrandonea deleted the 162306-cross_core_purchased branch June 6, 2024 18:19
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.

2 participants