Hello Community,
I am trying to implement a migration handler for my custom plugin. I call it using the setMigrationHandler
method in the plugin’s module.ts
It works great for all the visualization options. However, I also need to migrate the custom query options for this panel.
Having a look at how the panel JSON looks like and what the migration handler expects, I can’t figure out how to do that. From what I understand the migration handler is supposed to only return everything within the ‘options’ part of the JSON, while the query configuration is outside of this part.
{
// This is part of the migration handler
options: {
// some visualization options...
}
// NOT part of the migration handler
targets: {
// some query configuration
}
}
Does anyone have an idea on how I can use the migration handler not only for the visualization options, but also for the query options?