alphagov / trade-tariff-backend

Enabling the population and distribution via API of UK Customs tariffs and duties
MIT License
7 stars 6 forks source link

Add notes to chapter and section nodes of commodity response #264

Closed theharq closed 8 years ago

theharq commented 8 years ago

What this PR does:

Adds section_note and chapter_note attributes to the section and chapter nodes from the response of the commodity show endpoint.

This change is necessary for the updates made in the frontend app.

Notes

I would like these new nodes to avoid the verbosity of having the parent relations in the name.. for example note instead of section_note since is already a child node of section but the frontend code already defined these name, so in order to keep it simple I choose to just use the same names.