Repository navigation
Conversation
Adds GET /mtas/{mtaId}/graph (live, from CF metadata annotations) and
POST /mtas/graph (descriptor-based, parses mtad.yaml). Introduces
MtaGraph/Node/Edge models. Requires mta_module_required_dependencies
annotation written by the metadata annotations commit.
This branch has not been deployed
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.
Description:
Exposes the MTA module/resource dependency graph via two new REST endpoints:
POST /api/v1/spaces/{spaceGuid}/mtas/graph— builds a graph from asubmitted
mtad.yamldescriptor without requiring a deployed MTA.GET /api/v1/spaces/{spaceGuid}/mtas/{mtaId}/graph— builds a graph fromthe live deployed MTA metadata.
What changes:
MtaGraph,MtaGraphNode,MtaGraphEdgemodels added to the API module.Edges carry
from,to,type(requires/provides), andname(thedependency name).
MtasApiService/MtasApiextended with the two new operations.MtasApiServiceImplimplements graph construction by traversing modulerequires/providesdeclarations.MtaMetadataAnnotationsgains ashowcase-versionannotation key; themetadata parser and
ApplicationMetadataBuilderpersist/read it so thelive-graph endpoint can reflect descriptor-level dependency names.
Design choices:
dot -Tpng), keeping the API transport-agnostic.Issue:
LMCROSSITXSADEPLOY-3717