Repository navigation
feat(minigraph-playground): deploy tutorials 2 to 14 as a graph set; drop the import advisory's redundant sentence - #387
Merged
Conversation
…drop the import advisory's redundant sentence
Lock-step twin of the Java example. The Playground example is now the worked example of
graph sets: tutorial-1 and support-triage stay loose graphs, and tutorials 2 to 14 deploy
as the set 'tutorials' (resources/graph/tutorials.pack, version 1.0) unpacked into
file:/tmp/unpack. This repo's graph-packager builds the pack from the engine crate's
tutorial JSON byte-identical with the Java example's.
The import fallback prints "Found deployed graph model in {location}" without the
redundant "Please export an updated version and re-import ..." line. The bundle
(index-BTVKYfNr) and the five tutorial help pages come from the Java webapp's
'npm run release:all'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…efuses a folder inside the Playground's temp folder Twin of the Java follow-up. 'help package', the starter template's commented manifest and the AI agent guide's deploy-a-set steps showed an unpack folder under /tmp/graph, which check_unpack refuses at startup. They now use file:/tmp/unpack and state the rule, and the configuration reference's refusal sentence names a folder inside the temp folder too. tests/graph_set_loader.rs keeps /tmp/graph/unpacked as its negative case. The bundle (index-BVYn3P8C) and the help page come from the Java webapp's 'npm run release:all'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Lock-step twin of Accenture/mercury-composable#567.
examples/minigraph-playground/resources/graphs.yamlkeepstutorial-1andsupport-triageas loose graphs and deploys tutorials 2 to 14 as the settutorials(resources/graph/tutorials.pack, version 1.0), unpacked intofile:/tmp/unpack. This repo'sgraph-packagerbuilds the pack fromcrates/knowledge-graph/resources/graph/tutorial-{2..14}.jsonbyte-identical with the Java example's (SHA-25633107f91…). The README's manifest rows name the set.commands.rs: the console showsFound deployed graph model in {location}and then "Graph model imported as draft". The bundle (index-BTVKYfNr) and the five tutorial help pages come from the Java webapp'snpm run release:all.check_unpackrefuses anunpackfolder inside the Playground's temp folder, yethelp package, the starter template's commented manifest and the AI agent guide's deploy-a-set steps showed one under/tmp/graph. They now usefile:/tmp/unpackand state the rule; the configuration reference adds "or a folder inside it".tests/graph_set_loader.rskeeps/tmp/graph/unpackedas its negative case. Bundleindex-BVYn3P8C.Why
Graph sets had no running example on either engine. The Playground example now deploys loose graphs and a set side by side, and
tests/tutorials.rs- which asserts all fourteen tutorials deployed - exercises the set. The advisory line asked the user to do what the import had just done.Verification
cargo fmt --all --checkclean;cargo clippy -p mercury-knowledge-graph -p minigraph-playground --all-targets -- -D warningscleancargo test -p mercury-knowledge-graph -p minigraph-playground- 99 passed, 0 failed; the loader's generated manifest in/tmp/unpackrecords the set deployed fromclasspath:/graph/tutorials.packCo-Authored-By: Claude Opus 5.5 noreply@anthropic.com
🤖 Generated with Claude Code