-
Notifications
You must be signed in to change notification settings - Fork 50
feat: include the bigframes package version alongside the feedback link in error messages #936
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
Conversation
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.
Please create a unit test verifying that FEEDBACK_LINK
contains the version and that the version is not an empty string.
Create a test_constants.py
file in this directory. https://github.com/googleapis/python-bigquery-dataframes/tree/main/tests/unit
@@ -26,4 +29,5 @@ | ||
"Abstract method. You have likely encountered a bug. " | ||
"Please share this stacktrace and how you reached it with the BigQuery DataFrames team. " | ||
f"{FEEDBACK_LINK}" | ||
f"You are currently running BigFrames version {BF_VERSION}" |
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.
Please put this information in the feedback link message, not just the abstract error message. The feedback link gets used in a lot more contexts than this message.
…py to ensure the version is included in the error message, add test_constants.py to ensure BF_VERSION is not an empty string, add BF_VERSION to bigframes/constants.py
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.
Thanks!
This change adds a variable to hold the user's bigframes version number and plugs it into the abstract method error message to be used in the feedback survey.
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 #843 🦕