-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
deprecate output context metadata for definition_metadata #20198
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @jamiedemaria and the rest of your teammates on Graphite |
92ce690
to
143d07d
Compare
Deploy preview for dagster-docs ready! Preview available at https://dagster-docs-1zb7t0jw4-elementl.vercel.app Direct link to changed pages: |
b605672
to
01cb6ec
Compare
|
||
@public | ||
@property | ||
def definition_metadata(self) -> ArbitraryMetadataMapping: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took the opportunity to tighten up the typing for this property. definition_metadata
will never be None (we always set it to an empty dictionary at minimum)
@@ -113,7 +121,10 @@ def __init__( | |||
self._name = name | |||
self._job_name = job_name | |||
self._run_id = run_id | |||
self._metadata = metadata or {} | |||
normalized_metadata = normalize_renamed_param( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the result of normalize_renamed_param
is assigned to its own var first bc pyright was complaining if i had it as
self._definition_metadata = normalize_renamed_param(definition_metadata, "definition_metadata", metadata, "metadata") or {}
@alangenfeld @smackesey bumping for review when you get the chance. not a high priority, but would be nice to not let it lag too much |
603e4cc
to
c29693a
Compare
be26d1a
to
b3aa7d0
Compare
Summary & Motivation
On
OutputContext
deprecatemetadata
and replace withdefinition_metadata
. This allows us to more easily distinguish between definition and output metadata in #20091Majority of this PR is changing callsites
How I Tested These Changes