HomeElementl

[serdes] filter unknown keys before unpacking (#4858)

Description

[serdes] filter unknown keys before unpacking (#4858)

  • changes value_from_storage_dict to receive the actual storage dict instead of the unpacked
  • make the DefaultNamedTupleSerializer.value_from_storage_dict only unpack values in args_for_class
  • add value_from_unpacked to DefaultNamedTupleSerializer to emulate existing behavior
  • rename _pack_value to pack_inner_value, and _unpack_value to unpack_inner_value

resolves https://github.com/dagster-io/dagster/issues/4857

Test Plan

added representative test case that fails without changes

Details

Provenance
alangenfeldAuthored on Sep 17 2021, 4:37 PM
GitHub <noreply@github.com>Committed on Sep 17 2021, 4:37 PM
Parents
R1:d541a3dbfa36: fix flakes in test_event_log_subscription_chunked (#4855)
Branches
Unknown
Tags
Unknown