-
Notifications
You must be signed in to change notification settings - Fork 14
Power Data Story Template
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:
power_story_
How should it work?
- It needs new columns named ___
Acceptance Criteria
- Sample CSV Is Located Here
- Add a new table named
power_story_
- Add a new column named (Where spend's data type is decimal (12,2))
- Hook it up to the react/rails component
- Replace the dummy data with your real data
- 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.