feat: graph-level annotations, proto in wheel, and schema folder consolidation#72
Open
harsh-sikhwal wants to merge 12 commits into
Open
feat: graph-level annotations, proto in wheel, and schema folder consolidation#72harsh-sikhwal wants to merge 12 commits into
harsh-sikhwal wants to merge 12 commits into
Conversation
ajbalogh
requested changes
Jul 10, 2026
Collaborator
There was a problem hiding this comment.
Please add code snippets to the PR summary showing how with the API a user would annotate the graph, query those graph attributes, and what it would look like when retrieving the full/partial graph. Also if there is a change to the schema please include a link to the redocly documentation.
ajbalogh
approved these changes
Jul 13, 2026
pradoshkeys
approved these changes
Jul 13, 2026
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.
Graph-level annotation support — New graph field on Annotation allows annotating the graph itself (not just nodes/edges/links). Attributes are stored in networkx's graph.graph dict and surfaced in both infragraph and networkx outputs from get_graph. Immutable attribute guard applies. 7 tests added in test_graph_annotations.py.
Proto bundled in wheel — infragraph.proto is now generated into src/infragraph/ and included in the sdist/wheel via pyproject.toml. CI commits the generated proto alongside other artifacts.
Schema folder consolidation — api/ (endpoint definitions) and models/ (component schemas) merged into a single schema/ folder. All cross-references in schema/api.yaml updated. generate.py and CI workflow updated accordingly.
Graph-level annotation support
Adds a new
graphtarget to theAnnotationAPI so key-value metadata can be attached to the whole graph, not just nodes/edges/links. Also refactorsmodels/+api/into a singleschema/folder.Annotate the graph
Query graph-level attributes
Schema changes
schema/annotation.yaml:Annotationgains agraphfield (x-field-uid: 4, array ofAnnotation.Attribute)schema/api.yaml: relocated fromapi/api.yamlmodels/*.yaml→schema/*.yaml(folder rename, no schema content change)Rendered spec: https://keysight.github.io/infragraph/openapi.html