Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
JS: Add library for exporting graphs as type models #15386
JS: Add library for exporting graphs as type models #15386
Changes from 16 commits
acef9b7
c55e03c
348c95e
946f0b4
f4e05cc
ab3c03d
3022c59
ef7767b
9313564
f2ea88a
56ebe6c
29a6145
81b96a8
8cb80d6
8210143
f5355cf
15eabb4
330229c
3949ae4
844b29b
ee5cb6f
be64daf
c0db40d
3335d48
93a9c62
5e7026c
3c885f3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 have any guarantees (or tests) to show that the edge names we generate here are valid MaD access-paths?
Say we changed
Member[xxx]
to beProperty[xxx]
in the rest of our MaD modeling, would the whole type-model export just silently produce models that couldn't be parsed until a human realized there was a problem? 🤔I can imagine scenarios where we try to parse the access-path generated as if it had been in a YAML file, maybe even checking that if we start from a node that we generate an MaD access-path for, we will reach the same node from parsing and following that access-path
(I realize it's not so much a question about this specific predicate, as a thing in whole... and the question might be answered from reading some of the next commits)
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 guarantees and no currently no tests. I spent a bit of time refactoring the
ModelOutput::getAWarning
into a parameterised module so we could check these as well, but it gets a bit fiddly. I backed out of it for now.Some tests are going to exist in an internal repo where we use model generation, in the sense that those tests would fail if there was a mismatch here.
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.
I think it would be nice with these kinds of tests, however I'm not going to block this PR to get them in NOW.
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.
I assume a "not" was accidentally left out of that sentence 😅
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.
indeed 🙈 (fixed by edit)