You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AIP-84 Add last_asset_event to assets list endpoint #47164
Right now, the functionality of the Assets List in the UI is limited.
Let's extend the existing public/assets endpoint to include latest_asset_event_id and latest_asset_event_timestamp.
Let's make the entire list sortable and filterable by latest_asset_event_timestamp so I can do things like see my assets that have recent updates or see only assets with an update in the last 24 hours
Also just to mention that this is a Custom endpoint => /ui. /public interface should remain unchanged. (and most likely we can factorize serializers/re-use code. Basically the ui asset response can extend the public AssetResponse and add the required field.)
changed the title [-]AIP-84 Custom list assets endpoint with latest event[/-][+]AIP-84 Add last_asset_event to assets list endpoint and assets sortable by event[/+]on Apr 23, 2025
changed the title [-]AIP-84 Add last_asset_event to assets list endpoint and assets sortable by event[/-][+]AIP-84 Add last_asset_event to assets list endpoint and sort assets by event[/+]on Apr 23, 2025
changed the title [-]AIP-84 Add last_asset_event to assets list endpoint and sort assets by event[/-][+]AIP-84 Add last_asset_event to assets list endpoint[/+]on Apr 23, 2025
Activity
pierrejeambrun commentedon Feb 28, 2025
Makes sense. Adding good first issue label, let me know if this is needed asap or not.
Lee-W commentedon Mar 3, 2025
@alekzene sure thing. just assigned to you 🙂
Lee-W commentedon Mar 3, 2025
If I understand correctly, we will need to extend
airflow/airflow/api_fastapi/core_api/routes/public/assets.py
Line 95 in 27f559e
AssetEvent. To allow the response to include this information, we'll need to also changeairflow/airflow/api_fastapi/core_api/datamodels/assets.py
Line 45 in 27f559e
jroachgolf84 commentedon Mar 21, 2025
I'm going to take a look at this as well. Let me know if you have a PR open @alekzene!
jroachgolf84 commentedon Mar 21, 2025
@Lee-W, curious your thoughts here. Do we want to make the
last_asset_eventfield a timestamp, or a reference to an actualAssetEvent?Lee-W commentedon Mar 23, 2025
an AssetEvent probably would make things easier
pierrejeambrun commentedon Mar 24, 2025
Also just to mention that this is a
Customendpoint =>/ui./publicinterface should remain unchanged. (and most likely we can factorize serializers/re-use code. Basically theuiasset response can extend the publicAssetResponseand add the required field.)jroachgolf84 commentedon Mar 24, 2025
That makes sense. From my understanding, the UI view that we'd be tweaking would be
/assets(the Asset list view).7 remaining items
[-]AIP-84 Custom list assets endpoint with latest event[/-][+]AIP-84 Add last_asset_event to assets list endpoint and assets sortable by event[/+][-]AIP-84 Add last_asset_event to assets list endpoint and assets sortable by event[/-][+]AIP-84 Add last_asset_event to assets list endpoint and sort assets by event[/+][-]AIP-84 Add last_asset_event to assets list endpoint and sort assets by event[/-][+]AIP-84 Add last_asset_event to assets list endpoint[/+]bbovenzi commentedon Apr 23, 2025
Thanks Jake! Just updated the description to reflect the changes we talked about
jroachgolf84 commentedon Apr 28, 2025
Just an update, I've implemented the change. Working on making sure that all unit-tests pass!
bbovenzi commentedon May 6, 2025
Just opened a PR to show the timestamp in the asset list UI.
Next up we should add
order_bytimestamp in the API and thenlast_asset_event_lteandlast_asset_event_gtefiltersjroachgolf84 commentedon May 20, 2025
Work completed, all set to close.
bbovenzi commentedon May 22, 2025
Did we update
order_byand filters?pierrejeambrun commentedon May 23, 2025
I believe it remains to be done.
pierrejeambrun commentedon Aug 21, 2025
Closing, because filtering and order_by will be done in #53052