AAfghahi commented on a change in pull request #14451:
URL: https://github.com/apache/superset/pull/14451#discussion_r631310976
##########
File path: superset/databases/commands/create.py
##########
@@ -87,7 +90,12 @@ def validate(self) -> None:
# Check database_name uniqueness
if not DatabaseDAO.validate_uniqueness(database_name):
exceptions.append(DatabaseExistsValidationError())
-
+ if configuration_method:
+ if ConfigurationMethod(configuration_method) not in {
+ ConfigurationMethod.SQLALCHEMY_URI,
+ ConfigurationMethod.DYNAMIC_FORM,
+ }:
+ exceptions.append(DatabaseExistsValidationError())
Review comment:
would `DatabaseRequiredFieldValidationError` be better?
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]