[migration] Fixing issue with fb13d49b72f9 downgrade (#7145)
* [migration] Fixing issue with fb13d49b72f9 downgrade This PR fixes an issue with the downgrade step of migration fb13d49b72f9 which wrongfully labeled the field `metrics` rather than `metric`. to: @graceguo-supercat @michellethomas @mistercrunch * Update fb13d49b72f9_better_filters.py
This commit is contained in:
parent
6e79e84b02
commit
36a6fade90
|
|
@ -94,7 +94,7 @@ def downgrade():
|
|||
flts = params.get('filter_configs')
|
||||
if not flts:
|
||||
continue
|
||||
params['metrics'] = [flts[0].get('metric')]
|
||||
params['metric'] = flts[0].get('metric')
|
||||
params['groupby'] = [o.get('column') for o in flts]
|
||||
slc.params = json.dumps(params, sort_keys=True)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in New Issue