Skip to content

Commit

Permalink
Revert "Feature: Snowflake integration (ToolJet#996)" (ToolJet#1046)
Browse files Browse the repository at this point in the history
This reverts commit d4c4501.
  • Loading branch information
akshaysasidrn authored Oct 14, 2021
1 parent b237460 commit ceca48b
Show file tree
Hide file tree
Showing 11 changed files with 68 additions and 2,069 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
node_modules/**
node_modules/**
26 changes: 0 additions & 26 deletions frontend/assets/images/icons/editor/datasources/snowflake.svg

This file was deleted.

9 changes: 0 additions & 9 deletions frontend/src/Editor/DataSourceManager/DefaultOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ export const defaultOptions = {
username: { value: '' },
password: { value: '' },
},
snowflake: {
username: { value: '' },
account: { value: '' },
database: { value: '' },
warehouse: { value: '' },
schema: { value: '' },
role: { value: '' },
password: { value: '' },
},
redis: {
host: { value: 'localhost' },
port: { value: 6379 },
Expand Down

This file was deleted.

72 changes: 43 additions & 29 deletions frontend/src/Editor/DataSourceManager/SourceComponents/index.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,53 @@
import React from 'react';
import React from "react";

import DynamicForm from '@/_components/DynamicForm';
import DynamicForm from "@/_components/DynamicForm";

import AirtableSchema from './Api/Airtable.schema.json';
import RestapiSchema from './Api/Restapi.schema.json';
import GraphqlSchema from './Api/Graphql.schema.json';
import StripeSchema from './Api/Stripe.schema.json';
import GooglesheetSchema from './Api/Googlesheets.schema.json';
import SlackSchema from './Api/Slack.schema.json';
import AirtableSchema from "./Api/Airtable.schema.json";
import RestapiSchema from "./Api/Restapi.schema.json";
import GraphqlSchema from "./Api/Graphql.schema.json";
import StripeSchema from "./Api/Stripe.schema.json";
import GooglesheetSchema from "./Api/Googlesheets.schema.json";
import SlackSchema from "./Api/Slack.schema.json";

import DynamodbSchema from './Database/Dynamodb.schema.json';
import ElasticsearchSchema from './Database/Elasticsearch.schema.json';
import RedisSchema from './Database/Redis.schema.json';
import FirestoreSchema from './Database/Firestore.schema.json';
import MongodbSchema from './Database/Mongodb.schema.json';
import PostgresqlSchema from './Database/Postgresql.schema.json';
import MysqlSchema from './Database/Mysql.schema.json';
import MssqlSchema from './Database/Mssql.schema.json';
import SnowflakeSchema from './Database/Snowflake.schema.json';
import DynamodbSchema from "./Database/Dynamodb.schema.json";
import ElasticsearchSchema from "./Database/Elasticsearch.schema.json";
import RedisSchema from "./Database/Redis.schema.json";
import FirestoreSchema from "./Database/Firestore.schema.json";
import MongodbSchema from "./Database/Mongodb.schema.json";
import PostgresqlSchema from "./Database/Postgresql.schema.json";
import MysqlSchema from "./Database/Mysql.schema.json";
import MssqlSchema from "./Database/Mssql.schema.json";

const Airtable = ({ ...rest }) => <DynamicForm schema={AirtableSchema} {...rest} />;
const Restapi = ({ ...rest }) => <DynamicForm schema={RestapiSchema} {...rest} />;
const Graphql = ({ ...rest }) => <DynamicForm schema={GraphqlSchema} {...rest} />;
const Airtable = ({ ...rest }) => (
<DynamicForm schema={AirtableSchema} {...rest} />
);
const Restapi = ({ ...rest }) => (
<DynamicForm schema={RestapiSchema} {...rest} />
);
const Graphql = ({ ...rest }) => (
<DynamicForm schema={GraphqlSchema} {...rest} />
);
const Stripe = ({ ...rest }) => <DynamicForm schema={StripeSchema} {...rest} />;
const Googlesheets = ({ ...rest }) => <DynamicForm schema={GooglesheetSchema} {...rest} />;
const Googlesheets = ({ ...rest }) => (
<DynamicForm schema={GooglesheetSchema} {...rest} />
);
const Slack = ({ ...rest }) => <DynamicForm schema={SlackSchema} {...rest} />;
const Dynamodb = ({ ...rest }) => <DynamicForm schema={DynamodbSchema} {...rest} />;
const Elasticsearch = ({ ...rest }) => <DynamicForm schema={ElasticsearchSchema} {...rest} />;
const Dynamodb = ({ ...rest }) => (
<DynamicForm schema={DynamodbSchema} {...rest} />
);
const Elasticsearch = ({ ...rest }) => (
<DynamicForm schema={ElasticsearchSchema} {...rest} />
);
const Redis = ({ ...rest }) => <DynamicForm schema={RedisSchema} {...rest} />;
const Firestore = ({ ...rest }) => <DynamicForm schema={FirestoreSchema} {...rest} />;
const Mongodb = ({ ...rest }) => <DynamicForm schema={MongodbSchema} {...rest} />;
const Postgresql = ({ ...rest }) => <DynamicForm schema={PostgresqlSchema} {...rest} />;
const Snowflake = ({ ...rest }) => <DynamicForm schema={SnowflakeSchema} {...rest} />;
const Firestore = ({ ...rest }) => (
<DynamicForm schema={FirestoreSchema} {...rest} />
);
const Mongodb = ({ ...rest }) => (
<DynamicForm schema={MongodbSchema} {...rest} />
);
const Postgresql = ({ ...rest }) => (
<DynamicForm schema={PostgresqlSchema} {...rest} />
);
const Mysql = ({ ...rest }) => <DynamicForm schema={MysqlSchema} {...rest} />;
const Mssql = ({ ...rest }) => <DynamicForm schema={MssqlSchema} {...rest} />;

Expand All @@ -44,7 +60,6 @@ export const DataBaseSources = [
PostgresqlSchema.source,
MysqlSchema.source,
MssqlSchema.source,
SnowflakeSchema.source,
];
export const ApiSources = [
AirtableSchema.source,
Expand All @@ -71,5 +86,4 @@ export const SourceComponents = {
Graphql,
Mysql,
Mssql,
Snowflake,
};
41 changes: 0 additions & 41 deletions frontend/src/Editor/QueryManager/QueryEditors/Snowflake.jsx

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/src/Editor/QueryManager/QueryEditors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { Dynamodb } from './Dynamodb';
import { Airtable } from './Airtable';
import { Graphql } from './Graphql';
import { Mssql } from './Mssql';
import { Snowflake } from './Snowflake';

export const allSources = {
Restapi,
Expand All @@ -29,5 +28,4 @@ export const allSources = {
Airtable,
Graphql,
Mssql,
Snowflake,
};
1 change: 0 additions & 1 deletion frontend/src/Editor/QueryManager/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,4 @@ export const defaultOptions = {
dynamodb: {},
airtable: {},
mssql: {},
snowflake: {},
};
Loading

0 comments on commit ceca48b

Please sign in to comment.