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
The current handling in get_packet_delta doesn't cache the dntoeu values for a given field.
# get converted fields / complex fields
packet_states[pkt_defn.name]['dntoeu'] = {}
dntoeus = {}
for f in pkt_defn.fields:
if f.dntoeu is not None or f.enum is not None or f.type.name in dtype.ComplexTypeMap.keys():
try:
val = getattr(ait_pkt, f.name)
except ValueError:
if isinstance(f.type, dtype.CmdType):
val = "Unidentified Cmd"
else:
val = getattr(ait_pkt.raw, f.name)
if isinstance(val, cmd.CmdDefn) or isinstance(val, evr.EVRDefn):
val = val.name
dntoeus[f.name] =
The dntoeu values are extracted and saved in dntoeus but packet_states isn't updated. It looks like this is causing the frontend to not get a proper set of dntoeu values on its initial request from the server. If these fields' raw values don't change then they get left as only raw values.
The text was updated successfully, but these errors were encountered:
Packet diff handling when previously unseen packet was received failed
to properly initialized the `dntoeu` values for that packet. This meant
that UI clients would be unable to view the "human readable" versions of
fields in the GUI for any field that updated infrequently. This updates
the new packet type handling to properly update the `dntoeu` values as
well.
Resolve#194
Packet diff handling when previously unseen packet was received failed
to properly initialized the `dntoeu` values for that packet. This meant
that UI clients would be unable to view the "human readable" versions of
fields in the GUI for any field that updated infrequently. This updates
the new packet type handling to properly update the `dntoeu` values as
well.
Resolve#194
The current handling in
get_packet_delta
doesn't cache thedntoeu
values for a given field.The dntoeu values are extracted and saved in
dntoeus
butpacket_states
isn't updated. It looks like this is causing the frontend to not get a proper set ofdntoeu
values on its initial request from the server. If these fields' raw values don't change then they get left as only raw values.The text was updated successfully, but these errors were encountered: