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

Fix/remove grpc #699

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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 .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ omit =
./connect/api/apps.py
./connect/common/apps.py
./connect/authentication/apps.py
./connect/grpc/*
./connect/api/v1/tests/*
./connect/api/grpc/*
./connect/api/v1/swagger.py
./connect/authentication/apps.py
./connect/authentication/tests.py
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,7 @@ You can set environment variables in your OS, write on ```.env``` file or pass v
| APM_SERVICE_NAME | ```string``` | ```''``` | APM Service Name
| APM_SECRET_TOKEN | ```string``` | ```''``` | APM Secret Token
| APM_SERVER_URL | ```string``` | ```''``` | APM URL
| FLOW_GRPC_ENDPOINT | ```string``` | ```'localhost:8002'``` | gRPC Endpoint URL
| INTELIGENCE_GRPC_ENDPOINT | ```string``` | ```'localhost:8003'``` | gRPC Endpoint URL
| INTEGRATIONS_GRPC_ENDPOINT | ```string``` | ```'localhost:8004'``` | gRPC Endpoint URL
| SYNC_ORGANIZATION_INTELIGENCE | ```bool``` | ```False``` | Enable or Disable sync organization inteligences service
| INTELIGENCE_CERTIFICATE_GRPC_CRT | ```string``` | ```None``` | Absolute certificate path for secure grpc communication
| FLOW_CERTIFICATE_GRPC_CRT | ```string``` | ```None``` | Absolute certificate path for secure grpc communication
| INTEGRATIONS_CERTIFICATE_GRPC_CRT | ```string``` | ```None``` | Absolute certificate path for secure grpc communication
| SEND_REQUEST_FLOW | ```boolean``` | ```False``` | Enables or disables sending user information to flows
| FLOW_MARKETING_UUID | ```string``` | ```None``` | UUID Flow
| TOKEN_AUTHORIZATION_FLOW_MARKETING | ```string``` | ```None``` | Token Authorization API Flow
Expand Down
Empty file removed connect/api/grpc/__init__.py
Empty file.
8 changes: 0 additions & 8 deletions connect/api/grpc/organization/handlers.py

This file was deleted.

10 changes: 0 additions & 10 deletions connect/api/grpc/organization/serializers.py

This file was deleted.

19 changes: 0 additions & 19 deletions connect/api/grpc/organization/services.py

This file was deleted.

Empty file.
8 changes: 0 additions & 8 deletions connect/api/grpc/project/handlers.py

This file was deleted.

74 changes: 0 additions & 74 deletions connect/api/grpc/project/serializers.py

This file was deleted.

194 changes: 0 additions & 194 deletions connect/api/grpc/project/services.py

This file was deleted.

1 change: 0 additions & 1 deletion connect/api/v1/internal/flows/flows_rest_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def create_classifier(self, project_uuid: str, user_email: str, classifier_type:
headers=self.authentication_instance.headers,
json=body
)
# TODO: check the response data its equals to gRPC endpoint return
return dict(status=response.status_code, data=response.json())

def delete_classifier(self, classifier_uuid: str, user_email: str):
Expand Down
12 changes: 0 additions & 12 deletions connect/api/v1/project/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,18 +416,6 @@ def create_ticketer(self, request):
)
return JsonResponse(data=ticketer)

@action(
detail=True,
methods=["GET"],
url_name='list-flows',
permission_classes=[ModuleHasPermission],
)
def list_flows(self, request, **kwargs):
project_uuid = request.query_params.get('project_uuid')
project = get_object_or_404(Project, uuid=project_uuid)
task = tasks.list_project_flows(str(project.flow_organization))
return Response(task)


class RequestPermissionProjectViewSet(
mixins.ListModelMixin,
Expand Down
Loading
Loading