Skip to content

Power Data Story Template

Jason Cypret edited this page Feb 28, 2022 · 3 revisions

User Story

As a CEO, I want power story data to in a table to it can be refreshed as I need it

How does it work now?

  • It has a table named ___

How should it work?

  • It needs new columns named ___

Name of the table, list of columns in the table, any potential restraints on the column data (precision and scale for decimals, etc) Sample CSV from Yash to upload locally Example of expected data structure needed for the charts

Acceptance Criteria

  • Sample CSV Is Located Here
  • Add a new table named
  • Add a new column named (Where spend's data type is decimal (12,2))
  • It should look good on 1920x1080 (Try to limit the need to scroll)
  • Assets should be stored in their own section now a general folder
  • It contains a label called "power story"
  • It contains a screenshot of each doc example on the PR

Testing

  • Add a Milano label
  • Merge to master after feedback has been addressed and approved code review.
  • The release team will make a release and update Nitro accordingly (no action from you is required)
  • Post a screenshot in the design feedback room

Any other technical details?

  • Should any more details we have discussed be included?

Chart data uploader Start by running the model generator in the component (bin/rails g YourModelsName) to create a new table and its associated model. After the generator runs, run your migrations in the component first (bin/schema) and then in umbrella (bin/rails db:migrate).

After your table is created locally, you will then need to add the model name to the list of allowed_models in the ChartDataContoller. At this point, if there are any custom errors you need to rescue from, they should be added to the create method in the controller. Otherwise, you can now go to the page and see your new table listed in the dropdown for upload options and start uploading your data.