-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
Conversation
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']) | |||
|
|||
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" | ||
} | ||
################### |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
if not tenant_id: | ||
tenant_id = "demotenant" # if no tenant_id,assisn to "demotenant" |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty lines
No description provided.