<#7430 Add labels to create run /list runs api.> P...
# flyte-github
a
#7430 Add labels to create run /list runs api. Pull request opened by afbrock Tracking issue https://linear.app/unionai/issue/PRD-422/be-listruns-should-include-run-labels Why are the changes needed? These changes add labels to the list runs api. This is done by adding effectively a duplication of the labels that are currently in runspec into the top level run object, as list runs only returns a repeated run object instead of the full run details object (which is the right thing to do.) The other change is that I added operators specific to (and important for) filtering key value pairs into the common list filters enum. A user can add flyte specific key value pair labels in order to organize and filter their runs by adding filters where the field is the concatenation of 'labels." and the key name. How was this patch tested? Along with flyteorg/flyte-sdk#1140 and unionai/cloud#16161 running in devbox, runs can be created and filtered based on label data that is persisted along with run information. Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. Docs link flyteorg/flyte