Skip to content
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

[MAINTENANCE] Column Descriptive Metrics: Remove compute_metrics_with_aborted_metrics #8865

Conversation

anthonyburdi
Copy link
Member

Previously we were dropping the aborted metrics when returning the computed metrics in compute_metrics() in the validator. In this PR we are returning the aborted metrics as well so that the callers can choose to drop it.

The motivation of this PR was a refactor. For expediency, we introduced compute_metrics_with_aborted_metrics() to use with Column Descriptive Metrics until we had a chance to change all the callers of compute_metrics() to not fail with the new return value.

  • Description of PR changes above includes a link to an existing GitHub issue
  • PR title is prefixed with one of: [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], [CONTRIB]
  • Code is linted - run invoke lint (uses black + ruff)
  • Appropriate tests and docs have been updated

For more information about contributing, see Contribute.

After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!

@anthonyburdi anthonyburdi self-assigned this Oct 24, 2023
@netlify
Copy link

netlify bot commented Oct 24, 2023

Deploy Preview for niobium-lead-7998 canceled.

Name Link
🔨 Latest commit 4ddf2a9
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/653939617b42990008e60198

@ghost
Copy link

ghost commented Oct 24, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@anthonyburdi anthonyburdi requested a review from a team October 24, 2023 22:16
Tuple with two elements. The first is a dictionary with requested metrics resolved, with unique metric
ID as key and computed metric as value. The second is a dictionary with information about any metrics
that were aborted during computation, using the unique metric ID as key.
Tuple of two elements, the first is a dictionary with requested metrics resolved,
Copy link
Contributor

Choose a reason for hiding this comment

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

🚀

Copy link
Contributor

@Shinnnyshinshin Shinnnyshinshin left a comment

Choose a reason for hiding this comment

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

Thank you for this refactor Anthony, the structure of the calls is much cleaner, and the motivation totally makes sense too.

@anthonyburdi anthonyburdi added this pull request to the merge queue Oct 25, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Oct 25, 2023
@anthonyburdi anthonyburdi added this pull request to the merge queue Oct 25, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 25, 2023
@anthonyburdi anthonyburdi added this pull request to the merge queue Oct 25, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Oct 25, 2023
@anthonyburdi anthonyburdi added this pull request to the merge queue Oct 25, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 25, 2023
@anthonyburdi anthonyburdi added this pull request to the merge queue Oct 25, 2023
Merged via the queue into develop with commit a344f66 Oct 25, 2023
58 checks passed
@anthonyburdi anthonyburdi deleted the m/zel-95/zel-99/refactor-compute-metrics-with-aborted-metrics branch October 25, 2023 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants