add-admin-interface #31

Merged
eslamnawara merged 9 commits from add-admin-interface into main 2026-03-03 13:27:07 +00:00
Member
No description provided.
fix lint
Some checks failed
Lint / lint (push) Failing after 1m10s
Build / build (push) Successful in 10m18s
Test / test (push) Successful in 10m19s
8b0471aa63
update admin service to be service instead of id
All checks were successful
Lint / lint (push) Successful in 10m50s
Test / test (push) Successful in 10m59s
Build / build (push) Successful in 10m17s
50f8587b03
eslamnawara force-pushed add-admin-interface from 50f8587b03
All checks were successful
Lint / lint (push) Successful in 10m50s
Test / test (push) Successful in 10m59s
Build / build (push) Successful in 10m17s
to 4053556b75
All checks were successful
Build / build (push) Successful in 10m16s
Test / test (push) Successful in 10m42s
Lint / lint (push) Successful in 10m54s
2026-03-02 22:14:28 +00:00
Compare
salmaelsoly requested changes 2026-03-03 10:12:53 +00:00
Dismissed
@ -66,0 +357,4 @@
}
}
// Parse parameters
Member

can we extract this in helper function authenticateAdmin?

can we extract this in helper function authenticateAdmin?
@ -253,110 +593,27 @@ func (r *MethodRouter) handleMyceliumServicesUpdate(ctx context.Context, req *ht
}
Member

can we check here firstly if the error is service notfound or not

can we check here firstly if the error is service notfound or not
Member

check for delete service too

check for delete service too
Author
Member

this method just updates/delete the service, if you checked the functions calling it for example handleMyceliumServicesUpdate , they try to get the service and check their ownership before this update function is called

this method just updates/delete the service, if you checked the functions calling it for example `handleMyceliumServicesUpdate` , they try to get the service and check their ownership before this update function is called
@ -264,0 +395,4 @@
},
{
"code": -32003,
"message": "Admin privileges required",
Member

code should be -32002 for Forbidden can u check the rest

code should be -32002 for Forbidden can u check the rest
@ -329,0 +425,4 @@
if len(backends) == 0 {
return fmt.Errorf("at least one --backend is required")
}
Member

can we validate --method here as well?

can we validate --method here as well?
add method validation in gwctl
All checks were successful
Build / build (push) Successful in 10m13s
Lint / lint (push) Successful in 10m45s
Test / test (push) Successful in 10m17s
adb69dcd60
eslamnawara deleted branch add-admin-interface 2026-03-03 13:27:20 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
geomind_code/webgateway!31
No description provided.