From e8e881a829a447b0e6f6ab544d60f18313e09e64 Mon Sep 17 00:00:00 2001 From: Yao Chunlin Date: Tue, 23 May 2023 11:37:03 +0800 Subject: [PATCH 01/19] Fix regression with partitioned tables in PostgreSQL PostgreSQL JDBC Driver introduced separating type for partitioned table from 40.2.12 pgjdbc/pgjdbc#1708 --- .../src/main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/src/main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy b/framework/src/main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy index da1e61d50..d487e7de6 100644 --- a/framework/src/main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy +++ b/framework/src/main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy @@ -107,7 +107,7 @@ class EntityDbMeta { String schemaName = datasourceNode != null ? datasourceNode.attribute("schema-name") : null Set groupEntityNames = efi.getAllEntityNamesInGroup(groupName) - String[] types = ["TABLE", "VIEW", "ALIAS", "SYNONYM"] + String[] types = ["TABLE", "VIEW", "ALIAS", "SYNONYM", "PARTITIONED TABLE"] Set existingTableNames = new HashSet<>() boolean beganTx = useTxForMetaData ? efi.ecfi.transactionFacade.begin(300) : false @@ -458,7 +458,7 @@ class EntityDbMeta { con = efi.getConnection(groupName) DatabaseMetaData dbData = con.getMetaData() - String[] types = ["TABLE", "VIEW", "ALIAS", "SYNONYM"] + String[] types = ["TABLE", "VIEW", "ALIAS", "SYNONYM", "PARTITIONED TABLE"] tableSet1 = dbData.getTables(con.getCatalog(), ed.getSchemaName(), ed.getTableName(), types) if (tableSet1.next()) { dbResult = true From d93b4eeee92498cc2ebfec2a41d9622b87db7f7f Mon Sep 17 00:00:00 2001 From: Wei Zhang Date: Wed, 26 Jul 2023 21:54:45 +0800 Subject: [PATCH 02/19] Add subscreensItem.menuInclude to menu data (#600) * Fixed the problem that moqui cannot be deployed as non-root webapp in Tomcat * Fixed a runtime error if Currency is BTC * Fixed a runtime error if Currency is BTC * Fixed the retries of Elastic Client * Add subscreensItem.menuInclude to menu data --- .../main/groovy/org/moqui/impl/screen/ScreenRenderImpl.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/src/main/groovy/org/moqui/impl/screen/ScreenRenderImpl.groovy b/framework/src/main/groovy/org/moqui/impl/screen/ScreenRenderImpl.groovy index 780100970..41d3b8fcd 100644 --- a/framework/src/main/groovy/org/moqui/impl/screen/ScreenRenderImpl.groovy +++ b/framework/src/main/groovy/org/moqui/impl/screen/ScreenRenderImpl.groovy @@ -2347,6 +2347,7 @@ class ScreenRenderImpl implements ScreenRender { boolean active = (nextItem == subscreensItem.name) Map itemMap = [name:subscreensItem.name, title:ec.resource.expand(subscreensItem.menuTitle, ""), path:screenPath, pathWithParams:pathWithParams, image:image, imageType:imageType] + if (subscreensItem.menuInclude) itemMap.menuInclude = true if (active) itemMap.active = true if (screenUrlInstance.disableLink) itemMap.disableLink = true subscreensList.add(itemMap) From 86c3e0c431953ae7f6e8b7e44ec81880c58e7d2d Mon Sep 17 00:00:00 2001 From: Rohit pawar <72196393+rohitpawar2811@users.noreply.github.com> Date: Wed, 26 Jul 2023 19:30:13 +0530 Subject: [PATCH 03/19] Docker-Image-Pull Feature (#553) * Improvement: In Moqui-Multi-Instance added a Async-Pull-Image-Feature which pulls the image by Using Docker-Engine-Api from multiple registry like AWS, Azure, Docker-Hub * Update AUTHORS * Added: added the generic way to process cmd , by adding an extra field(authTokenPass) inside the entity InstanceImage , now user has separate field for cmd and password so all types of registries is easily configurable * Update ServerEntities.xml by adding description --- AUTHORS | 2 + framework/entity/ServerEntities.xml | 3 + .../org/moqui/impl/InstanceServices.xml | 60 ++++++++++++++++++- 3 files changed, 62 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index 27dbd1a34..77107bd60 100644 --- a/AUTHORS +++ b/AUTHORS @@ -61,6 +61,7 @@ Written in 2020 by Amir Anjomshoaa - amiranjom Written in 2021 by Deepak Dixit - dixitdeepak Written in 2021 by Taher Alkhateeb - pythys Written in 2022 by Zhang Wei - hellozhangwei +Written in 2023 by Rohit Pawar - rohitpawar2811 =========================================================================== @@ -108,5 +109,6 @@ Written in 2020 by Amir Anjomshoaa - amiranjom Written in 2021 by Deepak Dixit - dixitdeepak Written in 2021 by Taher Alkhateeb - pythys Written in 2022 by Zhang Wei - hellozhangwei +Written in 2023 by Rohit Pawar - rohitpawar2811 =========================================================================== diff --git a/framework/entity/ServerEntities.xml b/framework/entity/ServerEntities.xml index 17ec6556d..e9b63af25 100644 --- a/framework/entity/ServerEntities.xml +++ b/framework/entity/ServerEntities.xml @@ -196,6 +196,9 @@ along with this software (see the LICENSE.md file). If not, see + + + diff --git a/framework/service/org/moqui/impl/InstanceServices.xml b/framework/service/org/moqui/impl/InstanceServices.xml index 7071d77fa..dacbd18ca 100644 --- a/framework/service/org/moqui/impl/InstanceServices.xml +++ b/framework/service/org/moqui/impl/InstanceServices.xml @@ -214,8 +214,13 @@ along with this software (see the LICENSE.md file). If not, see - - + + + @@ -281,8 +286,9 @@ along with this software (see the LICENSE.md file). If not, see - https://docs.docker.com/engine/security/https/ --> - + +