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

Don't pretty format JSON in development #789

Merged
merged 3 commits into from
Apr 2, 2017

Conversation

justin808
Copy link
Member

@justin808 justin808 commented Apr 2, 2017

Temp fix given that a hash may contain active record objects and that
crashed with the call to JSON.pretty_generate


This change is Reviewable

Temp fix given that a hash may contain active record objects and that
crashed with the call to JSON.pretty_generate
@coveralls
Copy link

coveralls commented Apr 2, 2017

Coverage Status

Coverage decreased (-0.003%) to 97.919% when pulling f9bd0ff on temp-fix-serialization-development into f40f0d7 on master.

Adjust the install of the node package for react-on-rails
@coveralls
Copy link

coveralls commented Apr 2, 2017

Coverage Status

Coverage decreased (-0.003%) to 97.919% when pulling 0a768ed on temp-fix-serialization-development into f40f0d7 on master.

@justin808
Copy link
Member Author

This will be properly fixed by: #787

@@ -73,7 +73,7 @@
"build:dev:server": "webpack -w --config webpack.server.rails.build.config.js",
"build:server": "webpack --config webpack.server.rails.build.config.js",
"hot-assets": "babel-node server-rails-hot.js",
"install-react-on-rails": "npm i --save 'file:../../..'"
"install-react-on-rails": "rm -rf node_modules/react-on-rails && npm i 'file:../../..'"
Copy link
Contributor

Choose a reason for hiding this comment

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

does rm -rf return truthy here?

@justin808 justin808 force-pushed the temp-fix-serialization-development branch from b1bc903 to fb39bc2 Compare April 2, 2017 07:40
@justin808 justin808 merged commit 5c6a3f5 into master Apr 2, 2017
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling fb39bc2 on temp-fix-serialization-development into ** on master**.

@squadette
Copy link
Contributor

squadette commented Apr 2, 2017

hmmmm. I guess it could be properly fixed by replacing

JSON.pretty_generate(hash_value)

with

JSON.pretty_generate(hash_value.as_json)

(and reverting this patch).

@justin808 justin808 deleted the temp-fix-serialization-development branch April 6, 2017 08:11
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