portainer/api
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
..
adminmonitor 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
apikey fix(database): db migration improvements EE-2688 (#6662) 2022-04-14 16:25:13 +12:00
archive feat(git) git clone improvements [EE-451] (#5070) 2021-05-24 17:27:07 +12:00
aws/ecr feat(registry) EE-806 add support for AWS ECR (#6165) 2021-12-01 13:18:57 +13:00
backup Fix(db): needs encryption migration function fixed EE-2414 (#6494) 2022-02-02 09:53:59 +13:00
build feat(buildinfo): ability to see build info [EE-2552] (#7107) 2022-07-15 11:09:38 +12:00
chisel fix(chisel): downgrade back to the previous version of Chisel EE-2718 (#6745) 2022-04-11 14:32:59 -03:00
cli feat(demo): disable features on demo env [EE-1874] (#6040) 2022-05-22 08:34:09 +03:00
cmd/portainer feat(buildinfo): ability to see build info [EE-2552] (#7107) 2022-07-15 11:09:38 +12:00
crypto fix(tls): downgrade minimum version to TLS 1.2 to avoid proxy problems EE-3152 (#6909) 2022-05-10 15:33:53 -03:00
database feat(internal-auth): ability to set minimum password length [EE-3175] (#6942) 2022-06-03 16:00:13 +12:00
dataservices fix(database): db migration improvements EE-2688 (#6662) 2022-04-14 16:25:13 +12:00
datastore feat(gpu) EE-3191 Add GPU support for containers (#7146) 2022-07-18 11:02:14 +12:00
demo feat(demo): disable features on demo env [EE-1874] (#6040) 2022-05-22 08:34:09 +03:00
docker feat(gpu) EE-3191 Add GPU support for containers (#7146) 2022-07-18 11:02:14 +12:00
exec fix(compose): merge default and in-place stack env vars [EE-2860] (#7076) 2022-07-04 13:16:04 +12:00
filesystem feat(docker-desktop-extension): Make Portainer compatible with Docker Desktop Extension EE-2747 (#6644) 2022-04-19 13:10:42 +12:00
git fix(git) EE-2026 git default branch (#6876) 2022-05-16 09:35:11 +12:00
hostmanagement feat(intel): Enable OpenAMT and FDO capabilities (#6212) 2022-01-24 08:48:04 +13:00
http fix(edge): filtering of edge devices [EE-3210] (#7077) 2022-07-19 18:00:45 +02:00
internal fix(typo):UI and logs EE-3282 (#7063) 2022-06-13 14:53:51 +08:00
jwt fix(extension): extend JWT auth token expiration for extension EE-3065 (#6881) 2022-05-06 09:52:47 +12:00
kubernetes fix(kube): Use KubeClusterAccessService for Helm operations [EE-2500] (#6559) 2022-03-21 09:51:29 -03:00
ldap feat(app): highlight be provided value [EE-882] (#5703) (#5835) 2021-10-07 11:59:53 +13:00
oauth fix(oauth): analyze id_token for Azure [EE-2984] (#7000) 2022-07-06 13:22:57 +12:00
scheduler fix(scheduler): fix a data race in the scheduler EE-2716 (#6629) 2022-03-16 10:33:15 -03:00
stacks fix(database): db migration improvements EE-2688 (#6662) 2022-04-14 16:25:13 +12:00
api-description.md fix(database): db migration improvements EE-2688 (#6662) 2022-04-14 16:25:13 +12:00
connection.go feat(db): add CreateObjectWithStringId function [EE-2612] (#6611) 2022-03-02 09:22:03 -03:00
go.mod fix(edge): filtering of edge devices [EE-3210] (#7077) 2022-07-19 18:00:45 +02:00
go.sum fix(edge): filtering of edge devices [EE-3210] (#7077) 2022-07-19 18:00:45 +02:00
kubernetes.go chore(store) EE-1981: Refactor/store/error checking, and other refactoring (#6173) 2021-12-15 15:26:09 +13:00
portainer.go feat(gpu) EE-3191 Add GPU support for containers (#7146) 2022-07-18 11:02:14 +12:00
swagger.yaml feat(gpu) EE-3191 Add GPU support for containers (#7146) 2022-07-18 11:02:14 +12:00
swagger_config.json chore(version): bump version number 2020-08-27 17:48:02 +12:00