Skip to content
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

feat: Redshift removal #551

Merged
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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