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

feat: return clones in correct order when computing upcomingCardIds #4109

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Jan 6, 2025

🍕 Quick experimental pizza for manual testing & review !

Unit tests not updated yet

This one-line change gives correct behavior in https://editor.planx.dev/testing/planx-logic-potpourri, still investigating how it holds up for full-sized services & more complex cases

@jessicamcinchak jessicamcinchak added the demo Demo environment being used by an external team label Jan 6, 2025
.concat("_root"),
// run nodeIdsConnectedFrom(answerId)
).forEach(nodeIdsConnectedFrom);

// Then return an array of the upcoming node ids, in depth-first order
return sortIdsDepthFirst(flow)(ids);
return Array.from(ids);
Copy link
Member Author

Choose a reason for hiding this comment

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

This line is the only functional change - other lines are prettier/linting !

Copy link

github-actions bot commented Jan 6, 2025

Pizza

Deployed b18a2ba to https://4109.planx.pizza.

Useful links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demo Demo environment being used by an external team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant