From 856dfd8ee5ae20ceb7ef5f0f19fc8aa598382fa1 Mon Sep 17 00:00:00 2001 From: Marc-Roig Date: Wed, 10 Jan 2024 11:01:21 +0100 Subject: [PATCH] fix: ignore locale field in api tests --- .../core/strapi/api/validate-query/validate-query.test.api.js | 1 + packages/plugins/users-permissions/server/bootstrap/index.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/api-tests/core/strapi/api/validate-query/validate-query.test.api.js b/api-tests/core/strapi/api/validate-query/validate-query.test.api.js index 2edca04407..8d0d22f777 100644 --- a/api-tests/core/strapi/api/validate-query/validate-query.test.api.js +++ b/api-tests/core/strapi/api/validate-query/validate-query.test.api.js @@ -745,6 +745,7 @@ describe('Core API - Validate', () => { const allDocumentFields = [ // TODO: Document id should not be in attributes 'documentId', + 'locale', 'name', 'name_non_searchable', 'misc', diff --git a/packages/plugins/users-permissions/server/bootstrap/index.js b/packages/plugins/users-permissions/server/bootstrap/index.js index f0bf234ed6..6659b05f79 100644 --- a/packages/plugins/users-permissions/server/bootstrap/index.js +++ b/packages/plugins/users-permissions/server/bootstrap/index.js @@ -115,6 +115,8 @@ const userSchemaAdditions = () => { 'publishedAt', 'strapi_stage', 'strapi_assignee', + 'locale', + 'localizations', ]; return currentSchema.filter((key) => !(ignoreDiffs.includes(key) || defaultSchema.includes(key)));