From 22af8acdbeae94b5fbac0b59035c3e19d341bc6e Mon Sep 17 00:00:00 2001 From: Le Ngoc Danh <127722015+lndanh-axonivy@users.noreply.github.com> Date: Thu, 19 Sep 2024 09:12:46 +0700 Subject: [PATCH] =?UTF-8?q?IVYPORTAL-17408=20DB=20query=20for=20filter=20i?= =?UTF-8?q?n=20task/case=20widget=20is=20executed=203=E2=80=A6=20(#1010)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * IVYPORTAL-17408 DB query for filter in task/case widget is executed 3 times: fix bug * IVYPORTAL-17408 DB query for filter in task/case widget is executed 3 times: update jenkinfile * IVYPORTAL-17408 DB query for filter in task/case widget is executed 3 times: revert jenkinfile --------- Co-authored-by: lndanh-axonivy --- .../CaseDashboardWidget.xhtml | 2 +- .../ProcessDashboardWidget.xhtml | 2 +- .../TaskDashboardWidget.xhtml | 2 +- .../restricted/decorator/TableWidget.xhtml | 20 ++++++++++++++----- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portal/generic/dashboard/component/CaseDashboardWidget/CaseDashboardWidget.xhtml b/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portal/generic/dashboard/component/CaseDashboardWidget/CaseDashboardWidget.xhtml index e8d98d5c610..89a6a056d82 100644 --- a/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portal/generic/dashboard/component/CaseDashboardWidget/CaseDashboardWidget.xhtml +++ b/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portal/generic/dashboard/component/CaseDashboardWidget/CaseDashboardWidget.xhtml @@ -21,7 +21,7 @@ + value="#{cc.clientId}:case-component:dashboard-cases #{cc.clientId}:case-component:empty-message-container" /> diff --git a/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portal/generic/dashboard/component/ProcessDashboardWidget/ProcessDashboardWidget.xhtml b/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portal/generic/dashboard/component/ProcessDashboardWidget/ProcessDashboardWidget.xhtml index 34e36a60ddd..ff96d389898 100644 --- a/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portal/generic/dashboard/component/ProcessDashboardWidget/ProcessDashboardWidget.xhtml +++ b/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portal/generic/dashboard/component/ProcessDashboardWidget/ProcessDashboardWidget.xhtml @@ -23,7 +23,7 @@ - + diff --git a/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portal/generic/dashboard/component/TaskDashboardWidget/TaskDashboardWidget.xhtml b/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portal/generic/dashboard/component/TaskDashboardWidget/TaskDashboardWidget.xhtml index 308921909bf..33b02b013b5 100644 --- a/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portal/generic/dashboard/component/TaskDashboardWidget/TaskDashboardWidget.xhtml +++ b/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portal/generic/dashboard/component/TaskDashboardWidget/TaskDashboardWidget.xhtml @@ -21,7 +21,7 @@ - + diff --git a/AxonIvyPortal/portal/webContent/layouts/restricted/decorator/TableWidget.xhtml b/AxonIvyPortal/portal/webContent/layouts/restricted/decorator/TableWidget.xhtml index 21dc94c141c..fa9f256e2fc 100644 --- a/AxonIvyPortal/portal/webContent/layouts/restricted/decorator/TableWidget.xhtml +++ b/AxonIvyPortal/portal/webContent/layouts/restricted/decorator/TableWidget.xhtml @@ -95,8 +95,13 @@ + + @@ -232,8 +237,8 @@ @@ -241,7 +246,12 @@ partialSubmit="true" update="filter-form-#{index}" process="filter-form-#{index}" - oncomplete="if (args && !args.validationFailed) {applyWidgetFilterCommand#{index}();} initWidgetFilterHtml('#{widget.id}');" + oncomplete="if (args && !args.validationFailed) { + applyWidgetFilterCommand#{index}(); + } else { + applyInvalidWidgetFilterCommand#{index}(); + } + initWidgetFilterHtml('#{widget.id}');" actionListener="#{widget.onApplyUserFilters()}" icon="si si-check-1" styleClass="u-mar-right-5" />