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

[API] Complete Shipments Big json with small json fields #3221

Merged
merged 1 commit into from
Jun 18, 2019
Merged

[API] Complete Shipments Big json with small json fields #3221

merged 1 commit into from
Jun 18, 2019

Conversation

JuanCrg90
Copy link
Contributor

Description
shipments Big json should be a super set of Small json. This adds in the
https://github.com/solidusio/solidus/blob/e7260a27a7c292908a835f374d5ba73fe7284cd0/api/app/views/spree/api/shipments/_big.json.jbuilder file the missing fields that https://github.com/solidusio/solidus/blob/e7260a27a7c292908a835f374d5ba73fe7284cd0/api/app/views/spree/api/shipments/_small.json.jbuilder contains.

Slack conversation: https://solidusio.slack.com/archives/C0JBKDF35/p1559156244045800

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have updated Guides and README accordingly to this change (if needed)
  • I have added tests to cover this change (if needed)

Copy link
Contributor

@jacobherrington jacobherrington left a comment

Choose a reason for hiding this comment

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

I agree with doing this, thanks for fixing this @JuanCrg90!

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

This is a great thing, thanks. I think we could actually use the small partial in big then, right? Would reduce duplication and helps prevent this from happening in the future again.

Big json should be a super set of Small json. This adds the
api/app/views/spree/api/shipments/_smaill.json.jbuilder partial inside
api/app/views/spree/api/shipments/_big.json.jbuilder file and remove the
duplicated fields.
@JuanCrg90
Copy link
Contributor Author

updated @tvdeyen what do you think?

CC @jacobherrington

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

Thanks @JuanCrg90 !

@kennyadsl kennyadsl added changelog:solidus_api Changes to the solidus_api gem Important Change labels Jun 18, 2019
@kennyadsl kennyadsl merged commit dcff618 into solidusio:master Jun 18, 2019
@JuanCrg90 JuanCrg90 deleted the feature/complete-shipments-big-json-small-json-fields branch June 18, 2019 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_api Changes to the solidus_api gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants