-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Transformations: Deprecate FormatTime transformation #111203
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
base: main
Are you sure you want to change the base?
Conversation
grafana-dataRemovalsDataTransformerID.formatTime/home/runner/work/grafana/grafana/base/grafana-data/dist/types/transformations/transformers/ids.d.ts formatTime = "formatTime"
|
|
💻 Deploy preview available: |
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.
Make sure you use grafanaBootData.settings.featureToggles.kubernetesDashboards to enable the usage of App Platform to fetch any dashboard by default
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.
After a peer review, we decided:
- Ivan will write a README about how to write a schemaVersion migration
- Once we have the documentation, we will update this PR with the following:
- Implement the migration in the DashboardMigration.ts
- Add input with the different scenarios for this migration in the backend
|
💻 Deploy preview available (Transformations: Deprecate FormatTime transformation): |
@ivanortegaalba, I’m reading the documentation you released a few weeks ago. There’s a statement that if my migration is beyond v42, I need to do a panel-specific migration. My migration is not panel-specific; it’s transformation-related. Does that mean I need to remove my v43 implementation from DashboardMigration.ts? I just want to confirm that it’s enough to have v43.go, as far as I understand, a backend migration in this case. |
Hi @Develer!! This migration is in the right place; this is not a panel transformation. It is correct here! |
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.
Code-wise looks good @Develer! Please have a look to the recommendations and let's try to get it merged!
|
Also, I see you're missing the backend output to be generated, make sure you run:
|
What is this feature?
Deprecates and removes the FormatTime transformation. Format time is now redundant with convertFieldType and has been fully replaced.
What was done:
Which issue(s) does this PR fix?:
Fixes #105577
Special notes for your reviewer:
Please check that:
Sam's Edit
Ihor told me the Readme for how to write/run these kinds of migrations can now be found here:
apps/dashboard/pkg/migration/README.md