Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
merged 10 commits into from
Sep 10, 2024

Conversation

rey-esp
Copy link
Contributor

@rey-esp rey-esp commented Aug 28, 2024

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:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #843 🦕

@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Aug 28, 2024
@tswast tswast changed the title chore: update ABSTRACT_METHOD_ERROR_MESSAGE to include bigframes vers… feat: include the bigframes package version alongside the feedback link in error messages Aug 28, 2024
Copy link
Collaborator

@tswast tswast left a 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}"
Copy link
Collaborator

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
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Sep 3, 2024
@tswast tswast marked this pull request as ready for review September 4, 2024 15:34
@tswast tswast requested review from a team as code owners September 4, 2024 15:34
@tswast tswast requested a review from sycai September 4, 2024 15:34
Copy link
Collaborator

@tswast tswast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rey-esp rey-esp merged commit 7b59b6d into main Sep 10, 2024
22 of 23 checks passed
@rey-esp rey-esp deleted the issue843-bigframes branch September 10, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include version number in feedback link in error messages
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.