From 9d08776824c8ec5166a52c6b98708f3496a6ee16 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Mon, 11 May 2020 16:47:36 +0530 Subject: [PATCH] =?UTF-8?q?Ensure=20that=20maintenance=C2=A0job=20should?= =?UTF-8?q?=20be=20worked=20properly=20for=20indexes=20under=20a=20materia?= =?UTF-8?q?lized=20view.=20Fixes=20#4223.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en_US/release_notes_4_22.rst | 1 + web/pgadmin/static/scss/_pgadmin.style.scss | 3 +++ web/pgadmin/tools/maintenance/static/js/maintenance.js | 2 ++ 3 files changed, 6 insertions(+) diff --git a/docs/en_US/release_notes_4_22.rst b/docs/en_US/release_notes_4_22.rst index 8af14a4db..3feb8c143 100644 --- a/docs/en_US/release_notes_4_22.rst +++ b/docs/en_US/release_notes_4_22.rst @@ -23,6 +23,7 @@ Bug fixes ********* | `Issue #3694 `_ - Gracefully informed the user that the database is already connected when they click on "Connect Database...". +| `Issue #4223 `_ - Ensure that maintenance job should be worked properly for indexes under a materialized view. | `Issue #4279 `_ - Ensure that file browse "home" button should point to $HOME rather than /. | `Issue #4840 `_ - Ensure that 'With OID' option should be disabled while taking backup of database server version 12 and above. | `Issue #5001 `_ - Fixed invalid literal issue when removing the connection limit for the existing role. diff --git a/web/pgadmin/static/scss/_pgadmin.style.scss b/web/pgadmin/static/scss/_pgadmin.style.scss index 3eae9a480..904636f33 100644 --- a/web/pgadmin/static/scss/_pgadmin.style.scss +++ b/web/pgadmin/static/scss/_pgadmin.style.scss @@ -1109,4 +1109,7 @@ select:-webkit-autofill:focus { /* Left side has a check icon, right side corrected */ .btn-radiomodern { padding-right: 1.75*$input-btn-padding-x !important; + &.disabled { + pointer-events: none !important; + } } diff --git a/web/pgadmin/tools/maintenance/static/js/maintenance.js b/web/pgadmin/tools/maintenance/static/js/maintenance.js index 4f1508233..73a7029f0 100644 --- a/web/pgadmin/tools/maintenance/static/js/maintenance.js +++ b/web/pgadmin/tools/maintenance/static/js/maintenance.js @@ -347,6 +347,8 @@ define([ table = treeInfo.partition._label; } else if (treeInfo.table != undefined) { table = treeInfo.table._label; + } else if (treeInfo.mview != undefined) { + table = treeInfo.mview._label; } if (treeInfo.primary_key != undefined) {