Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed May 3, 2023
1 parent b8e7ef4 commit d0b8ac1
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,21 @@ def upgrade_slc(slc: Slice) -> None:
# the assumption here is that the query was saved as a dataset
# but the type wasn't written properly to the slice
# by updating the type here we expect it will either work
# or it will 404 when the dataset is looked up.
# or it will 404 when the dataset is looked up.
params_dict["datasource"] = f"{ds_id}__table"
slc.params = json.dumps(params_dict)
logger.warning("updated slice datasource from %s__%s to %s__table", ds_id, ds_type, ds_id)
logger.warning(
"updated slice datasource from %s__%s to %s__table", ds_id, ds_type, ds_id
)
except Exception:
# skip any malformatted params
logger.warning("failed to update slice.id = %s w/ datasource = %s__%s to %s__table", slc.id, ds_id, ds_type, ds_id)
logger.warning(
"failed to update slice.id = %s w/ datasource = %s__%s to %s__table",
slc.id,
ds_id,
ds_type,
ds_id,
)
pass


Expand Down

0 comments on commit d0b8ac1

Please sign in to comment.