-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI/database mssql #11231
UI/database mssql #11231
Conversation
…nection model value
], | ||
}, | ||
]; | ||
|
||
/** | ||
* fieldsToGroups helper fn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any chance this would be a good candidate for a helper? e.g. could this be used elsewhere, or is this pretty specific to this model?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not exactly, since it's pretty specific to the shape of the object defined above, AVAILABLE_PLUGIN_TYPES
. If we use that pattern in the future, we could definitely move it to a shared helper
@@ -95,7 +95,7 @@ | |||
@roleType={{@model.type}} | |||
@model={{@model}} | |||
@mode={{@mode}} | |||
@dbType={{this.databaseType}} | |||
@dbType={{await this.databaseType}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm all about adding this helper with ember-promise-helpers. I think you were there for the ui-guild meeting where we discussed the argument against having promises in templates but I think we have enough use cases for it. Happy to see it implemented!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, aside for some test failures that are component field-value test failures. I first noticed they said PKI and KMIP, but I don't think they're failing because they're flaky. I think it might be something with the form-field changes that were made, but that's only a guess.
Adds support for MSSQL database secrets engine, adds username template field to connections, and streamlines the process for adding a new database plugins. All you need to do to add a new database type is update two files:
models/database/connection.js
add toAVAILABLE_PLUGIN_TYPES
array with plugin's connection attributescomponents/database-role-setting-form
updateSTATEMENT_FIELDS
if the plugin does not use the default role fieldsTesting these changes require a bit of setup, so here are the steps I took to make sure we could connect to a MSSQL database through the UI:
docker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=<YourStrong!Passw0rd>' -p 1401:1433 -d mcr.microsoft.com/mssql/server:2017-latest-ubuntu