-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Displaying "actual" try number in TaskInstance view #34635
Displaying "actual" try number in TaskInstance view #34635
Conversation
1bd04c0
to
9258a24
Compare
9258a24
to
4081e24
Compare
4081e24
to
3d60e85
Compare
docs need fixing for that one (and rebase). |
ping @SamWheating there is still time for this fix to be included in next release |
Thanks for the bump, looking into this now 👀 How do you feel about the approach in general? It feels kinda hacky to me, but it technically works so 🤷 |
3d60e85
to
c3a7aaa
Compare
c3a7aaa
to
b47d3bd
Compare
@bbovenzi approved so I guess it's OK :) |
Yeah, if this gives the correct number then I'm happy with it. We should check that everywhere uses the right try_number. |
@bbovenzi can we merge it then? |
f370ca4
to
e8858b9
Compare
Merging :) |
(cherry picked from commit ce6ac41)
(cherry picked from commit ce6ac41)
(cherry picked from commit ce6ac41)
closes: #34309
Since we do some weird stuff with the
try_number
property, we have to do some weird stuff in order to properly search / display it in the UI 🥴:try_number.expression
so that sqlalchemy only sees the actualtry_number
value when searching or filtering.prev_attempted_tries
property in place of thetry_number
property in order to display the actualtry_number
value.This causes the UI to function as expect, only showing + filtering on the actual value from the DB:
However, this feels pretty hacky and I think that overriding the
hybrid_property
expression in particular might cause some issues down the line. I am going to see how complicated it would be to remove the weird try_number property altogether, moving thetry_number+1
logic to a separate property or selectively incrementing the value where required.All feedback and suggestions welcome.