portainer/api/http/handler
Chaim Lev-Ari 05357ecce5
fix(edge): filtering of edge devices [EE-3210] (#7077)
* fix(edge): filtering of edge devices [EE-3210]

fixes [EE-3210]

changes:
- replaces `edgeDeviceFilter` with two filters:
	- `edgeDevice`
	- `edgeDeviceUntrusted`

these filters will only apply to the edge endpoints in the query (so it's possible to get both regular endpoints and edge devices).

if `edgeDevice` is true, will filter out edge agents which are not an edge device.
			false, will filter out edge devices

`edgeDeviceUntrusted` applies only when `edgeDevice` is true. then false (default) will hide the untrusted edge devices, true will show only untrusted edge devices.

fix(edge/job-create): retrieve only trusted endpoints + fix endpoint selector pagination limits onChange

fix(endpoint-groups): remove listing of untrusted edge envs (aka in waiting room)

refactor(endpoints): move filter to another function

feat(endpoints): separate edge filters

refactor(environments): change getEnv api

refactor(endpoints): use single getEnv

feat(groups): show error when failed loading envs

style(endpoints): remove unused endpointsByGroup

* chore(deps): update go to 1.18

* fix(endpoint): filter out untrusted by default

* fix(edge): show correct endpoints

* style(endpoints): fix typo

* fix(endpoints): fix swagger

* fix(admin): use new getEnv function

Co-authored-by: LP B <xAt0mZ@users.noreply.github.com>
2022-07-19 18:00:45 +02:00
..
auth feat(internal-auth): ability to set minimum password length [EE-3175] (#6942) 2022-06-03 16:00:13 +12:00
backup feat(demo): disable features on demo env [EE-1874] (#6040) 2022-05-22 08:34:09 +03:00
customtemplates refactor(custom-templates): render template variables [EE-2602] (#6937) 2022-05-31 13:00:47 +03:00
edgegroups chore(store) EE-1981: Refactor/store/error checking, and other refactoring (#6173) 2021-12-15 15:26:09 +13:00
edgejobs fix(edge-jobs): HTTP 404 on file upload (#6671) 2022-04-14 18:44:04 +02:00
edgestacks chore(edgestacks): add unit tests for edge stacks (#6931) 2022-05-19 17:13:51 -03:00
edgetemplates chore(store) EE-1981: Refactor/store/error checking, and other refactoring (#6173) 2021-12-15 15:26:09 +13:00
endpointedge chore(edge): add unit tests to edgestatus inspect endpoint EE-3088 (#6905) 2022-05-10 11:58:19 -03:00
endpointgroups chore(store) EE-1981: Refactor/store/error checking, and other refactoring (#6173) 2021-12-15 15:26:09 +13:00
endpointproxy refactor(storidge): remove Storidge support from backend [EE-2450] (#6511) 2022-02-09 05:47:11 +13:00
endpoints fix(edge): filtering of edge devices [EE-3210] (#7077) 2022-07-19 18:00:45 +02:00
file feat(adminmonitor): redirect to timeout page if admin is not created in 5 mins [EE-2691] (#6688) 2022-04-05 16:29:57 +12:00
helm fix(database): db migration improvements EE-2688 (#6662) 2022-04-14 16:25:13 +12:00
hostmanagement feat(intel): Enable OpenAMT and FDO capabilities (#6212) 2022-01-24 08:48:04 +13:00
kubernetes fix(kube): Use KubeClusterAccessService for Helm operations [EE-2500] (#6559) 2022-03-21 09:51:29 -03:00
ldap chore(store) EE-1981: Refactor/store/error checking, and other refactoring (#6173) 2021-12-15 15:26:09 +13:00
motd feat(api-key/backend): introducing support for api-key based auth EE-978 (#6079) 2021-11-30 15:31:16 +13:00
registries feat(registry): enforce name uniqueness for registries (#6709) 2022-04-07 22:58:26 +02:00
resourcecontrols refactor(access-control): create access-control-panel component [EE-2345] (#6486) 2022-03-16 08:35:32 +02:00
roles chore(store) EE-1981: Refactor/store/error checking, and other refactoring (#6173) 2021-12-15 15:26:09 +13:00
settings fix(analytics): load public settings [EE-3590] (#7128) 2022-06-27 19:29:17 +03:00
ssl feat(api-key/backend): introducing support for api-key based auth EE-978 (#6079) 2021-11-30 15:31:16 +13:00
stacks feat(stack/swarm): add prune option for swarm stack redeployment [EE-2678] (#7025) 2022-07-04 11:39:03 +12:00
status feat(buildinfo): ability to see build info [EE-2552] (#7107) 2022-07-15 11:09:38 +12:00
storybook feat(app): introduce react configurations [EE-1809] (#5953) 2021-11-03 12:41:59 +02:00
tags chore(store) EE-1981: Refactor/store/error checking, and other refactoring (#6173) 2021-12-15 15:26:09 +13:00
teammemberships feat(teamleader) EE-294 redesign team leader (#6973) 2022-06-03 16:44:42 +12:00
teams fix(teamleader): EE-3411 normal users get an unauthorized error (#7052) 2022-06-14 14:12:25 +12:00
templates chore(store) EE-1981: Refactor/store/error checking, and other refactoring (#6173) 2021-12-15 15:26:09 +13:00
upload feat(api-key/backend): introducing support for api-key based auth EE-978 (#6079) 2021-11-30 15:31:16 +13:00
users fix: clarify password change error (#7082) 2022-06-15 16:56:59 +12:00
webhooks fix(service): webhook vulnerability for passing an invalid image tag EE-2121 (#6269) 2022-01-27 08:38:29 +08:00
websocket chore(store) EE-1981: Refactor/store/error checking, and other refactoring (#6173) 2021-12-15 15:26:09 +13:00
handler.go chore(version): bump develop branch version to 2.15 (#7019) 2022-06-07 11:00:36 +12:00