Compare commits

...

4 Commits

Author SHA1 Message Date
AAfghahi
bd629ec3ab added isEditMode (#15594)
(cherry picked from commit ad85e7be52)
2021-07-08 14:21:59 -07:00
Hugh A. Miles II
26cdcd0611 fix: DBC UI tooltip aligment (#15595)
(cherry picked from commit e539d08074)
2021-07-08 14:21:59 -07:00
Beto Dealmeida
cec5b4cdfd fix: available endpoint showing specs without drivers (#15587)
(cherry picked from commit 301b94f49a)
2021-07-08 14:21:59 -07:00
Phillip Kelley-Dotson
847e3f441a initial fix (#15581)
(cherry picked from commit 86a59a2927)
2021-07-08 14:21:59 -07:00
4 changed files with 7 additions and 3 deletions

View File

@@ -159,6 +159,8 @@ class HeaderActionsDropdown extends React.PureComponent {
downloadAsImage( downloadAsImage(
SCREENSHOT_NODE_SELECTOR, SCREENSHOT_NODE_SELECTOR,
this.props.dashboardTitle, this.props.dashboardTitle,
{},
true,
)(domEvent).then(() => { )(domEvent).then(() => {
menu.style.visibility = 'visible'; menu.style.visibility = 'visible';
}); });

View File

@@ -881,7 +881,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
testConnection={testConnection} testConnection={testConnection}
isEditMode={isEditMode} isEditMode={isEditMode}
/> />
{isDynamic(db?.backend || db?.engine) && ( {isDynamic(db?.backend || db?.engine) && !isEditMode && (
<div css={(theme: SupersetTheme) => infoTooltip(theme)}> <div css={(theme: SupersetTheme) => infoTooltip(theme)}>
<Button <Button
buttonStyle="link" buttonStyle="link"
@@ -904,7 +904,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
tooltip={t( tooltip={t(
'Click this link to switch to an alternate form that exposes only the required fields needed to connect this database.', 'Click this link to switch to an alternate form that exposes only the required fields needed to connect this database.',
)} )}
viewBox="0 -3 24 24" viewBox="0 0 24 24"
/> />
</div> </div>
)} )}

View File

@@ -124,7 +124,6 @@ export const antDModalNoPaddingStyles = css`
export const infoTooltip = (theme: SupersetTheme) => css` export const infoTooltip = (theme: SupersetTheme) => css`
margin-bottom: ${theme.gridUnit * 5}px; margin-bottom: ${theme.gridUnit * 5}px;
svg { svg {
vertical-align: bottom;
margin-bottom: ${theme.gridUnit * 0.25}px; margin-bottom: ${theme.gridUnit * 0.25}px;
} }
`; `;

View File

@@ -919,6 +919,9 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
preferred_databases: List[str] = app.config.get("PREFERRED_DATABASES", []) preferred_databases: List[str] = app.config.get("PREFERRED_DATABASES", [])
available_databases = [] available_databases = []
for engine_spec, drivers in get_available_engine_specs().items(): for engine_spec, drivers in get_available_engine_specs().items():
if not drivers:
continue
payload: Dict[str, Any] = { payload: Dict[str, Any] = {
"name": engine_spec.engine_name, "name": engine_spec.engine_name,
"engine": engine_spec.engine, "engine": engine_spec.engine,