-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
MINOR: powerbi fetch workspaces failure handle #19785
base: main
Are you sure you want to change the base?
MINOR: powerbi fetch workspaces failure handle #19785
Conversation
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
ingestion/src/metadata/ingestion/source/dashboard/powerbi/client.py
Outdated
Show resolved
Hide resolved
ingestion/src/metadata/ingestion/source/dashboard/powerbi/client.py
Outdated
Show resolved
Hide resolved
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
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.
let's configure the pagination in the service
count = response.odata_count | ||
entities_per_page = self.pagination_entity_per_page | ||
failed_indexes = [] | ||
params_data = {"$top": "1", "$skip": "0"} |
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.
if this dict is static let's make it a constant
response = self.client.get(api_url, data=params_data) | ||
if ( | ||
not response | ||
or "message" in response |
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.
"message" string could be a constant too
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
|
Describe your changes:
Fixes #19795
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>