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

SRCH-3411 avoid calling deep_symbolize_keys on Hashie::Mash objects #1012

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

MothOnMars
Copy link
Contributor

@MothOnMars MothOnMars commented Sep 28, 2022

Summary

This PR works around the issue that deep_symbolize_keys will not work with Hashie::Mash objects in Rails 7: hashie/hashie#559. Instead, we can convert the object to a hash before calling deep_symbolize_keys.

Checklist

Please ensure you have addressed all concerns below before marking a PR "ready for review" or before requesting a re-review. If you cannot complete an item below, replace the checkbox with the ⚠️ :warning: emoji and explain why the step was not completed.

Functionality Checks

  • You have run bundle update and committed your changes to Gemfile.lock.

  • You have merged the latest changes from the target branch (usually main) into your branch.

  • Your primary commit message is of the format SRCH-#### <description> matching the associated Jira ticket.

  • PR title is either of the format SRCH-#### <description> matching the associated Jira ticket (i.e. "SRCH-123 implement feature X"), or Release - SRCH-####, SRCH-####, SRCH-#### matching the Jira ticket numbers in the release.

  • Automated checks pass. If Code Climate checks do not pass, explain reason for failures:

Process Checks

  • You have specified at least one "Reviewer".

@MothOnMars MothOnMars changed the title SRCH-3411 resolve Hashie::Mash#deep_symbolize_keys/Rails 7 incompatib… SRCH-3411 avoid calling deep_symbolize_keys on Hashie::Mash objects Sep 28, 2022
Copy link
Contributor

@krbhavith krbhavith left a comment

Choose a reason for hiding this comment

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

Looks good

@MothOnMars MothOnMars merged commit ca1186a into GSA:main Sep 29, 2022
@MothOnMars MothOnMars deleted the deep_symbolize_3411 branch September 29, 2022 17:33
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.

None yet

2 participants