Skip to content

Don't pretty format JSON in development#789

Merged
justin808 merged 3 commits intomasterfrom
temp-fix-serialization-development
Apr 2, 2017
Merged

Don't pretty format JSON in development#789
justin808 merged 3 commits intomasterfrom
temp-fix-serialization-development

Conversation

@justin808
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

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
Copy Markdown
Member Author

This will be properly fixed by: #787

"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
Copy Markdown
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
Copy Markdown

Coverage Status

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

@squadette
Copy link
Copy Markdown
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).

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