-
Notifications
You must be signed in to change notification settings - Fork 881
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
Fixes: GetTags-403 Permission denied on resource project None.
#14521
Fixes: GetTags-403 Permission denied on resource project None.
#14521
Conversation
Signed-off-by: Takahiro Nakayama <civitaspo@gmail.com>
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
if engine.url.host: | ||
taxonomy_project_ids.append(engine.url.host) |
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.
I believe that the engine.url.host
does not contain the GCP ProjectID, and therefore, it might be acceptable to remove this backward compatibility. If the OpenMetadata team agrees with this perspective, please let me know, and I can make the necessary changes in this Pull Request.
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.
@civitaspo Thanks for the PR!
I had a question around connection to Bigquery..
how are you connecting to GCP? is it via service account credentials ( json file ) location, cli auth or is it via adding the service account details in UI?
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.
@ayush-shah Thank you for your response.
I am not using the UI. Instead, I am specifying a configuration YAML for ingestion/profile in the metadata CLI and executing metadata ingestion and profiling through it.
I considered adding tests for this change, but I was unsure where and how to write tests related to BigQuery's test_connection. If there is a reference implementation that could guide me, please let me know. If the policy is that minor changes do not require tests, I would be grateful if you could review it as is. |
@civitaspo thanks for the PR. @pmbrull or @ayush-shah can we review and merge it in |
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.
@civitaspo can you run make py_format py_format_check
to resolve the formatting issue?
Signed-off-by: Takahiro Nakayama <civitaspo@gmail.com>
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
…2:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)" Signed-off-by: Takahiro Nakayama <civitaspo@gmail.com>
@civitaspo looks like it's failing for this
Can you take a look at the above? Let me know if you need help around it, Thanks! |
@ayush-shah Thanks for the lightning-fast response! And sorry for not fixing everything in one commit! I've made the corrections now, so could you check again after the CI completes? On a different note, it seems that black and pylint are indicating the need to modify files that I haven't changed in this round, but since that would increase the volume of changes significantly, I'm thinking of making those modifications in a separate PR! black logs
PyLint logs
I believe these files depend on files generated from the schema, so rather than correcting them as PyLint, I'm thinking it would make sense to ignore the lint rules for them.
|
@civitaspo yes, on it. For the black and pylint, can you check if the versions for those are as per the requirements? |
Quality Gate failed for 'open-metadata-ingestion'Failed conditions 7.4% Coverage on New Code (required ≥ 20%) |
@ayush-shah Thank you for your comment. As you mentioned, using the version of black specified in setup.py ("black==22.3.0") resolved the check failure. Regarding pylint, even with pylint==3.0.3, the check fails locally. However, since nothing is showing up on GitHub Actions, it's likely an issue with my environment. Now that I know it's a problem with my environment, please disregard it for the moment! |
Thanks for the contribution 🙌 |
It was a very responsive and positive contribution experience. Thank you very much. |
Describe your changes:
Fixed an issue in the BigQuery
test_connection
process where aGetTags-403 Permission denied on resource project None.
error was encountered during the execution oftest_tags
. The previous implementation erroneously executedlist_taxonomies
without utilizing the specifiedtaxonomyProjectID
, leading to the error. While I am uncertain ifengine.url.host
can contain a GCP Project ID, I have made efforts to maintain backward compatibility as much as possible. However, there is one backward-incompatible change regarding the behavior whentaxonomyLocation
is not set. To prevent errors whentaxonomyLocation
is not configured, I have altered the process to log an info message and skip the execution oflist_taxonomies
.Ingestion Error Log
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>