If someone renames short name of a variable, e.g. from dummy_a to dummy_b and modifies a chart which uses that variable, then ETL deploy will fail after merging the staging server.
The way ETL works is that it adds variable dummy_b and then tries to remove unused variable dummy_a. The problem is that the chart hasn't been synced yet and still depends on dummy_a, hence cannot be deleted and ETL fails with the error message
ValueError: Variables used in charts will not be deleted automatically:
I don't have a good solution, but here are some options:
Change that error to a warning. ETL would finish and chart-sync would swap the variable. The only problem is that "ghost" variable would still be in Admin until next ETL run of that dataset
Make ETL deploy fail, but still run chart-sync
Separate "cleanup_ghost_variables" into a step after both ETL and chart-sync
If someone renames short name of a variable, e.g. from
dummy_a
todummy_b
and modifies a chart which uses that variable, then ETL deploy will fail after merging the staging server. The way ETL works is that it adds variabledummy_b
and then tries to remove unused variabledummy_a
. The problem is that the chart hasn't been synced yet and still depends ondummy_a
, hence cannot be deleted and ETL fails with the error messageI don't have a good solution, but here are some options:
chart-sync
would swap the variable. The only problem is that "ghost" variable would still be in Admin until next ETL run of that datasetchart-sync