portainer/api/http
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
..
client fix(swagger): fix swagger api docs endpoint(s) rename to environment(s) EE-1661 (#5629) 2021-09-20 12:14:22 +12:00
errors feat(demo): disable features on demo env [EE-1874] (#6040) 2022-05-22 08:34:09 +03:00
handler fix(edge): filtering of edge devices [EE-3210] (#7077) 2022-07-19 18:00:45 +02:00
middlewares feat(demo): disable features on demo env [EE-1874] (#6040) 2022-05-22 08:34:09 +03:00
offlinegate fix(offlinegate): fix data race in offlinegate EE-2713 (#6626) 2022-03-18 13:20:10 -03:00
proxy fix(swarm): don't stomp on the x-registry-auth header EE-3308 (#7080) 2022-06-16 09:53:58 +12:00
security feat(teamleader) EE-294 redesign team leader (#6973) 2022-06-03 16:44:42 +12:00
server.go feat(internal-auth): ability to set minimum password length [EE-3175] (#6942) 2022-06-03 16:00:13 +12:00