Skip to content

Commit

Permalink
feat: Redshift removal (#551)
Browse files Browse the repository at this point in the history
Removing all Redshift related code from backend, frontend and docs.
Cleaned up dataall/core folder structure


### Feature or Bugfix
<!-- please choose -->
- Feature
- Bugfix
- Refactoring

### Detail
- <feature1 or bug1>
- <feature2 or bug2>

### Relates
- <URL or Ticket>

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
  • Loading branch information
dbalintx authored Jul 6, 2023
1 parent ebebe26 commit 1ac4c2f
Show file tree
Hide file tree
Showing 112 changed files with 69 additions and 7,759 deletions.
2 changes: 0 additions & 2 deletions backend/dataall/api/Objects/Environment/input_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
gql.Argument('description', gql.String),
gql.Argument('AwsAccountId', gql.NonNullableType(gql.String)),
gql.Argument('region', gql.NonNullableType(gql.String)),
gql.Argument('warehousesEnabled', type=gql.Boolean),
gql.Argument('vpcId', gql.String),
gql.Argument('privateSubnetIds', gql.ArrayType(gql.String)),
gql.Argument('publicSubnetIds', gql.ArrayType(gql.String)),
Expand All @@ -49,7 +48,6 @@
gql.Argument('vpcId', gql.String),
gql.Argument('privateSubnetIds', gql.ArrayType(gql.String)),
gql.Argument('publicSubnetIds', gql.ArrayType(gql.String)),
gql.Argument('warehousesEnabled', type=gql.Boolean),
gql.Argument('resourcePrefix', gql.String),
gql.Argument('parameters', gql.ArrayType(ModifyEnvironmentParameterInput))
],
Expand Down
10 changes: 0 additions & 10 deletions backend/dataall/api/Objects/Environment/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,6 @@
test_scope='Environment',
)

listEnvironmentRedshiftClusters = gql.QueryField(
name='listEnvironmentClusters',
type=gql.Ref('RedshiftClusterSearchResult'),
args=[
gql.Argument(name='environmentUri', type=gql.NonNullableType(gql.String)),
gql.Argument(name='filter', type=gql.Ref('RedshiftClusterFilter')),
],
resolver=list_environment_redshift_clusters,
)


listEnvironmentInvitedGroups = gql.QueryField(
name='listEnvironmentInvitedGroups',
Expand Down
18 changes: 1 addition & 17 deletions backend/dataall/api/Objects/Environment/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ....aws.handlers.cloudformation import CloudFormation
from ....aws.handlers.iam import IAM
from ....aws.handlers.parameter_store import ParameterStoreManager
from ....core.group.services.environment_resource_manager import EnvironmentResourceManager
from ....core.environment.services.environment_resource_manager import EnvironmentResourceManager
from ....db import exceptions, permissions
from ....db.api import Environment, ResourcePolicy, Stack
from ....utils.naming_convention import (
Expand Down Expand Up @@ -549,22 +549,6 @@ def delete_environment(
return True


def list_environment_redshift_clusters(
context: Context, source, environmentUri: str = None, filter: dict = None
):
if not filter:
filter = dict()
with context.engine.scoped_session() as session:
return Environment.paginated_environment_redshift_clusters(
session=session,
username=context.username,
groups=context.groups,
uri=environmentUri,
data=filter,
check_perm=True,
)


def enable_subscriptions(
context: Context, source, environmentUri: str = None, input: dict = None
):
Expand Down
1 change: 0 additions & 1 deletion backend/dataall/api/Objects/Environment/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
resolver=resolve_user_role,
),
gql.Field('validated', type=gql.Boolean),
gql.Field('warehousesEnabled', type=gql.Boolean),
gql.Field('roleCreated', type=gql.Boolean),
gql.Field('isOrganizationDefaultEnvironment', type=gql.Boolean),
gql.Field('stack', type=gql.Ref('Stack'), resolver=get_environment_stack),
Expand Down
9 changes: 0 additions & 9 deletions backend/dataall/api/Objects/RedshiftCluster/__init__.py

This file was deleted.

40 changes: 0 additions & 40 deletions backend/dataall/api/Objects/RedshiftCluster/input_types.py

This file was deleted.

100 changes: 0 additions & 100 deletions backend/dataall/api/Objects/RedshiftCluster/mutations.py

This file was deleted.

64 changes: 0 additions & 64 deletions backend/dataall/api/Objects/RedshiftCluster/queries.py

This file was deleted.

Loading

0 comments on commit 1ac4c2f

Please sign in to comment.