SBIN2010 commented on PR #40136: URL: https://github.com/apache/superset/pull/40136#issuecomment-4530301268
Hi @rusackas When manually testing, an error appears during import. <img width="764" height="395" alt="Снимок экрана от 2026-05-25 00-57-06" src="https://github.com/user-attachments/assets/9489c302-5bbf-4119-ab98-d749f53e2c65" /> ERROR:superset.commands.importers.v1.utils:Schema validation failed for dashboards/Unicode_Test_25.yaml (prefix: dashboards): {'roles': ['Unknown field.']} ERROR:superset.commands.importers.v1:Validation failed for dashboards/Unicode_Test_25.yaml: {'roles': ['Unknown field.']} INFO:superset.commands.dashboard.importers.dispatcher:Command failed validation WARNING:superset.views.error_handling:CommandException Traceback (most recent call last): File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/security/decorators.py", line 128, in wraps return f(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/superset/views/base_api.py", line 127, in wraps duration, response = time_function(f, self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/superset/utils/core.py", line 1561, in time_function response = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/superset/utils/log.py", line 301, in wrapper value = f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/app/superset/views/base_api.py", line 114, in wraps return f(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/superset/dashboards/api.py", line 1966, in import_ command.run() File "/app/superset/commands/dashboard/importers/dispatcher.py", line 57, in run command.run() File "/app/superset/utils/decorators.py", line 267, in wrapped return on_error(ex) ^^^^^^^^^^^^ File "/app/superset/utils/decorators.py", line 232, in on_error raise ex File "/app/superset/utils/decorators.py", line 260, in wrapped result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/superset/commands/importers/v1/__init__.py", line 87, in run self.validate() File "/app/superset/commands/importers/v1/__init__.py", line 134, in validate raise CommandInvalidError( superset.commands.exceptions.CommandInvalidError: Error importing dashboard: dashboards/Unicode_Test_25.yaml: {'roles': ['Unknown field.']} Schema validation fails need to be added for ImportV1DashboardSchema(Schema) roles = fields.List(fields.String(), allow_none=True) -- 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]
