mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user