Time travel queries for objects with a status
field not showing in before/after JSON
#88
Labels
bug
Something isn't working
status
field not showing in before/after JSON
#88
Steps to reproduce
status
field (like aDevice
) setting thestatus
toActive
status
field value to another value (e.g.Planned
)Expected behavior
Observed behavior
Debug
I was attempting to fix this by debugging the inner
render_before_after_diff()
function inside ofdolt.dynamic.diff_factory.DiffListViewBase.wrap_render_func()
.On line 249 in the code, I am seeing that the
value
variable is "Planned" when it should be "Active" since this should be the before state:I confirmed that the JSON blob being generated in the from/to query annotations is missing the
from_status
andto_status
fields. In this debug example the object was not aDevice
, but the issue appears to the the same:It appears to me that the
to_queryset
andfrom_queryset
inside ofdolt.diffs.two_dot_diffs()
need to be tweaked a little.The text was updated successfully, but these errors were encountered: