-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Make expand() error vague so it's not misleading #24018
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -201,7 +201,7 @@ def _expand(self, **mapped_kwargs: "Mappable") -> "MappedOperator": | |||||||||
| from airflow.operators.empty import EmptyOperator | ||||||||||
|
|
||||||||||
| validate_mapping_kwargs(self.operator_class, "expand", mapped_kwargs) | ||||||||||
| prevent_duplicates(self.kwargs, mapped_kwargs, fail_reason="mapping already partial") | ||||||||||
| prevent_duplicates(self.kwargs, mapped_kwargs, fail_reason="unmappable or already specified") | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Don't we want to direct the user to the exact place in the docs where more context and details is explained? I think that would be an empathetic bahaviour towards the users who see it for the very first time.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can even create a short link for it:
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Personally I don’t like putting documentation links in the error message. We could make this more prominent in the documentation page though, perhaps adding a section with the error message in the title. |
||||||||||
| ensure_xcomarg_return_value(mapped_kwargs) | ||||||||||
|
|
||||||||||
| partial_kwargs = self.kwargs.copy() | ||||||||||
|
|
||||||||||
Uh oh!
There was an error while loading. Please reload this page.