Add Redshift connector

pull/15814/head
Jesús Arroyo Torrens 4 years ago
parent 25789ec9de
commit 615270099b

@ -0,0 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22.000001" width="22" height="22">
<path d="M10.9999997 16.55640015l7.98581582 1.90138472V3.49983263L10.9999997 5.40121735z" fill="#205b97"/>
<path d="M18.98581552 3.49983263l1.52110778.7605539v13.43684446l-1.52110778.76055388zM10.9999997 16.55640015l-7.98581582 1.90138472V3.49983263l7.98581582 1.90138472z" fill="#5193ce"/><path d="M3.01418388 3.49983263l-1.52110778.7605539v13.43684446l1.52110778.76055388z" fill="#205b97"/>
<path d="M13.02853584 21.50000043l3.04221556-1.52110778V2.02110867L13.02853584.50000089l-.93008912 9.97196816z" fill="#5193ce"/>
<path d="M8.97146356 21.50000043L5.929248 19.97889265V2.02110867L8.97146356.50000089l.93008912 9.97196816z" fill="#205b97"/>
<path d="M8.97146356.50000089h4.09827876v20.95761573H8.97146356z" fill="#2e73b7"/>
</svg>

After

Width:  |  Height:  |  Size: 837 B

@ -43,6 +43,8 @@ module FrontendConfigHelper
config[:dataobservatory_enabled] = Cartodb.get_config(:connectors, 'dataobservatory', 'enabled')
config[:snowflake_enabled] = Carto::Connector.provider_available?('snowflake', user)
config[:snowflake_available] = Carto::Connector.provider_public?('snowflake')
config[:redshift_enabled] = Carto::Connector.provider_available?('redshift', user)
config[:redshift_available] = Carto::Connector.provider_public?('redshift')
config[:max_asset_file_size] = Cartodb.get_config(:assets, 'max_file_size')
config[:watcher_ttl] = Cartodb.get_config(:watcher, 'ttl') || 60
config[:licenses] = Carto::License.all

@ -342,6 +342,7 @@ $import-button-width: 174px;
@include importIcon(twitter);
@include importIcon(dataobservatory);
@include importIcon(snowflake);
@include importIcon(redshift);
.SelectedImport {
&__header {

@ -265,5 +265,16 @@ module.exports = {
service: 'snowflake',
beta: true
}
},
Redshift: {
view: ImportDatabaseView,
enabled: function (config, userModel) { return true; /* FIXME: config.get('redshift_enabled'); */ },
name: 'redshift',
title: 'Redshift',
type: 'database',
options: {
service: 'redshift',
beta: true
}
}
};

@ -51,6 +51,11 @@ module.exports = Backbone.Model.extend({
'description': null,
'enabled': true // FIXME: false
},
'redshift': {
'name': 'Redshift',
'description': null,
'enabled': true // FIXME: false
},
loaded: false
},

@ -27,7 +27,8 @@ describe('components/modals/add-layer/content/imports/imports-selector/imports-s
PostgreSQL: { title: 'PostgreSQL', type: 'database' },
MySQL: { title: 'MySQL', type: 'database' },
Hive: { title: 'Hive', type: 'database' },
Snowflake: { title: 'Snowflake', type: 'database' }
Snowflake: { title: 'Snowflake', type: 'database' },
Redshift: { title: 'Redshift', type: 'database' }
};
beforeEach(function () {

Loading…
Cancel
Save