[GEN-2214]: add Tier and InstallationMethod fields to Describe Odigos #2185
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.
Following up with a UI update in reference to #2184
This pull request introduces several changes to the
frontend/graph
andfrontend/webapp
components to add support fortier
andinstallationMethod
fields in theOdigosAnalyze
structure. The most important changes include updates to the GraphQL schema, resolvers, and TypeScript definitions.GraphQL Schema and Resolvers:
tier
andinstallationMethod
fields to theOdigosAnalyze
struct infrontend/graph/generated.go
and updated the corresponding complexity functions. [1] [2] [3]tier
andinstallationMethod
fields infrontend/graph/generated.go
.OdigosAnalyze
query to include the new fields infrontend/graph/generated.go
. [1] [2]TypeScript and GraphQL Queries:
OdigosAnalyze
type definition to includetier
andinstallationMethod
infrontend/graph/model/models_gen.go
andfrontend/graph/schema.graphqls
. [1] [2]convertOdigosToGQL
function to map the new fields infrontend/services/describe/odigos_describe/odigos_describe.go
.DESCRIBE_ODIGOS
to fetchtier
andinstallationMethod
infrontend/webapp/graphql/queries/describe.ts
.useDescribeOdigos
hook to handle the new fields infrontend/webapp/hooks/describe/useDescribeOdigos.ts
.tier
andinstallationMethod
to theOdigosAnalyze
interface infrontend/webapp/types/describe.ts
.