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

changed UI for dataproducttable and added a sharing feature #40

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Miu0703
Copy link

@Miu0703 Miu0703 commented Feb 2, 2025

No description provided.

@Miu0703
Copy link
Author

Miu0703 commented Feb 2, 2025

Hi @lahirujayathilake , I have no access to the add reviewer option, could you please review this PR? Thanks!

@@ -11,14 +11,14 @@ def __init__(self, request_data):
channel = grpc.insecure_channel('localhost:6565')
self.stub = data_catalog_pb2_grpc.DataCatalogAPIServiceStub(channel)
self.user_info = pb2.UserInfo(user_id=request_data['user_id'], tenant_id=request_data['tenant_id'])

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this (and line 21)

#python -m grpc_tools.protoc -I . --python_out=. --grpc_python_out=. ./data_catalog.proto
# Generate the DataCatalog Stubs
python -m grpc_tools.protoc -I "D:/airavata-data-catalog/data-catalog-api/stubs/src/main/proto" --python_out="D:/smiles-django-portal/smiles/proto" --grpc_python_out="D:/smiles-django-portal/smiles/proto" "D:/airavata-data-catalog/data-catalog-api/stubs/src/main/proto/data_catalog.proto"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

give the relative path instead a specific one



def extract_request_data(request):
return {
'user_id': str(request.user.id),
'tenant_id': "demotenant"
}
###################
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

Comment on lines +256 to +257
if not tenant_id:
tenant_id = "demotenant" # if no tenant_id,assisn to "demotenant"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there must be a tenant_id if not throw an error and log the message

results = {"users": [], "groups": []}
try:
#
with grpc.insecure_channel('localhost:6565') as channel:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to make this host and port be extracted from configurations rather than hardcoding.
If you're doing this change make sure to update the data_catalog_service as well

Comment on lines +268 to +269


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty lines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants