Sequencing server fails to deserialize Duration
-type activity arguments
#1625
Labels
bug
Something isn't working
Duration
-type activity arguments
#1625
Checked for duplicates
No - I haven't checked
Is this a regression?
No - This is a new bug
Version
3.0.1
Describe the bug
The command expansion service incorrectly interprets all
Duration
-type activity arguments (that is,Duration
as a value schema type) as having a value of zero. From a little debugging, it seems likeparse
is returning a duration of zero when parsing the serialized value, which comes as an integer number of microseconds.Relevant sequencing server function:
aerie/sequencing-server/src/lib/batchLoaders/simulatedActivityBatchLoader.ts
Lines 304 to 349 in e92f98a
Reproduction
Write a command expansion rule that uses a
Duration
-type activity parameter and see that the value of the parameter is deserialized for use in the expansion rule as zero.For example, the below uses
GrowBanana
and prints out the string value of the duration (which comes back asPT0S
).Logs
No response
System Info
Aerie 3.0.1 local
Severity
Moderate
The text was updated successfully, but these errors were encountered: