-
Notifications
You must be signed in to change notification settings - Fork 3k
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(ingestion/tableau): verify role assignment to user in test_connection
.
#12042
base: master
Are you sure you want to change the base?
feat(ingestion/tableau): verify role assignment to user in test_connection
.
#12042
Conversation
metadata-ingestion/src/datahub/ingestion/source/tableau/tableau.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/tableau/tableau.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/tableau/tableau_server_wrapper.py
Outdated
Show resolved
Hide resolved
…cryl/datahub-fork into cus3116-failing-cli-0.14.1
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.
Error messages still need some work
metadata-ingestion/tests/integration/tableau/test_tableau_ingest.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/tableau/tableau_server_wrapper.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/tableau/tableau.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/tableau/tableau.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/tableau/tableau.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/tableau/tableau.py
Outdated
Show resolved
Hide resolved
…u.py Co-authored-by: Harshal Sheth <[email protected]>
…u.py Co-authored-by: Harshal Sheth <[email protected]>
…u.py Co-authored-by: Harshal Sheth <[email protected]>
|
||
class UserSiteInfo: | ||
@staticmethod | ||
def from_server(server: Server) -> "LoggedInUser": |
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.
not quite what I wanted
we should have one class: rename LoggedInUser
-> UserInfo
that UserInfo class should have the from_server
method
@@ -255,6 +259,45 @@ def get_tableau_auth( | |||
) | |||
return authentication | |||
|
|||
def check_user_role( |
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.
this method should be a standalone function or on the source (as a classmethod), not on the TableauConfig type
except Exception as e: | ||
logger.warning(msg=e, exc_info=e) |
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.
logger.warning(msg=e, exc_info=e) | |
logger.warning(f"{e}", exc_info=e) |
No description provided.