-
Notifications
You must be signed in to change notification settings - Fork 1
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
Improve routing logic #425
Conversation
…-dev into issue422_routing
cd8296a
to
61e428b
Compare
server/src/parser/README.md
Outdated
|
||
The executed command looks as follows: | ||
- `__ctrlFlow(routing="root()`: Marks the lop-level package containing all templates, e.g., |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lop-level
--> top-level
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
}); | ||
|
||
it("Extracts two templates and three Template types to be in stores", () => { | ||
const templates = [...getTemplates()]; | ||
expect(templates.length).toBe(2); | ||
|
||
const systemTypes = [...getSystemTypes()]; | ||
expect(systemTypes.length).toBe(3); | ||
console.log(systemTypes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to keep this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. I've removed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good. Please see the inline comments.
@JayHuLBL Thanks!
|
@AntoineGautier Only one small question. Other than that, it looks good to me. |
TODO
Description
This PR
ctrl-flow-dev/server/src/parser/README.md
Lines 177 to 187 in 6659aba
templateNodes
array, seectrl-flow-dev/server/src/parser/loader.ts
Lines 38 to 40 in 6659aba
ctrl-flow-dev/server/src/parser/template.ts
Lines 226 to 243 in 6659aba
Related Issue(s)
#422
Dependency to #424
Testing
With these changes, and using a temporary branch of MBL that adds
__ctrlFlow(routing="template")
to both the HP plant template and its controller, we get the following template list in the UI (to be compared to the screenshot from the issue page).