From 2e91b9d035986cc4d63b7d6cc02a94676d5bac00 Mon Sep 17 00:00:00 2001 From: "authentik-automation[bot]" <135050075+authentik-automation[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 13:13:45 +0000 Subject: [PATCH] web: bump API Client version (#9785) * web: bump API Client version Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * don't include users in group calls Signed-off-by: Jens Langhammer --------- Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Jens Langhammer Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com> Co-authored-by: Jens Langhammer --- web/package-lock.json | 8 ++++---- web/package.json | 2 +- web/src/admin/common/ak-core-group-search.ts | 1 + web/src/admin/events/RuleForm.ts | 1 + web/src/admin/groups/GroupForm.ts | 1 + web/src/admin/groups/GroupViewPage.ts | 2 +- web/src/admin/policies/PolicyBindingForm.ts | 1 + .../google_workspace/GoogleWorkspaceProviderForm.ts | 1 + web/src/admin/providers/ldap/LDAPProviderForm.ts | 1 + .../microsoft_entra/MicrosoftEntraProviderFormPage.ts | 1 + web/src/admin/providers/scim/SCIMProviderForm.ts | 1 + web/src/admin/sources/ldap/LDAPSourceForm.ts | 1 + web/src/admin/stages/user_write/UserWriteStageForm.ts | 1 + 13 files changed, 16 insertions(+), 6 deletions(-) diff --git a/web/package-lock.json b/web/package-lock.json index 7ac20f9ade..7ce9efed6f 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -17,7 +17,7 @@ "@codemirror/theme-one-dark": "^6.1.2", "@formatjs/intl-listformat": "^7.5.7", "@fortawesome/fontawesome-free": "^6.5.2", - "@goauthentik/api": "^2024.4.2-1715271029", + "@goauthentik/api": "^2024.4.2-1716209237", "@lit-labs/task": "^3.1.0", "@lit/context": "^1.1.1", "@lit/localize": "^0.12.1", @@ -2980,9 +2980,9 @@ } }, "node_modules/@goauthentik/api": { - "version": "2024.4.2-1715271029", - "resolved": "https://registry.npmjs.org/@goauthentik/api/-/api-2024.4.2-1715271029.tgz", - "integrity": "sha512-X+u46IzN4jDRKGusO1Ytj/pnWdVtL9K19PvdeL0Ix3R32zWz18xOcrGrY5fLxvmz1b7kuaj5ZZhkNqcVv5KUOA==" + "version": "2024.4.2-1716209237", + "resolved": "https://registry.npmjs.org/@goauthentik/api/-/api-2024.4.2-1716209237.tgz", + "integrity": "sha512-QD9ff8aC2VoJnnGISIZ3/73bpcugMfWkDcSi6peGCUb8SMXRyQJYtGXmCcN+Iq+6MlHnat/mPt67OlxQV3qdHw==" }, "node_modules/@hcaptcha/types": { "version": "1.0.3", diff --git a/web/package.json b/web/package.json index efaf91563f..23bdef3783 100644 --- a/web/package.json +++ b/web/package.json @@ -38,7 +38,7 @@ "@codemirror/theme-one-dark": "^6.1.2", "@formatjs/intl-listformat": "^7.5.7", "@fortawesome/fontawesome-free": "^6.5.2", - "@goauthentik/api": "^2024.4.2-1715271029", + "@goauthentik/api": "^2024.4.2-1716209237", "@lit-labs/task": "^3.1.0", "@lit/context": "^1.1.1", "@lit/localize": "^0.12.1", diff --git a/web/src/admin/common/ak-core-group-search.ts b/web/src/admin/common/ak-core-group-search.ts index a5812a7339..9a54124e27 100644 --- a/web/src/admin/common/ak-core-group-search.ts +++ b/web/src/admin/common/ak-core-group-search.ts @@ -12,6 +12,7 @@ import { CoreApi, CoreGroupsListRequest, Group } from "@goauthentik/api"; async function fetchObjects(query?: string): Promise { const args: CoreGroupsListRequest = { ordering: "name", + includeUsers: false, }; if (query !== undefined) { args.search = query; diff --git a/web/src/admin/events/RuleForm.ts b/web/src/admin/events/RuleForm.ts index ed392a1ca3..7ee190047a 100644 --- a/web/src/admin/events/RuleForm.ts +++ b/web/src/admin/events/RuleForm.ts @@ -69,6 +69,7 @@ export class RuleForm extends ModelForm { .fetchObjects=${async (query?: string): Promise => { const args: CoreGroupsListRequest = { ordering: "name", + includeUsers: false, }; if (query !== undefined) { args.search = query; diff --git a/web/src/admin/groups/GroupForm.ts b/web/src/admin/groups/GroupForm.ts index 94d813c354..c8be5f65bd 100644 --- a/web/src/admin/groups/GroupForm.ts +++ b/web/src/admin/groups/GroupForm.ts @@ -39,6 +39,7 @@ export class GroupForm extends ModelForm { loadInstance(pk: string): Promise { return new CoreApi(DEFAULT_CONFIG).coreGroupsRetrieve({ groupUuid: pk, + includeUsers: false, }); } diff --git a/web/src/admin/groups/GroupViewPage.ts b/web/src/admin/groups/GroupViewPage.ts index f7d5ac3974..438d083be2 100644 --- a/web/src/admin/groups/GroupViewPage.ts +++ b/web/src/admin/groups/GroupViewPage.ts @@ -37,6 +37,7 @@ export class GroupViewPage extends AKElement { new CoreApi(DEFAULT_CONFIG) .coreGroupsRetrieve({ groupUuid: id, + includeUsers: false, }) .then((group) => { this.group = group; @@ -199,7 +200,6 @@ export class GroupViewPage extends AKElement { - { .fetchObjects=${async (query?: string): Promise => { const args: CoreGroupsListRequest = { ordering: "name", + includeUsers: false, }; if (query !== undefined) { args.search = query; diff --git a/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderForm.ts b/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderForm.ts index 67f1f800ff..f90642eb65 100644 --- a/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderForm.ts +++ b/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderForm.ts @@ -194,6 +194,7 @@ export class GoogleWorkspaceProviderFormPage extends BaseProviderForm => { const args: CoreGroupsListRequest = { ordering: "name", + includeUsers: false, }; if (query !== undefined) { args.search = query; diff --git a/web/src/admin/providers/ldap/LDAPProviderForm.ts b/web/src/admin/providers/ldap/LDAPProviderForm.ts index 2011f7cace..5af4329243 100644 --- a/web/src/admin/providers/ldap/LDAPProviderForm.ts +++ b/web/src/admin/providers/ldap/LDAPProviderForm.ts @@ -78,6 +78,7 @@ export class LDAPProviderFormPage extends WithBrandConfig(BaseProviderForm => { const args: CoreGroupsListRequest = { ordering: "name", + includeUsers: false, }; if (query !== undefined) { args.search = query; diff --git a/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderFormPage.ts b/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderFormPage.ts index 5d981b0507..5943cdb127 100644 --- a/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderFormPage.ts +++ b/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderFormPage.ts @@ -183,6 +183,7 @@ export class MicrosoftEntraProviderFormPage extends BaseProviderForm => { const args: CoreGroupsListRequest = { ordering: "name", + includeUsers: false, }; if (query !== undefined) { args.search = query; diff --git a/web/src/admin/providers/scim/SCIMProviderForm.ts b/web/src/admin/providers/scim/SCIMProviderForm.ts index a97fc270a0..afcba41b35 100644 --- a/web/src/admin/providers/scim/SCIMProviderForm.ts +++ b/web/src/admin/providers/scim/SCIMProviderForm.ts @@ -119,6 +119,7 @@ export class SCIMProviderFormPage extends BaseProviderForm { .fetchObjects=${async (query?: string): Promise => { const args: CoreGroupsListRequest = { ordering: "name", + includeUsers: false, }; if (query !== undefined) { args.search = query; diff --git a/web/src/admin/sources/ldap/LDAPSourceForm.ts b/web/src/admin/sources/ldap/LDAPSourceForm.ts index a5b9d41c9c..64aa9d0b88 100644 --- a/web/src/admin/sources/ldap/LDAPSourceForm.ts +++ b/web/src/admin/sources/ldap/LDAPSourceForm.ts @@ -354,6 +354,7 @@ export class LDAPSourceForm extends BaseSourceForm { .fetchObjects=${async (query?: string): Promise => { const args: CoreGroupsListRequest = { ordering: "name", + includeUsers: false, }; if (query !== undefined) { args.search = query; diff --git a/web/src/admin/stages/user_write/UserWriteStageForm.ts b/web/src/admin/stages/user_write/UserWriteStageForm.ts index 1492c269c0..4f2d285e93 100644 --- a/web/src/admin/stages/user_write/UserWriteStageForm.ts +++ b/web/src/admin/stages/user_write/UserWriteStageForm.ts @@ -164,6 +164,7 @@ export class UserWriteStageForm extends BaseStageForm { .fetchObjects=${async (query?: string): Promise => { const args: CoreGroupsListRequest = { ordering: "name", + includeUsers: false, }; if (query !== undefined) { args.search = query;