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

Flash an error msg instead of failure in rendered-templates when map index is not found #32011

Merged
merged 2 commits into from
Jun 25, 2023

Conversation

hussein-awala
Copy link
Member

closes: #32005

Before this PR:
image

After this PR:
image


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Jun 19, 2023
ti.refresh_from_task(raw_task)
else:
# When there is no task instance with the given map_index
ti = TaskInstance(raw_task, map_index=map_index)
Copy link
Member

@uranusjr uranusjr Jun 20, 2023

Choose a reason for hiding this comment

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

I would prefer this to do something more explicit. It is very awkward to instantiate a fake task instance without any intention to run it.

Copy link
Member Author

Choose a reason for hiding this comment

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

could you check it now?
Here is the result on the UI:
image

Copy link
Member

Choose a reason for hiding this comment

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

Do we want to keep the Rendered Template line in the empty tab? (That’s title I think?) Maybe we can change it to a Markup object that shows some details on the error.

@hussein-awala hussein-awala force-pushed the fix/rendered_templates branch from e132cd1 to 92d7b66 Compare June 20, 2023 22:12
@eladkal eladkal added this to the Airlfow 2.6.3 milestone Jun 25, 2023
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Jun 25, 2023
@potiuk potiuk merged commit 62a534d into apache:main Jun 25, 2023
ferruzzi pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Jun 27, 2023
…p index is not found (apache#32011)



---------

Signed-off-by: Hussein Awala <[email protected]>
ephraimbuddy pushed a commit that referenced this pull request Jul 6, 2023
…p index is not found (#32011)

---------

Signed-off-by: Hussein Awala <[email protected]>
(cherry picked from commit 62a534d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

webserver - MAPPED tasks - rendered-templates page FAIL
5 participants