Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GEN-2214]: add Tier and InstallationMethod fields to Describe Odigos (…
…#2185) Following up with a UI update in reference to #2184 --- This pull request introduces several changes to the `frontend/graph` and `frontend/webapp` components to add support for `tier` and `installationMethod` fields in the `OdigosAnalyze` structure. The most important changes include updates to the GraphQL schema, resolvers, and TypeScript definitions. ### GraphQL Schema and Resolvers: * Added `tier` and `installationMethod` fields to the `OdigosAnalyze` struct in `frontend/graph/generated.go` and updated the corresponding complexity functions. [[1]](diffhunk://#diff-4bacf1f13939a5c243f3f83d21f4560b331d13667d81ea5945ed1f57ddb205f2R327-R333) [[2]](diffhunk://#diff-4bacf1f13939a5c243f3f83d21f4560b331d13667d81ea5945ed1f57ddb205f2R1770-R1776) [[3]](diffhunk://#diff-4bacf1f13939a5c243f3f83d21f4560b331d13667d81ea5945ed1f57ddb205f2R1812-R1818) * Implemented resolver functions for the new `tier` and `installationMethod` fields in `frontend/graph/generated.go`. * Updated the `OdigosAnalyze` query to include the new fields in `frontend/graph/generated.go`. [[1]](diffhunk://#diff-4bacf1f13939a5c243f3f83d21f4560b331d13667d81ea5945ed1f57ddb205f2R13327-R13330) [[2]](diffhunk://#diff-4bacf1f13939a5c243f3f83d21f4560b331d13667d81ea5945ed1f57ddb205f2R20112-R20121) ### TypeScript and GraphQL Queries: * Updated the `OdigosAnalyze` type definition to include `tier` and `installationMethod` in `frontend/graph/model/models_gen.go` and `frontend/graph/schema.graphqls`. [[1]](diffhunk://#diff-642ccd7ed71fdfa394bd7f7fd99c9c33e20ff18c876a91cb989d379a44390469R389-R390) [[2]](diffhunk://#diff-bc07b91dedd1782d9ddbbb6374ad97c7604f9a267de5174645723d863c732f80R547-R548) * Modified the `convertOdigosToGQL` function to map the new fields in `frontend/services/describe/odigos_describe/odigos_describe.go`. * Extended the GraphQL query `DESCRIBE_ODIGOS` to fetch `tier` and `installationMethod` in `frontend/webapp/graphql/queries/describe.ts`. * Updated the `useDescribeOdigos` hook to handle the new fields in `frontend/webapp/hooks/describe/useDescribeOdigos.ts`. * Added `tier` and `installationMethod` to the `OdigosAnalyze` interface in `frontend/webapp/types/describe.ts`.
- Loading branch information