-
Notifications
You must be signed in to change notification settings - Fork 640
feat: save chart in dashboard #6382
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
Conversation
✅ Deploy Preview for peaceful-bassi-cbf284 canceled.
|
| saved_query_id: undefined, | ||
| saved_query_uuid: undefined, | ||
| space_id: getNewSpace(d.space_id), | ||
| dashboard_uuid: null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are going to support preview content in a following PR
packages/backend/src/database/migrations/20230718093901_add_dashbord_uuid_to_chart_table.ts
Show resolved
Hide resolved
Can we get this in render ? |
d5adabe to
4a1fe55
Compare
| "migrate-production": "knex migrate:latest --knexfile dist/database/knexfile.js", | ||
| "seed": "knex seed:run --knexfile src/database/knexfile.ts", | ||
| "seed-production": "knex seed:run --knexfile dist/database/knexfile.js", | ||
| "rollback-last": "knex migrate:rollback --knexfile src/database/knexfile.ts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
knex migrate:rollback is to rollback the last batch of migrations. eg: If you migrated everything in 1 go, it would rollback everything.
We just want to rollback the last migration script.
|
I haven't tested scheduled delivieres for these charts, but I can see they can be previewed on /minimal, so I assume they work |
|
Interesting behaviour on these chart in dashboard options:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the only thing we need to fix is the ability to update chart in dashboards. Everything else seems ok, or not a blocker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will have the option to move charts from dashboards to the space. The BE will set the dashboard to null in that case. In your case we set the space uuid but didn't set the dashboarduuid to null causing that problem. |
# [0.685.0](0.684.0...0.685.0) (2023-07-21) ### Features * save chart in dashboard ([#6382](#6382)) ([7a93c39](7a93c39))
|
🎉 This PR is included in version 0.685.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
* feat: save chart in dashboard * chore: amend mock * chore: amend mock * chore: amend rollback last command * fix: delete all charts in dashboard on rollback * fix: amend chart summary query and add more tests
# [0.685.0](lightdash/lightdash@0.684.0...0.685.0) (2023-07-21) ### Features * save chart in dashboard ([lightdash#6382](lightdash#6382)) ([7a93c39](lightdash@7a93c39))
* feat: save chart in dashboard * chore: amend mock * chore: amend mock * chore: amend rollback last command * fix: delete all charts in dashboard on rollback * fix: amend chart summary query and add more tests
# [0.685.0](lightdash/lightdash@0.684.0...0.685.0) (2023-07-21) ### Features * save chart in dashboard ([lightdash#6382](lightdash#6382)) ([7a93c39](lightdash@7a93c39))
* feat: save chart in dashboard * chore: amend mock * chore: amend mock * chore: amend rollback last command * fix: delete all charts in dashboard on rollback * fix: amend chart summary query and add more tests
# [0.685.0](lightdash/lightdash@0.684.0...0.685.0) (2023-07-21) ### Features * save chart in dashboard ([lightdash#6382](lightdash#6382)) ([7a93c39](lightdash@7a93c39))
* feat: save chart in dashboard * chore: amend mock * chore: amend mock * chore: amend rollback last command * fix: delete all charts in dashboard on rollback * fix: amend chart summary query and add more tests
# [0.685.0](lightdash/lightdash@0.684.0...0.685.0) (2023-07-21) ### Features * save chart in dashboard ([lightdash#6382](lightdash#6382)) ([7a93c39](lightdash@7a93c39))





Relates to: #6133
Closes: #6227
Description:
Changes:
Table before:
Table now:
E2e test passing:
Preview:
Dashboards.-.Lightdash.-.18.July.2023.mp4