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

feat: graphql add Run.hasRunMetricsEnabled field #24662

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

mlarose
Copy link
Contributor

@mlarose mlarose commented Sep 23, 2024

Summary & Motivation

This change introduces a new field hasRunMetricsEnabled to the GrapheneRun type in the GraphQL schema. It allows clients to query whether run metrics are enabled for a specific run. The implementation checks for the presence of run metric tags and their boolean values.

This enables hiding the run metrics tag to declutter the frontend of this implementation detail.

How I Tested These Changes

  • BK w/ added test

Changelog

NOCHANGELOG

@mlarose mlarose force-pushed the mlarose/expose_enable_run_metrics_as_graphql_field branch from ec2435b to 5a113df Compare October 7, 2024 14:43
@mlarose mlarose changed the base branch from mlarose/run_metrics_hidden_tag_future_proofing to mlarose/run-metrics-improvement October 7, 2024 14:43
Copy link

github-actions bot commented Oct 7, 2024

Deploy preview for dagster-docs ready!

Preview available at https://dagster-docs-dwlh9caw7-elementl.vercel.app
https://mlarose-expose-enable-run-metrics-as-graphql-field.dagster.dagster-docs.io

Direct link to changed pages:

Copy link

github-actions bot commented Oct 7, 2024

Deploy preview for dagster-university ready!

✅ Preview
https://dagster-university-minhk2c3b-elementl.vercel.app
https://mlarose-expose-enable-run-metrics-as-graphql-field.dagster-university.dagster-docs.io

Built with commit 5a113df.
This pull request is being automatically deployed with vercel-action

Copy link

github-actions bot commented Oct 7, 2024

Deploy preview for dagster-docs-beta ready!

Preview available at https://dagster-docs-beta-5frpk24th-elementl.vercel.app

Direct link to changed pages:

@mlarose mlarose force-pushed the mlarose/run-metrics-improvement branch from 3eff5c2 to e51900f Compare October 7, 2024 14:59
@mlarose mlarose force-pushed the mlarose/expose_enable_run_metrics_as_graphql_field branch from 5a113df to 60cdf38 Compare October 7, 2024 14:59
@mlarose mlarose force-pushed the mlarose/run-metrics-improvement branch from e51900f to d338339 Compare October 7, 2024 18:03
@mlarose mlarose force-pushed the mlarose/expose_enable_run_metrics_as_graphql_field branch from 60cdf38 to ac750f9 Compare October 7, 2024 18:03
mlarose added a commit that referenced this pull request Oct 7, 2024
Use the new GraphQL hasRunMetricsEnabled field created in #24662 to condition visibility of run metrics in action menu
@mlarose mlarose force-pushed the mlarose/run-metrics-improvement branch from d338339 to 6c246bc Compare October 8, 2024 11:45
@mlarose mlarose force-pushed the mlarose/expose_enable_run_metrics_as_graphql_field branch from ac750f9 to 9f6cc7e Compare October 8, 2024 11:45
mlarose added a commit that referenced this pull request Oct 8, 2024
Use the new GraphQL hasRunMetricsEnabled field created in #24662 to condition visibility of run metrics in action menu
Copy link

github-actions bot commented Oct 8, 2024

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-oy6mlzgv1-elementl.vercel.app
https://mlarose-expose-enable-run-metrics-as-graphql-field.core-storybook.dagster-docs.io

Built with commit 16514f6.
This pull request is being automatically deployed with vercel-action

@mlarose mlarose force-pushed the mlarose/run-metrics-improvement branch from 6c246bc to 29e1dc3 Compare October 8, 2024 15:15
@mlarose mlarose force-pushed the mlarose/expose_enable_run_metrics_as_graphql_field branch from 9f6cc7e to 61bff7c Compare October 8, 2024 15:15
mlarose added a commit that referenced this pull request Oct 8, 2024
Use the new GraphQL hasRunMetricsEnabled field created in #24662 to condition visibility of run metrics in action menu
Copy link
Contributor Author

mlarose commented Oct 8, 2024

Merge activity

  • Oct 8, 2:05 PM EDT: @mlarose started a stack merge that includes this pull request via Graphite.
  • Oct 8, 2:14 PM EDT: Graphite rebased this pull request as part of a merge.
  • Oct 8, 2:15 PM EDT: @mlarose merged this pull request with Graphite.

@mlarose mlarose changed the base branch from mlarose/run-metrics-improvement to graphite-base/24662 October 8, 2024 18:09
@mlarose mlarose changed the base branch from graphite-base/24662 to master October 8, 2024 18:11
@mlarose mlarose force-pushed the mlarose/expose_enable_run_metrics_as_graphql_field branch from 61bff7c to 16514f6 Compare October 8, 2024 18:13
@mlarose mlarose merged commit 1b27909 into master Oct 8, 2024
1 of 2 checks passed
@mlarose mlarose deleted the mlarose/expose_enable_run_metrics_as_graphql_field branch October 8, 2024 18:15
mlarose added a commit that referenced this pull request Oct 8, 2024
Use the new GraphQL hasRunMetricsEnabled field created in #24662 to condition visibility of run metrics in action menu
mlarose added a commit that referenced this pull request Oct 8, 2024
… tag (#24664)

## Summary & Motivation

Use the new graphql 'hasRunMetricsEnabled' field created in #24662 to condition visibility of run metrics in action menu

## How I Tested These Changes

- manual testing

## Changelog

NOCHANGELOG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants