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

Gives user visibility into whether nodes are external inputs or not #99

Merged
merged 2 commits into from
Mar 12, 2023

Conversation

elijahbenizzy
Copy link
Collaborator

This allows you to programmatically determine the inputs to your DAG. One component of #97.

[Short description explaining the high-level reason for the pull request]

Changes

How I tested this

Notes

Checklist

  • PR has an informative and human-readable title (this will be pulled into the release notes)
  • Changes are limited to a single goal (no scope creep)
  • Code passed the pre-commit check & code is left cleaner/nicer than when first encountered.
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future TODOs are captured in comments
  • Project documentation has been updated if adding/changing functionality.

This allows you to programmatically determine the inputs to your DAG.
One component of #97.
@@ -69,7 +69,8 @@ class Variable:

name: str
type: typing.Type
tags: Dict[str, str] = field(default_factory=frozenset)
tags: Dict[str, str] = field(default_factory=dict)
is_external_input: bool = field(default=False)
Copy link
Collaborator

@skrawcz skrawcz Mar 5, 2023

Choose a reason for hiding this comment

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

we use UD in visualizing the DAG -- so should it be is_user_defined_input / is_user_provided_input instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If anything we should change that -- user_defined to me makes less sense than external. Also UD is confusing without a legend...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yep sure. I'm just thinking about language. @gravesee do you have any preference here?

@elijahbenizzy elijahbenizzy marked this pull request as ready for review March 9, 2023 02:28
@elijahbenizzy elijahbenizzy merged commit 5233166 into main Mar 12, 2023
@elijahbenizzy elijahbenizzy deleted the expose-external-input branch March 12, 2023 04:53
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