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

Add triggerer info to task instance in API #26249

Merged

Conversation

dstandish
Copy link
Contributor

@dstandish dstandish commented Sep 8, 2022

Showing triggerer info in a section at the top of grid view TI details section
section will only be visible when ti state is deferred
image

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels Sep 8, 2022
@dstandish dstandish force-pushed the add-triggerer-info-for-deferred-tasks branch from ef4447b to 54a7b37 Compare September 9, 2022 21:55
@uranusjr uranusjr self-requested a review September 12, 2022 08:39
@uranusjr
Copy link
Member

Code makes sense to me. A few tests on the API and this should be good to go.

@uranusjr uranusjr removed their request for review September 12, 2022 08:40
@dstandish dstandish force-pushed the add-triggerer-info-for-deferred-tasks branch from 54a7b37 to f5a35c8 Compare September 13, 2022 00:24
@dstandish dstandish marked this pull request as ready for review September 13, 2022 06:45
@dstandish dstandish changed the title WIP Add triggerer info to task instance in API Add triggerer info to task instance in API Sep 13, 2022
airflow/example_dags/example_time_delta_sensor_async.py Outdated Show resolved Hide resolved
innerjoin=True,
)

trigger = relationship("Trigger", uselist=False)
Copy link
Member

Choose a reason for hiding this comment

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

Why don't we need innerjoin any longer?

Copy link
Contributor Author

@dstandish dstandish Sep 14, 2022

Choose a reason for hiding this comment

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

i don't think we ever needed it. not every TI has a trigger, so what happens is... when you reference this property in a query, the TIs that don't have a trigger drop out of the result set.
i looked, and it seems that there was only one usage of this attr, and in it, they actually overrided that setting, to set it to false...

@dstandish dstandish force-pushed the add-triggerer-info-for-deferred-tasks branch from 7c0c0d9 to 5ba0be6 Compare September 14, 2022 17:37
@dstandish dstandish merged commit 39c9169 into apache:main Sep 15, 2022
@dstandish dstandish deleted the add-triggerer-info-for-deferred-tasks branch September 15, 2022 21:21
@ephraimbuddy ephraimbuddy added this to the Airflow 2.5.0 milestone Oct 18, 2022
@ephraimbuddy ephraimbuddy added the type:new-feature Changelog: New Features label Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues type:new-feature Changelog: New Features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants