From db7fa3ed037b0c7cc8767b6ce257086f61c105be Mon Sep 17 00:00:00 2001 From: jadirj <52298160+jadirj@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:06:59 -0300 Subject: [PATCH] =?UTF-8?q?Exerc=C3=ADcio=2036?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../intranet/profiles/default/metadata.xml | 2 +- ...app.querystring.interfaces.IQueryField.xml | 48 +++++++++++++++++++ .../trepr/intranet/upgrades/configure.zcml | 11 +++++ backend/tests/setup/test_setup_install.py | 2 +- 4 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 backend/src/trepr/intranet/profiles/default/registry/plone.app.querystring.interfaces.IQueryField.xml diff --git a/backend/src/trepr/intranet/profiles/default/metadata.xml b/backend/src/trepr/intranet/profiles/default/metadata.xml index dd194f8..4d23f91 100644 --- a/backend/src/trepr/intranet/profiles/default/metadata.xml +++ b/backend/src/trepr/intranet/profiles/default/metadata.xml @@ -1,6 +1,6 @@ - 1006 + 1007 profile-plone.volto:default diff --git a/backend/src/trepr/intranet/profiles/default/registry/plone.app.querystring.interfaces.IQueryField.xml b/backend/src/trepr/intranet/profiles/default/registry/plone.app.querystring.interfaces.IQueryField.xml new file mode 100644 index 0000000..4a75708 --- /dev/null +++ b/backend/src/trepr/intranet/profiles/default/registry/plone.app.querystring.interfaces.IQueryField.xml @@ -0,0 +1,48 @@ + + + + + + Área + Filtrar por Área. + True + False + Intranet + + plone.app.querystring.operation.selection.any + + trepr.intranet.vocabulary.areas + + + + + Cargo + Filtrar por cargo. + True + False + Intranet + + plone.app.querystring.operation.selection.any + + trepr.intranet.vocabulary.cargos + + + diff --git a/backend/src/trepr/intranet/upgrades/configure.zcml b/backend/src/trepr/intranet/upgrades/configure.zcml index 92cd196..b2a8d7a 100644 --- a/backend/src/trepr/intranet/upgrades/configure.zcml +++ b/backend/src/trepr/intranet/upgrades/configure.zcml @@ -85,4 +85,15 @@ /> + + + + diff --git a/backend/tests/setup/test_setup_install.py b/backend/tests/setup/test_setup_install.py index d282234..efe961f 100644 --- a/backend/tests/setup/test_setup_install.py +++ b/backend/tests/setup/test_setup_install.py @@ -14,4 +14,4 @@ def test_browserlayer(self, browser_layers): def test_latest_version(self, profile_last_version): """Test latest version of default profile.""" - assert profile_last_version(f"{PACKAGE_NAME}:default") == "1006" + assert profile_last_version(f"{PACKAGE_NAME}:default") == "1007"