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

User orders cancel #130

Merged
merged 12 commits into from
May 25, 2019
Merged

User orders cancel #130

merged 12 commits into from
May 25, 2019

Commits on May 25, 2019

  1. Add initial Default User Order Cancellation spec for User Order Show …

    …page
    Brennan Ayers committed May 25, 2019
    Configuration menu
    Copy the full SHA
    e256c1d View commit details
    Browse the repository at this point in the history
  2. Add :delete method for OrdersController#destroy to routes

    Brennan Ayers committed May 25, 2019
    Configuration menu
    Copy the full SHA
    6eeec37 View commit details
    Browse the repository at this point in the history
  3. Fix typos on OrderItem.fulfilled expectations, Fix redirect to be pro…

    …file_orders_path
    Brennan Ayers committed May 25, 2019
    Configuration menu
    Copy the full SHA
    8b256d6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    de11708 View commit details
    Browse the repository at this point in the history
  5. Add #destroy to OrdersController that updates Order status to Cancell…

    …ed, updates OrderItems fulfilled to False, flash notice confirmation, redirect to User Orders index
    Brennan Ayers committed May 25, 2019
    Configuration menu
    Copy the full SHA
    f808ecf View commit details
    Browse the repository at this point in the history
  6. Add additional spec for Default User Order Show to disable cancel but…

    …ton unless pending
    Brennan Ayers committed May 25, 2019
    Configuration menu
    Copy the full SHA
    a45e991 View commit details
    Browse the repository at this point in the history
  7. Add disabled param to Cancel Order button depending on Order Status o…

    …n Default User Order Show HTML
    Brennan Ayers committed May 25, 2019
    Configuration menu
    Copy the full SHA
    ffb3498 View commit details
    Browse the repository at this point in the history
  8. Add expectation of 'only able to cancel pending orders' message on Us…

    …er Order Show page
    Brennan Ayers committed May 25, 2019
    Configuration menu
    Copy the full SHA
    861392e View commit details
    Browse the repository at this point in the history
  9. Add 'only able to cancel pending orders' message to Default User Orde…

    …r Show HTML with if block for non-pending status
    Brennan Ayers committed May 25, 2019
    Configuration menu
    Copy the full SHA
    0812af9 View commit details
    Browse the repository at this point in the history
  10. Add order_item:fulfilled and item:inventory expecations to User Order…

    … Cancelled spec
    Brennan Ayers committed May 25, 2019
    Configuration menu
    Copy the full SHA
    58cd73b View commit details
    Browse the repository at this point in the history
  11. Add order_items loop setting fulfilled to false in OrdersController#d…

    …estroy
    Brennan Ayers committed May 25, 2019
    Configuration menu
    Copy the full SHA
    9377d35 View commit details
    Browse the repository at this point in the history
  12. Add after_save call to private method #update_inventory, using saved_…

    …change_to? hook to update associated Item inventory
    Brennan Ayers committed May 25, 2019
    Configuration menu
    Copy the full SHA
    dc2086c View commit details
    Browse the repository at this point in the history