getStatePartition chrome debug on GES, wrong parameters order ?

Trying to create/debug a projection on a test GES we have,

i got the event with no eventType in the partitionBy function. => Capture1.png

So i went up on the stack to find that the caller function (getStatePartition) isJson variable actually contained the eventType, but not the envelope => Capture2.png

And then up again on the call stack got me on the get_state_partition where

I strongly suspect some code refactoring screwed the parameters order.

I’ll open an issue on github about this one.

Best regards,


Capture1 - partitionBy.PNG

Capture2 - getStatePartition.PNG

Capture3 - getStatePartitionCaller.PNG

Looks like a bug