Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delegate not working for transition operators. #21

Open
phil-kahrl opened this issue Nov 2, 2020 · 0 comments
Open

Delegate not working for transition operators. #21

phil-kahrl opened this issue Nov 2, 2020 · 0 comments

Comments

@phil-kahrl
Copy link

phil-kahrl commented Nov 2, 2020

Build info: appgen": "@encapsule/holistic v0.0.47 alexandrite Jvp9FcdjQNuiXkE2zcUjJA 4854c0117a5fa5e257006b334d52368e1997cfc0 2020-11-01T16:38:28.000Z",

The delegate transition operator with signature:

CellProcessor: { cell: { cellCoordinates: "#.cell2Proxy", delegate: { ...

Does not work, the operator being dispatched does not get the correct apmBindingPath.

An example is in this branch: https://github.com/Viewpath/viewpath5/tree/delegate-bug

node
var cp = require("./SOURCES/CLIENT/delegate-test")

cp.toJSON().opc.toJSON().ocdi.toJSON().PKj0xsAzRkC9SR_TiS1ZrA_CellProcesses

{ cellProcessMap: { '4ODg4BoaGhqkpKSkX19fXw': { cell2Proxy: [Object], __apmiStep: 'waiting_for_cell_2' } }, revision: 1 }

The APM for cell1 " '4ODg4BoaGhqkpKSkX19fXw" should transition to ready state because cell2 " x7pM9bwcReupSRh0fcYTgw" is in ready state but no such transition occurs.

https://github.com/Viewpath/viewpath5/blob/delegate-bug/SOURCES/CLIENT/delegate-test/cellModel1/index.js#L54

Looking at the debugger it does not appear that the apmBindingPath is being resolved correctly in the proxy in the implementation for the delegate operator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant