srinisubramanian commented on issue #20037:
URL: https://github.com/apache/superset/issues/20037#issuecomment-1207148753
@betodealmeida Got the chance to finally upgrade to 2.0. The
**assets/import** end point still fails with the following exception:
```
CommandException
Traceback (most recent call last):
File
"/home/xxxxx/.pyenv/versions/3.8.12/envs/superset/lib/python3.8/site-packages/flask/app.py",
line 1517, in full_dispatch_request
rv = self.dispatch_request()
File
"/home/xxxxx/.pyenv/versions/3.8.12/envs/superset/lib/python3.8/site-packages/flask/app.py",
line 1503, in dispatch_request
return
self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File
"/home/xxxxx/.pyenv/versions/3.8.12/envs/superset/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py",
line 98, in wraps
return f(self, *args, **kwargs)
File
"/home/xxxxx/.pyenv/versions/3.8.12/envs/superset/lib/python3.8/site-packages/superset/utils/log.py",
line 245, in wrapper
value = f(*args, **kwargs)
File
"/home/xxxxx/.pyenv/versions/3.8.12/envs/superset/lib/python3.8/site-packages/superset/views/base_api.py",
line 98, in wraps
return f(self, *args, **kwargs)
File
"/home/xxxxx/.pyenv/versions/3.8.12/envs/superset/lib/python3.8/site-packages/superset/importexport/api.py",
line 161, in import_
command.run()
File
"/home/xxxxx/.pyenv/versions/3.8.12/envs/superset/lib/python3.8/site-packages/superset/commands/importers/v1/assets.py",
line 136, in run
self.validate()
File
"/home/xxxxx/.pyenv/versions/3.8.12/envs/superset/lib/python3.8/site-packages/superset/commands/importers/v1/assets.py",
line 164, in validate
raise exception
superset.commands.exceptions.CommandInvalidError: Error importing assets
```
This happens for both a new dashboard and an existing dashboard. However
the **dashboard/import** endpoint works for a new dashboard. And as you had
explained existing dashboards new charts are imported but changes to old ones
are not overwritten.
Any thoughts on how to get the assets/import to work for a single dashboard
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]