Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Transactionize reservations checkout (?) #225

Closed
@dgoerger

Description

@dgoerger

In case one fails checkout (although with @ebmaher 's validations, none should), and there is for example a Camera + Tripod, we don't want the tripod to be checked out but not the camera (b/c that would be silly and absurd..).

Of course maybe we only want rollback action for associated eq models? Use-case: I try to check out a Camera + Tripod + Laptop, only the laptop and tripod pass, but realistically the tripod is useless without the camera although I can still make use of the laptop.

Some eq models which are associated, though, aren't as dependent on each other as is the Camera + Tripod case; so we would still want an option to check it out regardless of the fact that its associated model cannot be checked out (a can_checkout? override).

Guys if this would result in too much / complicated code debt, we should remove the comment from the reservations controller:

  # transaction this process ^downarrow

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions