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] Use Available Enums Instead of Strings for Metric Name Extensions #8137

Conversation

alexsherstinsky
Copy link
Contributor

Scope

We have adopted Enum structures for Metric Names -- they should be used codebase-wide.

Remarks

  • JIRA: DX-594
  • 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

    black .
    
    ruff . --fix
    
  • Appropriate tests and docs have been updated

For more details, see our Contribution Checklist, Coding style guide, and Documentation style guide.

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!

@netlify
Copy link

netlify bot commented Jun 16, 2023

Deploy Preview for niobium-lead-7998 canceled.

Name Link
🔨 Latest commit f70b3b3
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/648cdfc74555720008870678

…ule_based_profiler/data_assistant/use_defined_enum_values_for_metric_name_extensions-2023_06_16-300
@alexsherstinsky alexsherstinsky requested a review from a team June 16, 2023 21:12
@alexsherstinsky alexsherstinsky marked this pull request as ready for review June 16, 2023 21:12
@alexsherstinsky alexsherstinsky enabled auto-merge (squash) June 16, 2023 21:12
@alexsherstinsky alexsherstinsky changed the title [MAINTENANCE] Use Available Enums (Instead of Strings) for Metric Name Extensions [MAINTENANCE] Use Available Enums Instead of Strings for Metric Name Extensions Jun 16, 2023
@ghost
Copy link

ghost commented Jun 16, 2023

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

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@@ -3148,6 +3148,9 @@ def _plot_table_domain_charts( # noqa: PLR0913
Domain, Dict[str, List[ParameterNode]]
] = self._determine_attributed_metrics_by_domain_type(MetricDomainTypes.TABLE)

if not attributed_metrics_by_table_domain:
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like functionality change. Is there a test for this code path?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Deleted and created a new ticket concerning this issue. Thanks!

@alexsherstinsky alexsherstinsky merged commit 1d519f5 into develop Jun 16, 2023
45 checks passed
@alexsherstinsky alexsherstinsky deleted the maintenance/DX-594/alexsherstinsky/link/rule_based_profiler/data_assistant/use_defined_enum_values_for_metric_name_extensions-2023_06_16-300 branch June 16, 2023 23:13
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.

None yet

2 participants