Skip to content

Conversation

@meara
Copy link
Contributor

@meara meara commented Mar 19, 2018

Release Notes

Fix error on recently used products/facilities when there is no logged in user, follow up to #1429.

Additional Context

Error was occurring because we were trying to chain additional scopes onto recently_used_facilities and recently_used_products in facilities#index, which was an empty array rather than an empty AR relation when no user is present.

@meara meara added the NU label Mar 19, 2018
@meara meara requested review from giladshanan and jhanggi March 19, 2018 19:06
@jhanggi
Copy link
Contributor

jhanggi commented Mar 19, 2018

Do we want to add a spec that should have caught this? I feel like the link to the PR that caused it could be linked in the release notes. That way if we can essentially squash this note in our email notes if the guilty PR had not been released.

@giladshanan
Copy link
Contributor

Adding a spec seems like a good idea to me.

@meara meara changed the title [#137627] allow scope chaining for when user not logged in [#137627] recently used products/facilities still works when no logged in user Mar 20, 2018
@meara meara merged commit 550c9dc into master Mar 20, 2018
@meara meara deleted the handle-no-recent-products-facilities branch March 20, 2018 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants