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

Update updated_at timestamp on eligibility change #2390

Merged
merged 1 commit into from
Nov 24, 2017
Merged

Update updated_at timestamp on eligibility change #2390

merged 1 commit into from
Nov 24, 2017

Conversation

deodad
Copy link
Contributor

@deodad deodad commented Nov 21, 2017

The _adjustment jbuilder view caches based on the adjustment updated_at timestamp. Currently if an adjustment is made ineligible by this class and a previous call to api/orders#show has been made, a subsequent call will send back the cached view with incorrect eligibilty.

(Switched to a custom chooser class that includes this change and does the trick).

The _adjustment jbuilder view caches based on the adjustment updated_at timestamp. Currently if a promotion is made ineligible by this class and a previous call to api/orders#show has been made, a subsequent calls will send back the cached view.
Copy link
Contributor

@cbrunsdon cbrunsdon left a comment

Choose a reason for hiding this comment

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

Yep. both makes sense and looks right to me.

Copy link
Contributor

@jhawthorn jhawthorn left a comment

Choose a reason for hiding this comment

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

Thank you

@jhawthorn jhawthorn merged commit a73bc47 into solidusio:master Nov 24, 2017
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.

4 participants