-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Extract asset-related methods from DagsterInstance into AssetMixin #31619
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Aug 7, 2025
c8256a3
to
0b9e343
Compare
4e7d7ef
to
a39d5fd
Compare
0b9e343
to
b04e9ec
Compare
0039e52
to
aa59675
Compare
e2ea392
to
3d04cb3
Compare
aa59675
to
5897b3c
Compare
4c6cb29
to
e9d7f54
Compare
5897b3c
to
440381f
Compare
e9d7f54
to
cf2f360
Compare
440381f
to
0d8fe89
Compare
cf2f360
to
fcd94eb
Compare
0d8fe89
to
efefbde
Compare
This was referenced Aug 7, 2025
efefbde
to
9d7d1cc
Compare
fcd94eb
to
45746e9
Compare
352877e
to
1acb5b1
Compare
3c0c4a3
to
7340d93
Compare
1acb5b1
to
0aa2ff9
Compare
7340d93
to
938c463
Compare
0aa2ff9
to
1729a13
Compare
938c463
to
bf4d8c7
Compare
1729a13
to
5f1eccb
Compare
5f1eccb
to
664b684
Compare
bf4d8c7
to
84e8f70
Compare
664b684
to
ee2aa69
Compare
ce6565c
to
61ec23c
Compare
This was referenced Aug 8, 2025
61ec23c
to
27b7053
Compare
ee2aa69
to
8c84d34
Compare
27b7053
to
520ac48
Compare
8c84d34
to
81e05b1
Compare
OwenKephart
approved these changes
Aug 8, 2025
This refactoring moves approximately 80 asset-related methods from the DagsterInstance class into a new AssetMixin class to improve code organization and maintainability. The change follows the existing pattern used by other mixins like SettingsMixin, RunsMixin, and DomainsMixin. Key changes: - Created new AssetMixin class containing all asset-related methods - Updated DagsterInstance to inherit from AssetMixin for backward compatibility - Cleaned up imports in instance.py - Maintained all existing public APIs
520ac48
to
f0cfb12
Compare
This was referenced Aug 8, 2025
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary & Motivation
Extracted all asset-related methods from the
DagsterInstance
class into a newAssetMixin
class to improve code organization and maintainability. This follows the existing pattern used by other mixins likeSettingsMixin
,RunsMixin
, andDomainsMixin
.The refactoring moves approximately 80 asset-related methods from
instance.py
to the newasset_mixin.py
file, including:get_asset_keys
,has_asset_key
,all_asset_keys
)The
DagsterInstance
class now inherits fromAssetMixin
to maintain full backward compatibility.How I Tested These Changes
Existing test suite covers all moved methods.
Changelog
Refactoring: Extracted asset-related methods from
DagsterInstance
into newAssetMixin
class for improved code organization. No breaking changes to public API.