Skip to content

Conversation

@prha
Copy link
Member

@prha prha commented Nov 22, 2025

Summary & Motivation

How I Tested These Changes

Changelog

Insert changelog entry or delete this section.

Copy link
Member Author

prha commented Nov 22, 2025

@github-actions
Copy link

github-actions bot commented Nov 22, 2025

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-dqwnq07at-elementl.vercel.app
https://prha-asset-checks-04-graphql.core-storybook.dagster-docs.io

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

@prha prha force-pushed the prha/asset-checks-03-asset-graph branch from 4213f4b to a913f96 Compare November 22, 2025 06:25
@prha prha force-pushed the prha/asset-checks-04-graphql branch 2 times, most recently from 9fb5bd3 to ec88c00 Compare November 22, 2025 19:50
@prha prha force-pushed the prha/asset-checks-03-asset-graph branch from a913f96 to abc217b Compare November 22, 2025 19:50
@prha prha force-pushed the prha/asset-checks-04-graphql branch from ec88c00 to 0abb3cf Compare November 22, 2025 20:26
@prha prha force-pushed the prha/asset-checks-03-asset-graph branch 2 times, most recently from e38d765 to 6d3c5ff Compare November 22, 2025 20:31
@prha prha force-pushed the prha/asset-checks-04-graphql branch 2 times, most recently from 9de7d5a to 131d77c Compare November 22, 2025 20:49
@prha prha force-pushed the prha/asset-checks-03-asset-graph branch from 6d3c5ff to 012ba9e Compare November 22, 2025 20:49
@prha prha force-pushed the prha/asset-checks-04-graphql branch from 131d77c to 92c7290 Compare November 22, 2025 22:01
@prha prha force-pushed the prha/asset-checks-03-asset-graph branch from 012ba9e to 7c85971 Compare November 22, 2025 22:01
@prha prha force-pushed the prha/asset-checks-04-graphql branch from 92c7290 to e23bbee Compare November 22, 2025 22:51
@prha prha force-pushed the prha/asset-checks-03-asset-graph branch from 7c85971 to 25f28ca Compare November 22, 2025 22:51
@prha prha force-pushed the prha/asset-checks-04-graphql branch from e23bbee to da8ded6 Compare November 22, 2025 23:06
@prha prha force-pushed the prha/asset-checks-03-asset-graph branch 2 times, most recently from 5dde55b to cc9e6f0 Compare November 22, 2025 23:52
@prha prha force-pushed the prha/asset-checks-04-graphql branch 3 times, most recently from b5b9078 to a6173b9 Compare November 23, 2025 02:50
This PR adds the GraphQL layer for partitioned asset checks:

- Add partitionsDefinition field to GraphQL AssetCheck type
- Add AssetCheckPartitionStatus type for partition-level status tracking
- Add resolver for assetCheckPartitionStatuses query
- Update asset graph schema to expose check partition information
- Add partition filtering to asset check execution history queries
- Generate TypeScript types for UI consumption

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@prha prha force-pushed the prha/asset-checks-04-graphql branch from a6173b9 to 93049b2 Compare November 23, 2025 03:21
@prha prha force-pushed the prha/asset-checks-03-asset-graph branch from 82ecfd9 to dae6172 Compare November 23, 2025 03:21
prha and others added 2 commits November 22, 2025 21:25
Added comprehensive tests for retrieving asset check executions for
partitioned assets via GraphQL:

1. test_partitioned_asset_check_executions
   - Tests basic partition support for asset checks
   - Creates check executions for multiple partitions
   - Verifies both IN_PROGRESS and completed (SUCCEEDED/FAILED) statuses
   - Validates evaluation metadata and descriptions per partition

2. test_partitioned_asset_check_executions_with_partition_filter
   - Tests the partition filter parameter in assetCheckExecutions query
   - Creates checks for different time-based partitions (2024-01, 2024-02)
   - Verifies filtering works correctly to isolate specific partition executions
   - Tests both filtered and unfiltered queries

These tests ensure the GraphQL API correctly handles partitioned asset checks,
which is essential for querying check status on a per-partition basis.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
The AssetCheckEvaluation class has a partition field that needs to be set
when storing evaluation events for partitioned asset checks. This field is
used by the storage layer to properly associate evaluations with their
partitions, enabling partition-based filtering in the GraphQL API.

Changes:
- Added partition parameter to AssetCheckEvaluation in test events
- This ensures evaluations are properly linked to their partitions
- All partition filter tests now pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
MultiPartitionsSnap,
),
):
if start_idx and end_idx and isinstance(partitions_snap, TimeWindowPartitionsSnap):
Copy link
Contributor

Choose a reason for hiding this comment

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

This condition will incorrectly evaluate to False when start_idx is 0, preventing users from querying partitions starting at index 0.

if start_idx is not None and end_idx is not None and isinstance(partitions_snap, TimeWindowPartitionsSnap):

The truthiness check (if start_idx and end_idx) treats 0 as falsy, so start_idx=0 will be ignored. This should use explicit is not None checks instead.

Suggested change
if start_idx and end_idx and isinstance(partitions_snap, TimeWindowPartitionsSnap):
if start_idx is not None and end_idx is not None and isinstance(partitions_snap, TimeWindowPartitionsSnap):

Spotted by Graphite Agent

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

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