Skip to content

common/v1.0.150

  • common/v1.0.150
  • 0db998a
  • Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
  • Compare
    Choose a tag to compare
  • common/v1.0.150
  • 0db998a
  • Compare
    Choose a tag to compare
  • Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
@BenElferink BenElferink tagged this 11 Feb 09:52
This pull request introduces a new `K8sAttributes` action type to the
codebase, including its schema, model, and resolver implementations.
Additionally, the `DeleteAttribute` action type is removed. The most
important changes include the addition of new structs and types, updates
to GraphQL schema and resolvers, and changes to the frontend to support
the new action type.

### Backend Changes:
* Added `K8sAttributes` related structs and methods in
`frontend/graph/model/models_gen.go` and
`frontend/services/actions/k8sattributes.go` to handle the new action
type
[[1]](diffhunk://#diff-642ccd7ed71fdfa394bd7f7fd99c9c33e20ff18c876a91cb989d379a44390469R364-R403)
[[2]](diffhunk://#diff-696d77a28418879dedeb81bb982d9bcc94207ff957abf8191cd95acd5e59f1b7R1-R202).
* Updated GraphQL schema to include `K8sAttributes` action type
definitions in `frontend/graph/schema.graphqls`.
* Modified resolver functions in `frontend/graph/schema.resolvers.go` to
support CRUD operations for `K8sAttributes`
[[1]](diffhunk://#diff-8e6e95029056db2c0301fc338e0ca5a04356ce5d45ee9514bbd167f2d85bae70R182-R199)
[[2]](diffhunk://#diff-8e6e95029056db2c0301fc338e0ca5a04356ce5d45ee9514bbd167f2d85bae70R710-R711)
[[3]](diffhunk://#diff-8e6e95029056db2c0301fc338e0ca5a04356ce5d45ee9514bbd167f2d85bae70R739-R740)
[[4]](diffhunk://#diff-8e6e95029056db2c0301fc338e0ca5a04356ce5d45ee9514bbd167f2d85bae70R768-R773).

### Frontend Changes:
* Updated TypeScript types and hooks to handle the new `K8sAttributes`
action type in `frontend/webapp/@types/actions.ts` and
`frontend/webapp/hooks/actions/useActionCRUD.ts`
[[1]](diffhunk://#diff-b99a36c3fda3b946157ee7c73048d901dd88fb42ca4c1824b49f10c22428a51cR17-L20)
[[2]](diffhunk://#diff-97e103ce27156651b4a989f874cbddcdc9a3c2583c0a14e36d036bdd4f66933eR63-R76)
[[3]](diffhunk://#diff-97e103ce27156651b4a989f874cbddcdc9a3c2583c0a14e36d036bdd4f66933eR133-R137)
[[4]](diffhunk://#diff-97e103ce27156651b4a989f874cbddcdc9a3c2583c0a14e36d036bdd4f66933eR157-R160).
* Adjusted imports and type references in various frontend components to
accommodate changes in the action types
[[1]](diffhunk://#diff-28b4299bcdd8388bb12e495d5ac9f8fb8dc4e0491a8aaa9f69ffaf77ab630a6eL9-R9)
[[2]](diffhunk://#diff-28b4299bcdd8388bb12e495d5ac9f8fb8dc4e0491a8aaa9f69ffaf77ab630a6eL19-R19)
[[3]](diffhunk://#diff-9118797e852fc875768d26edabbef50a7e5084e6a399ba181a1323403e4a32bbL8-R13).

### Dependency Updates:
* Updated `@odigos/ui-containers` and `@odigos/ui-utils` versions in
`frontend/webapp/package.json`.

---------

Co-authored-by: Ron Federman <[email protected]>
Assets 2
Loading