Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GEN-1541] Add delete action mutation #1609

Merged
merged 432 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
432 commits
Select commit Hold shift + click to select a range
5e0c295
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 21, 2024
9c9e33c
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 22, 2024
b65cc64
chore: init gql
alonkeyval Jul 22, 2024
fb07059
chore: get cp with actual sources
alonkeyval Jul 22, 2024
7ad8406
chore: remove service name
alonkeyval Jul 22, 2024
0ae9afd
chore: wip
alonkeyval Jul 24, 2024
9762877
chore: init gql apollo client
alonkeyval Jul 24, 2024
c437800
chore: wip
alonkeyval Jul 24, 2024
6ee566f
chore: init base gql schema
alonkeyval Jul 24, 2024
d72cd01
chore: init new setup
alonkeyval Jul 24, 2024
36d3133
chore: setup header
alonkeyval Jul 24, 2024
c8dd4d4
Merge pull request #2 from alonkeyval/gen-1097-setup-redesign
alonkeyval Jul 24, 2024
071406d
chore: setup side menu
alonkeyval Jul 24, 2024
09c9c24
chore: fixed pr comments"
alonkeyval Jul 24, 2024
b396fc1
Merge pull request #3 from alonkeyval/gen-1099-setup-side-menu
alonkeyval Jul 24, 2024
c2db864
chore: init setup sources components
alonkeyval Jul 25, 2024
e444824
chore: init tooltip component
alonkeyval Jul 25, 2024
4632da3
chore: added dropdoen component
alonkeyval Jul 25, 2024
f12cde6
chore: counter component
alonkeyval Jul 25, 2024
154fc7d
chore: wip
alonkeyval Jul 25, 2024
91a7959
chore: wip
alonkeyval Jul 28, 2024
6338070
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 28, 2024
5b3c533
Merge branch 'main' into task-setup-choose-source
alonkeyval Jul 28, 2024
412d448
chore: get compute platform namspace with actual sources
alonkeyval Jul 28, 2024
5242d16
chore: sources list
alonkeyval Jul 28, 2024
fc9e1fc
chore: wip
alonkeyval Jul 29, 2024
abca0bf
chore: wip
alonkeyval Jul 29, 2024
0d32457
Merge pull request #4 from alonkeyval/task-setup-choose-source
alonkeyval Jul 29, 2024
0a6d4af
chore: change endpoints folder to service
alonkeyval Jul 29, 2024
f7f1a17
chore: update endpoints
alonkeyval Jul 29, 2024
a035984
chore: wip
alonkeyval Jul 29, 2024
a89b729
chore: get source with namespace resolver
alonkeyval Jul 30, 2024
50f542d
chore: wip
alonkeyval Jul 30, 2024
cb47d73
Merge pull request #5 from alonkeyval/gen-1110-gen-ns-sources
alonkeyval Jul 30, 2024
28b56d5
Merge branch 'main' of github.com:keyval-dev/odigos into gen-1096-pro…
alonkeyval Jul 30, 2024
675eb6e
chore: select source step
alonkeyval Jul 30, 2024
ec9bec4
Merge pull request #6 from alonkeyval/gen-1203-select-sources
alonkeyval Jul 30, 2024
ab6daf0
chore: init add destination
alonkeyval Jul 30, 2024
3359112
chore: get destination type
alonkeyval Jul 30, 2024
192e4f0
chore: get destination type
alonkeyval Jul 30, 2024
7396111
Merge pull request #7 from alonkeyval/gen-1124-get-destination-list
alonkeyval Jul 30, 2024
f57cdca
chore: wip
alonkeyval Aug 4, 2024
7ee83ae
chore: modal header
alonkeyval Aug 4, 2024
b49336e
chore: wip
alonkeyval Aug 4, 2024
6687777
chore: wip
alonkeyval Aug 4, 2024
df8e83f
chore: ficed pr comments
alonkeyval Aug 4, 2024
3b46524
Merge pull request #8 from alonkeyval/gen-1117-reusable-modal
alonkeyval Aug 4, 2024
a25a024
chore: init destination list
alonkeyval Aug 4, 2024
f3e8c01
chore: wip
alonkeyval Aug 4, 2024
239eac4
chore: code structure
alonkeyval Aug 4, 2024
0f183f4
chore: wip
alonkeyval Aug 5, 2024
d43d439
chore: wip
alonkeyval Aug 5, 2024
833e439
Merge pull request #9 from alonkeyval/gen-1120-choose-destination-list
alonkeyval Aug 5, 2024
0173aa2
chore: init get destination type query
alonkeyval Aug 5, 2024
5f22fa6
Merge pull request #10 from alonkeyval/gen-1130-query-destinations-fiels
alonkeyval Aug 5, 2024
e6dc4be
chore: wip
alonkeyval Aug 5, 2024
d3415f1
chore: wip
alonkeyval Aug 6, 2024
d29ff7d
chore: wip
alonkeyval Aug 7, 2024
49f2424
Merge pull request #11 from alonkeyval/gen-1131-connect-destination-form
alonkeyval Aug 7, 2024
6b67355
chore: create destination mutation
alonkeyval Aug 7, 2024
fbad849
chore: wip
alonkeyval Aug 7, 2024
0663191
Merge pull request #12 from alonkeyval/gen-1132-connect-destination-t…
alonkeyval Aug 7, 2024
65d5b12
chore: init new mutations
alonkeyval Aug 7, 2024
cb7aa4e
chore: wip
alonkeyval Aug 7, 2024
3487650
chore: wip
alonkeyval Aug 7, 2024
801c3ae
chore: use custom hook to manage setup state
alonkeyval Aug 8, 2024
9e0d46a
chore: wip
alonkeyval Aug 8, 2024
47dadd9
chore: wip
alonkeyval Aug 8, 2024
45f5f6d
chore: wip
alonkeyval Aug 8, 2024
d9a8420
chore: wip
alonkeyval Aug 8, 2024
80fb9a6
chore: create destination mutation
alonkeyval Aug 8, 2024
b86f51d
chore: wip
alonkeyval Aug 12, 2024
0469b22
chore: testing setup apis
alonkeyval Aug 15, 2024
96a3df7
chore: wip
alonkeyval Aug 15, 2024
35c2d73
chore: wip
alonkeyval Aug 15, 2024
e65f691
chore: wip
alonkeyval Aug 15, 2024
acf7bda
chore: wip
alonkeyval Aug 15, 2024
949d869
chore: wip
alonkeyval Aug 15, 2024
f8f90f8
chore: wip
alonkeyval Aug 15, 2024
a4f25b5
Merge pull request #13 from alonkeyval/gen-1126-connect-destination
alonkeyval Aug 15, 2024
617cdaf
chore: init configured destination
alonkeyval Aug 18, 2024
6f0d83d
chore: wip
alonkeyval Aug 18, 2024
5b561e5
chore: wip
alonkeyval Aug 18, 2024
5fce209
chore: configured destinations list
alonkeyval Aug 18, 2024
3aa2c68
chore: wip
alonkeyval Aug 18, 2024
9993773
chore: notification note component
alonkeyval Aug 18, 2024
868593d
chore: wip
alonkeyval Aug 18, 2024
8629638
Merge pull request #14 from alonkeyval/gen-1133-configured-destinatio…
alonkeyval Aug 18, 2024
9c8d603
Revert "[GEN-1133] feat: configured destinations list"
alonkeyval Aug 18, 2024
d304c39
chore: fixed pr comments"
alonkeyval Aug 18, 2024
c78130f
Merge pull request #15 from alonkeyval/revert-14-gen-1133-configured-…
alonkeyval Aug 18, 2024
4c82b4e
chore: wip
alonkeyval Aug 19, 2024
68b2e04
chore: wip
alonkeyval Aug 19, 2024
ef67230
Merge pull request #16 from alonkeyval/notification-note
alonkeyval Aug 19, 2024
7f7550e
chore: wip
alonkeyval Aug 19, 2024
bc58f29
chore: init
alonkeyval Aug 19, 2024
c330de6
chore: wip
alonkeyval Aug 19, 2024
d201c37
chore: wip
alonkeyval Aug 19, 2024
6627cbb
Merge pull request #17 from alonkeyval/gen-1128-check-connection-button
alonkeyval Aug 19, 2024
7cdef05
chore: init
alonkeyval Aug 19, 2024
ffde508
chore: wip
alonkeyval Aug 19, 2024
6517e3e
chore: wip
alonkeyval Aug 21, 2024
0936112
chore: wip
alonkeyval Aug 21, 2024
0c8f22b
chore: wip
alonkeyval Aug 21, 2024
e7363cb
chore: wip
alonkeyval Aug 21, 2024
a7d60a6
Merge pull request #18 from alonkeyval/gen-1282-textarea-component
alonkeyval Aug 21, 2024
11adae6
chore: wip
alonkeyval Aug 21, 2024
482c0cb
chore: wip
alonkeyval Aug 21, 2024
536121e
chore: wip
alonkeyval Aug 21, 2024
e287e8f
chore: wip
alonkeyval Aug 21, 2024
e909935
Merge pull request #19 from alonkeyval/gen-1284-multi-input-component
alonkeyval Aug 21, 2024
285192b
chore: wip
alonkeyval Aug 21, 2024
451d15e
chore: wip
alonkeyval Aug 21, 2024
730bd96
Merge pull request #20 from alonkeyval/gen-1284-key-value-input
alonkeyval Aug 21, 2024
bedc79c
chore: no data component
alonkeyval Aug 22, 2024
d7e6043
chore: change dest title
alonkeyval Aug 22, 2024
1b14b3e
chore: wip
alonkeyval Aug 22, 2024
8d09848
chore: wip
alonkeyval Aug 22, 2024
79091b1
chore: wip
alonkeyval Aug 22, 2024
d23621e
chore: wip
alonkeyval Aug 22, 2024
39743b8
chore: wip
alonkeyval Aug 25, 2024
4ec7d38
chore: wip
alonkeyval Aug 25, 2024
fbf35f9
chore: wip
alonkeyval Aug 25, 2024
394692e
chore: wip
alonkeyval Aug 25, 2024
11e95c3
chore: wip
alonkeyval Aug 25, 2024
14eac57
Merge pull request #21 from alonkeyval/setup-style-fixes
alonkeyval Aug 25, 2024
2f1e32d
chore: get detected destinations from gql
alonkeyval Aug 25, 2024
40ca78c
chore: wip
alonkeyval Aug 25, 2024
917c399
chore: skeleton component
alonkeyval Aug 25, 2024
d84f144
chore: wip
alonkeyval Aug 26, 2024
508ebc2
chore: wip
alonkeyval Aug 26, 2024
0e29069
chore: wip
alonkeyval Aug 26, 2024
5ce5d5b
chore: wip
alonkeyval Aug 26, 2024
6d25e8d
chore: wip
alonkeyval Aug 26, 2024
5fb7790
Merge pull request #22 from alonkeyval/gen-1316-detected-destinations
alonkeyval Aug 26, 2024
9b97380
chore: wip
alonkeyval Aug 27, 2024
18d6ef9
chore: wip
alonkeyval Aug 27, 2024
f9e2f86
chore: wip
alonkeyval Aug 27, 2024
63ae46d
chore: wip
alonkeyval Aug 27, 2024
722b376
chore: wip
alonkeyval Aug 27, 2024
6ae8384
chore: fixed pr commentd
alonkeyval Aug 27, 2024
99161bf
Merge pull request #23 from alonkeyval/gen-1340-connect-form-validation
alonkeyval Aug 27, 2024
608d6a8
chore: wip
alonkeyval Sep 3, 2024
8266ac9
chore: wip
alonkeyval Sep 3, 2024
66d11f6
chore: tidy
alonkeyval Sep 3, 2024
26ccfce
Merge pull request #24 from alonkeyval/gen-1359-merge-upstream
alonkeyval Sep 3, 2024
ed21ccf
chore: wip
alonkeyval Sep 3, 2024
7f17035
Merge pull request #25 from alonkeyval/gen-1341-delete-old-setup=files
alonkeyval Sep 3, 2024
9bc0049
chore: overview header
alonkeyval Sep 3, 2024
4d1aa51
chore: wip
alonkeyval Sep 3, 2024
5fa8896
chore: wip
alonkeyval Sep 3, 2024
b41b9fa
Merge pull request #26 from alonkeyval/gen-1136-overview-header
alonkeyval Sep 3, 2024
a9959b9
fix: add react types
alonkeyval Sep 11, 2024
14aba8f
feat: add destination gqlgen and custom query from client
alonkeyval Sep 12, 2024
fed6a91
Merge pull request #27 from alonkeyval/gen-1361-get-current-cp
alonkeyval Sep 12, 2024
f71866f
feat: query actual sources
alonkeyval Sep 12, 2024
cc6d206
Merge pull request #28 from alonkeyval/gen-1400-get-actual-sources
alonkeyval Sep 12, 2024
9c35d68
chore: query actions
alonkeyval Sep 15, 2024
67487bb
Merge pull request #29 from alonkeyval/gen-1402-get-actual-actions
alonkeyval Sep 15, 2024
7099ef9
chore: insert destinations and action to cp and create resolvers
alonkeyval Sep 15, 2024
a641098
chore: insert actual source to cp
alonkeyval Sep 15, 2024
c60eb18
chore: generate resolver for cp namespaces
alonkeyval Sep 15, 2024
15921b5
Merge pull request #30 from alonkeyval/gen-1403-refactor-gql-schema
alonkeyval Sep 15, 2024
65ebab8
chore: change api to new schema and delete unused files
alonkeyval Sep 15, 2024
9ffcfbd
Merge pull request #31 from alonkeyval/gen-1405-refactor-gql-client
alonkeyval Sep 15, 2024
6885f8b
Merge branch 'main' of github.com:keyval-dev/odigos into gen-1406-pul…
alonkeyval Sep 15, 2024
b75bbd4
Merge pull request #32 from alonkeyval/gen-1406-pull-main
alonkeyval Sep 15, 2024
c5d6b7b
chore: wip
alonkeyval Sep 15, 2024
70e40ac
chore: match button and dropdown to ds
alonkeyval Sep 16, 2024
f7160f8
chore: wip
alonkeyval Sep 16, 2024
8699299
chore: wip
alonkeyval Sep 16, 2024
7a53647
chore: wip
alonkeyval Sep 17, 2024
af3a85d
chore: fixed sources issue
alonkeyval Sep 17, 2024
e9cfa83
chore: remove clg
alonkeyval Sep 17, 2024
60c197c
chore: wip
alonkeyval Sep 17, 2024
568a0ad
Merge pull request #33 from alonkeyval/design-system-fixs
alonkeyval Sep 17, 2024
dd8f75b
chore: init sources nodes
alonkeyval Sep 17, 2024
4bdad2a
chore: init actions and destination nodes
alonkeyval Sep 17, 2024
4e0b17f
chore: wip
alonkeyval Sep 17, 2024
8161a58
chore: added edges
alonkeyval Sep 18, 2024
078fc5b
chore: wip
alonkeyval Sep 18, 2024
5250a01
chore: wip
alonkeyval Sep 18, 2024
d1b9a68
Delete go.work
alonkeyval Sep 18, 2024
2714683
chore: move data flow to design stem
alonkeyval Sep 18, 2024
feb7402
Merge pull request #34 from alonkeyval/gen-1415-data-flow-nodes
alonkeyval Sep 18, 2024
afb5a5c
refactor: init zustand
alonkeyval Sep 23, 2024
1f7f0c3
chore: delete app store
alonkeyval Sep 23, 2024
cd48604
Merge pull request #35 from alonkeyval/gen-1421-refactor-to-zustand
alonkeyval Sep 23, 2024
8eda48b
chore: init overview action header
alonkeyval Sep 23, 2024
f84f1b4
chore: add options
alonkeyval Sep 23, 2024
bba5c10
Merge pull request #36 from alonkeyval/gen-1427-add-new-entity
alonkeyval Sep 23, 2024
3bec324
chore: wip
alonkeyval Sep 24, 2024
ab23654
chore: wip
alonkeyval Sep 24, 2024
77b6086
chore: wip
alonkeyval Sep 25, 2024
12f7e5a
chore: wip
alonkeyval Sep 25, 2024
907ad4f
chore: refactor code
alonkeyval Sep 25, 2024
4c41bc6
Merge pull request #37 from alonkeyval/gen-1428-add-new-source
alonkeyval Sep 25, 2024
76cfe63
chore: wip
alonkeyval Sep 26, 2024
a76199a
Merge pull request #38 from alonkeyval/gen-1446-add-destination-from-…
alonkeyval Sep 26, 2024
6fcbeaf
chore: add new node
alonkeyval Sep 26, 2024
2d8bb1d
Merge pull request #39 from alonkeyval/gen-1449-add-first-action-node
alonkeyval Sep 26, 2024
e44b87d
chore: init auto-complete input
alonkeyval Sep 26, 2024
174d8af
wip: fixed style
alonkeyval Oct 6, 2024
56a1838
Merge pull request #40 from alonkeyval/gen-1450-add-action-modal
alonkeyval Oct 6, 2024
5d4d0af
wip: init drawer architcture
alonkeyval Oct 6, 2024
a627987
chore: add id to entities on overview
alonkeyval Oct 6, 2024
fcc6e7f
wip: on node click
alonkeyval Oct 7, 2024
7dddc5e
wip: clean up code
alonkeyval Oct 7, 2024
99ea932
wip: drawer header and footer
alonkeyval Oct 7, 2024
2c8e22f
chore: drawer footer
alonkeyval Oct 7, 2024
e012609
wip: card details component
alonkeyval Oct 7, 2024
49a12ff
wip: smooth transmition between components
alonkeyval Oct 8, 2024
63a4852
wip: fixed pr comments
alonkeyval Oct 8, 2024
9c92b0b
wip: fix pr comments
alonkeyval Oct 8, 2024
68a424c
chore: update source api call and custom hook
alonkeyval Oct 8, 2024
cec9e1f
wip: chore
alonkeyval Oct 8, 2024
647455e
wip: delete source
alonkeyval Oct 8, 2024
b0b1f31
Merge pull request #41 from alonkeyval/gen-1471-edit-source
alonkeyval Oct 9, 2024
3fd5840
feat: delete entity modal
alonkeyval Oct 9, 2024
071234c
wip: close with key board
alonkeyval Oct 9, 2024
9742979
Merge pull request #42 from alonkeyval/gen-1482-delete-entity-modal
alonkeyval Oct 9, 2024
c332365
feat: init edit destination
alonkeyval Oct 13, 2024
a2f8209
wip: destination drawer
alonkeyval Oct 13, 2024
1d4e5ff
wip: destintion card details
alonkeyval Oct 13, 2024
9e5d25e
chore: get updated destinatoin
alonkeyval Oct 14, 2024
18be997
wip : updated destinatoin
alonkeyval Oct 14, 2024
80135c1
chore: update current item
alonkeyval Oct 14, 2024
f39d37e
wip: split code to chunks
alonkeyval Oct 14, 2024
6f1ba85
chore: wip
alonkeyval Oct 14, 2024
5a70094
chore: wip
alonkeyval Oct 14, 2024
45ed9f2
chore: wip
alonkeyval Oct 15, 2024
eb3ad4a
chore: spilt code to hooks
alonkeyval Oct 15, 2024
58f34d0
chore: checkboxs list disabled
alonkeyval Oct 15, 2024
ee71844
wip: reset state when cancel
alonkeyval Oct 15, 2024
f77b5c3
chore: change file name
alonkeyval Oct 15, 2024
1035692
wip: show inputs values on edit mode
alonkeyval Oct 15, 2024
6fedc1c
feat: show override name in overview
alonkeyval Oct 20, 2024
243f7a9
chore: wip
alonkeyval Oct 20, 2024
4a4abd4
chore: types
alonkeyval Oct 20, 2024
d5b4f9b
wip: reset after delete
alonkeyval Oct 20, 2024
09fe7af
wip: use file from guards
alonkeyval Oct 20, 2024
d3cec0b
Merge pull request #43 from alonkeyval/gen-1503-edit-destination
alonkeyval Oct 20, 2024
5e8f0c3
chore: connect dest edges
alonkeyval Oct 20, 2024
c4ae888
chore: refactor code
alonkeyval Oct 21, 2024
48c193a
chore: move destination types to hook
alonkeyval Oct 21, 2024
2bd63d2
Merge pull request #44 from alonkeyval/gen-1538-create-destination-re…
alonkeyval Oct 21, 2024
6377cc3
Merge branch 'main' of github.com:keyval-dev/odigos into gen-1096-pro…
alonkeyval Oct 21, 2024
2fb14a5
chore: merge new ui
alonkeyval Oct 22, 2024
a1c6cf8
Merge branch 'new-ui' of github.com:keyval-dev/odigos into gen-1096-p…
alonkeyval Oct 22, 2024
1a2a1cb
refactor: delete action as gql mutation
alonkeyval Oct 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions frontend/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/graph/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -311,5 +311,5 @@ type Mutation {

createAction(action: ActionInput!): Action!
updateAction(id: ID!, action: ActionInput!): Action!
deleteAction(id: ID!): Boolean!
deleteAction(id: ID!, actionType: String!): Boolean!
}
20 changes: 18 additions & 2 deletions frontend/graph/schema.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions frontend/services/actions/addclusterinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/odigos-io/odigos/frontend/graph/model"
"github.com/odigos-io/odigos/frontend/kube"
"github.com/odigos-io/odigos/frontend/services"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

Expand Down Expand Up @@ -144,3 +145,18 @@ func UpdateAddClusterInfo(ctx context.Context, id string, action model.ActionInp

return response, nil
}

func DeleteAddClusterInfo(ctx context.Context, id string) error {
odigosns := consts.DefaultOdigosNamespace

// Delete the action by its ID from Kubernetes
err := kube.DefaultClient.ActionsClient.AddClusterInfos(odigosns).Delete(ctx, id, metav1.DeleteOptions{})
if err != nil {
if apierrors.IsNotFound(err) {
return fmt.Errorf("AddClusterInfo action with ID %s not found", id)
}
return fmt.Errorf("failed to delete AddClusterInfo action: %v", err)
}

return nil
}
Loading