Skip to content

Conversation

@dckc
Copy link
Member

@dckc dckc commented Nov 5, 2025

refs:

Description

Add a rejection API to the contract/planner interface.

Security / Scaling / Documentation Considerations

unremarkable

Testing Considerations

  • planner exo test
  • flow test showing flow node is published with { state: 'fail' }

Upgrade Considerations

compatible behavior change only. no exo state changes. compatible with ymaxControl.upgrade(...)

@cloudflare-workers-and-pages

This comment was marked as off-topic.

@dckc dckc self-assigned this Nov 5, 2025
Copy link
Member

@turadg turadg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some generic feedback. I'm not familiar enough with the issue to know whether this solves it. I think the other reviews can approve/deny but if you need me to let's talk so I can figure out how to prioritize it.

Comment on lines +116 to +117
portfolioId: number,
flowId: number,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

somewhat tangential but is the nomenclature that flow/portfolio "ID" is a number and the string form (e.g. portfolio3) is a key?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I've done that consistently.

I sort of think of the id being a number, and sometimes it's passed around as a js number and sometimes it's wrapped in a portfolioN form.

return getCapDataStructure(storage.getValues(path).at(-1));
};

const getDeserialized = (path: string): unknown[] => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why didn't storage.getDeserialized suffice? seems like a lower level concern than portfolio test supports per se

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it didn't exist somehow.

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

Successfully merging this pull request may close these issues.

3 participants