-
Notifications
You must be signed in to change notification settings - Fork 48
chore: replace api_name with updated method_logger #1660
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
base: main
Are you sure you want to change the base?
Conversation
@Genesis929 It looks like there are some conflicts to resolve before this can be fully reviewed. |
tests/unit/core/test_log_adapter.py
Outdated
api_methods = log_adapter.get_and_reset_api_methods() | ||
assert "testclass-my_field" in api_methods | ||
|
||
assert "<locals>-method1" in api_methods |
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.
Are these characters allowed?
Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
https://cloud.google.com/bigquery/docs/labels-intro#requirements
I think we need some logic to remove invalid characters.
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.
These characters should only exist in tests, unless someone uses them in a similar way. Updated in case someone actually uses them this way.
@@ -213,12 +224,24 @@ def wrapped(*args, **kwargs): | |||
) | |||
|
|||
|
|||
def log_name_override(name: str): |
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.
added a decorator for cases where the logged method name is not the same as the real method name. This is for _read_gbq_colab.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕