portainer/api/http/handler/endpoints
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
..
endpoint_association_delete.go refactor(docker): strongly type snapshot [EE-3256] (#6990) 2022-05-31 13:03:10 +03:00
endpoint_create.go feat(gpu) EE-3191 Add GPU support for containers (#7146) 2022-07-18 11:02:14 +12:00
endpoint_create_global_key.go fix(aeec): enforce non-empty EdgeIDs for global key environment retrieval EE-3013 (#6808) 2022-04-25 11:35:14 -03:00
endpoint_create_global_key_test.go feat(demo): disable features on demo env [EE-1874] (#6040) 2022-05-22 08:34:09 +03:00
endpoint_delete.go feat(demo): disable features on demo env [EE-1874] (#6040) 2022-05-22 08:34:09 +03:00
endpoint_dockerhub_status.go chore(store) EE-1981: Refactor/store/error checking, and other refactoring (#6173) 2021-12-15 15:26:09 +13:00
endpoint_inspect.go chore(store) EE-1981: Refactor/store/error checking, and other refactoring (#6173) 2021-12-15 15:26:09 +13:00
endpoint_list.go fix(edge): filtering of edge devices [EE-3210] (#7077) 2022-07-19 18:00:45 +02:00
endpoint_list_test.go fix(edge): filtering of edge devices [EE-3210] (#7077) 2022-07-19 18:00:45 +02:00
endpoint_registries_list.go feat(registries): Registry browser for non-admins [EE-2459] (#6549) 2022-04-07 15:22:31 +02:00
endpoint_registry_access.go chore(store) EE-1981: Refactor/store/error checking, and other refactoring (#6173) 2021-12-15 15:26:09 +13:00
endpoint_settings_update.go chore(store) EE-1981: Refactor/store/error checking, and other refactoring (#6173) 2021-12-15 15:26:09 +13:00
endpoint_snapshot.go feat(intel): Enable OpenAMT and FDO capabilities (#6212) 2022-01-24 08:48:04 +13:00
endpoint_snapshots.go
endpoint_status_inspect.go fix(endpoint-status): add a redirect to keep backwards compatibility EE-2932 (#6735) 2022-04-07 11:33:14 -03:00
endpoint_update.go feat(gpu) EE-3191 Add GPU support for containers (#7146) 2022-07-18 11:02:14 +12:00
filter.go fix(edge): filtering of edge devices [EE-3210] (#7077) 2022-07-19 18:00:45 +02:00
filter_test.go fix(edge): filtering of edge devices [EE-3210] (#7077) 2022-07-19 18:00:45 +02:00
handler.go feat(demo): disable features on demo env [EE-1874] (#6040) 2022-05-22 08:34:09 +03:00
sort.go fix(endpoints): remove global map to avoid panic writes EE-3160 (#6918) 2022-05-30 11:22:37 -03:00
unique_name.go refactor(wizard): migrate to react [EE-2305] (#6957) 2022-05-23 17:32:51 +03:00
utils.go fix(edge): filtering of edge devices [EE-3210] (#7077) 2022-07-19 18:00:45 +02:00