diff --git a/CHANGES.md b/CHANGES.md index 91e0a40ce3..b222bf9892 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,28 @@ # CHANGELOG +## v4.2.1 + +- #3551: Pagination Bar sometimes might generate `...` button with invalid page number + +## v4.2.0 + +- #3545: Upgraded OpenSearch to v2.15.0 + +## v4.1.0 + +- #3487: Update to use ASGS 2021 and latest LGAs (2023) boundaries +- Added `indexed` field to region index & Bump region index version to `27` + - Migration instruction can be found from [the migration doc](./docs/docs/migration/4.1.0.md) +- Adjusted & improved region config entry skip logic +- Improved the region loader performance +- Fixed: region loader failed to convert number type id property into a string + +## v4.0.1 + +- Add helm chart configuration option allows users to disable gateway auto-gzip response feature +- #3541 Update default region files url to [Github repo release](https://github.com/magda-io/magda-regions) +- #3543 Make the region mapping served by search api configurable + ## v4.0.0 - Use OpenSearch (v2.14.0) as main search engine diff --git a/README.md b/README.md index 1d967bfa6a..334e20d2ae 100755 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ If you just want to install a local testing version, installing Magda using [Hel # create a namespace "magda" in your cluster kubectl create namespace magda -# install Magda version v2.2.0 to namespace "magda", turn off openfass function and expose the service via loadBalancer +# install Magda version v4.0.0 to namespace "magda", turn off openfass function and expose the service via loadBalancer helm upgrade --namespace magda --install --version 4.0.0 --timeout 9999s --set magda-core.gateway.service.type=LoadBalancer magda oci://ghcr.io/magda-io/charts/magda ``` diff --git a/deploy/helm/internal-charts/admin-api/Chart.yaml b/deploy/helm/internal-charts/admin-api/Chart.yaml index d8edfa800f..c60a9db297 100644 --- a/deploy/helm/internal-charts/admin-api/Chart.yaml +++ b/deploy/helm/internal-charts/admin-api/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: A Helm chart for Kubernetes name: admin-api -version: 4.0.0 +version: 4.2.1 kubeVersion: ">= 1.14.0-0" annotations: magdaModuleType: "core" diff --git a/deploy/helm/internal-charts/admin-api/README.md b/deploy/helm/internal-charts/admin-api/README.md index bf9061fb28..e281fd4430 100644 --- a/deploy/helm/internal-charts/admin-api/README.md +++ b/deploy/helm/internal-charts/admin-api/README.md @@ -1,6 +1,6 @@ # admin-api -![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) +![Version: 4.2.1](https://img.shields.io/badge/Version-4.2.1-informational?style=flat-square) A Helm chart for Kubernetes diff --git a/deploy/helm/internal-charts/apidocs-server/Chart.yaml b/deploy/helm/internal-charts/apidocs-server/Chart.yaml index de84262097..434ff276e2 100644 --- a/deploy/helm/internal-charts/apidocs-server/Chart.yaml +++ b/deploy/helm/internal-charts/apidocs-server/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: A Helm chart for Kubernetes name: apidocs-server -version: 4.0.0 +version: 4.2.1 kubeVersion: ">= 1.14.0-0" annotations: magdaModuleType: "core" diff --git a/deploy/helm/internal-charts/apidocs-server/README.md b/deploy/helm/internal-charts/apidocs-server/README.md index cd87313e66..bf498f28ad 100644 --- a/deploy/helm/internal-charts/apidocs-server/README.md +++ b/deploy/helm/internal-charts/apidocs-server/README.md @@ -1,6 +1,6 @@ # apidocs-server -![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) +![Version: 4.2.1](https://img.shields.io/badge/Version-4.2.1-informational?style=flat-square) A Helm chart for Kubernetes diff --git a/deploy/helm/internal-charts/authorization-api/Chart.yaml b/deploy/helm/internal-charts/authorization-api/Chart.yaml index 6651c1c2a3..6a604710e3 100644 --- a/deploy/helm/internal-charts/authorization-api/Chart.yaml +++ b/deploy/helm/internal-charts/authorization-api/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: A Helm chart for Kubernetes name: authorization-api -version: 4.0.0 +version: 4.2.1 kubeVersion: ">= 1.14.0-0" annotations: magdaModuleType: "core" diff --git a/deploy/helm/internal-charts/authorization-api/README.md b/deploy/helm/internal-charts/authorization-api/README.md index 926758cbe6..6c3db8000c 100644 --- a/deploy/helm/internal-charts/authorization-api/README.md +++ b/deploy/helm/internal-charts/authorization-api/README.md @@ -1,6 +1,6 @@ # authorization-api -![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) +![Version: 4.2.1](https://img.shields.io/badge/Version-4.2.1-informational?style=flat-square) A Helm chart for Kubernetes diff --git a/deploy/helm/internal-charts/authorization-db/Chart.lock b/deploy/helm/internal-charts/authorization-db/Chart.lock index 2179940be9..7459b87289 100644 --- a/deploy/helm/internal-charts/authorization-db/Chart.lock +++ b/deploy/helm/internal-charts/authorization-db/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: magda-postgres repository: file://../magda-postgres - version: 4.0.0 -digest: sha256:a129eca790a32e608d21af2f1dd31d1fb4bcd623eacba28f5d73d5725332c743 -generated: "2024-05-24T06:16:18.532685523Z" + version: 4.2.1 +digest: sha256:3396d487955d5e56f0af53a08b754bf2a46a5197b64007e778c9ca3226ae469e +generated: "2024-07-02T10:25:15.604266444Z" diff --git a/deploy/helm/internal-charts/authorization-db/Chart.yaml b/deploy/helm/internal-charts/authorization-db/Chart.yaml index 487f271ec2..ca3152906c 100644 --- a/deploy/helm/internal-charts/authorization-db/Chart.yaml +++ b/deploy/helm/internal-charts/authorization-db/Chart.yaml @@ -1,12 +1,12 @@ apiVersion: v2 description: A Helm chart for Kubernetes name: authorization-db -version: 4.0.0 +version: 4.2.1 kubeVersion: ">= 1.14.0-0" annotations: magdaModuleType: "core" dependencies: - name: magda-postgres - version: "4.0.0" + version: "4.2.1" repository: "file://../magda-postgres" condition: global.useInK8sDbInstance.authorization-db diff --git a/deploy/helm/internal-charts/authorization-db/README.md b/deploy/helm/internal-charts/authorization-db/README.md index f00b8e65fd..0e832023d1 100644 --- a/deploy/helm/internal-charts/authorization-db/README.md +++ b/deploy/helm/internal-charts/authorization-db/README.md @@ -1,6 +1,6 @@ # authorization-db -![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) +![Version: 4.2.1](https://img.shields.io/badge/Version-4.2.1-informational?style=flat-square) A Helm chart for Kubernetes @@ -10,7 +10,7 @@ Kubernetes: `>= 1.14.0-0` | Repository | Name | Version | |------------|------|---------| -| file://../magda-postgres | magda-postgres | 4.0.0 | +| file://../magda-postgres | magda-postgres | 4.2.1 | ## Values diff --git a/deploy/helm/internal-charts/cloud-sql-proxy/Chart.yaml b/deploy/helm/internal-charts/cloud-sql-proxy/Chart.yaml index 8dd26ae193..a33f0b4998 100644 --- a/deploy/helm/internal-charts/cloud-sql-proxy/Chart.yaml +++ b/deploy/helm/internal-charts/cloud-sql-proxy/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: A Helm chart for Kubernetes name: cloud-sql-proxy -version: 4.0.0 +version: 4.2.1 appVersion: "1.11" kubeVersion: ">= 1.14.0-0" annotations: diff --git a/deploy/helm/internal-charts/cloud-sql-proxy/README.md b/deploy/helm/internal-charts/cloud-sql-proxy/README.md index c7e3f16124..74d1e58b1f 100644 --- a/deploy/helm/internal-charts/cloud-sql-proxy/README.md +++ b/deploy/helm/internal-charts/cloud-sql-proxy/README.md @@ -1,6 +1,6 @@ # cloud-sql-proxy -![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) ![AppVersion: 1.11](https://img.shields.io/badge/AppVersion-1.11-informational?style=flat-square) +![Version: 4.2.1](https://img.shields.io/badge/Version-4.2.1-informational?style=flat-square) ![AppVersion: 1.11](https://img.shields.io/badge/AppVersion-1.11-informational?style=flat-square) A Helm chart for Kubernetes diff --git a/deploy/helm/internal-charts/combined-db/Chart.lock b/deploy/helm/internal-charts/combined-db/Chart.lock index 50fc9bd6bd..3612b581d9 100644 --- a/deploy/helm/internal-charts/combined-db/Chart.lock +++ b/deploy/helm/internal-charts/combined-db/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: magda-postgres repository: file://../magda-postgres - version: 4.0.0 -digest: sha256:56d86a1c8dbeda88ac9c76fea9d43626e737b0b15505949c9fc9450ec274de9d -generated: "2024-05-24T06:16:18.622218899Z" + version: 4.2.1 +digest: sha256:68bb76962afd28d471fe2e2059561d9fe82c271426caa13ef5f690e9f104084a +generated: "2024-07-02T10:25:15.690760576Z" diff --git a/deploy/helm/internal-charts/combined-db/Chart.yaml b/deploy/helm/internal-charts/combined-db/Chart.yaml index d1914a24a6..69115702ba 100644 --- a/deploy/helm/internal-charts/combined-db/Chart.yaml +++ b/deploy/helm/internal-charts/combined-db/Chart.yaml @@ -4,12 +4,12 @@ description: | Unless you attempt to run logical DBs over seperate physical DBs (via `global.useInK8sDbInstance.xxx`), you should always enable this module (even when you use cloud based DB service e.g. AWS RDS or Google Cloud SQL). name: combined-db -version: 4.0.0 +version: 4.2.1 kubeVersion: ">= 1.14.0-0" annotations: magdaModuleType: "core" dependencies: - name: magda-postgres - version: "4.0.0" + version: "4.2.1" repository: "file://../magda-postgres" condition: global.useCombinedDb diff --git a/deploy/helm/internal-charts/combined-db/README.md b/deploy/helm/internal-charts/combined-db/README.md index 252233a291..a776a70895 100644 --- a/deploy/helm/internal-charts/combined-db/README.md +++ b/deploy/helm/internal-charts/combined-db/README.md @@ -1,6 +1,6 @@ # combined-db -![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) +![Version: 4.2.1](https://img.shields.io/badge/Version-4.2.1-informational?style=flat-square) The combined database target module for Magda. Unless you attempt to run logical DBs over seperate physical DBs (via `global.useInK8sDbInstance.xxx`), @@ -12,7 +12,7 @@ Kubernetes: `>= 1.14.0-0` | Repository | Name | Version | |------------|------|---------| -| file://../magda-postgres | magda-postgres | 4.0.0 | +| file://../magda-postgres | magda-postgres | 4.2.1 | ## Values diff --git a/deploy/helm/internal-charts/content-api/Chart.yaml b/deploy/helm/internal-charts/content-api/Chart.yaml index 9ce971a03f..62a2a649c1 100644 --- a/deploy/helm/internal-charts/content-api/Chart.yaml +++ b/deploy/helm/internal-charts/content-api/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: A Helm chart for Kubernetes name: content-api -version: 4.0.0 +version: 4.2.1 kubeVersion: ">= 1.14.0-0" annotations: magdaModuleType: "core" diff --git a/deploy/helm/internal-charts/content-api/README.md b/deploy/helm/internal-charts/content-api/README.md index f77942fc05..c1d3a88787 100644 --- a/deploy/helm/internal-charts/content-api/README.md +++ b/deploy/helm/internal-charts/content-api/README.md @@ -1,6 +1,6 @@ # content-api -![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) +![Version: 4.2.1](https://img.shields.io/badge/Version-4.2.1-informational?style=flat-square) A Helm chart for Kubernetes diff --git a/deploy/helm/internal-charts/content-db/Chart.lock b/deploy/helm/internal-charts/content-db/Chart.lock index 06c0b2b02a..5bf932692e 100644 --- a/deploy/helm/internal-charts/content-db/Chart.lock +++ b/deploy/helm/internal-charts/content-db/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: magda-postgres repository: file://../magda-postgres - version: 4.0.0 -digest: sha256:bf453298de85ee5e6b2e1097280bfd523ac38298cfd70c5ac840d8101a2164b1 -generated: "2024-05-24T06:16:18.709702767Z" + version: 4.2.1 +digest: sha256:a8e92bb58c251c44ee19fca501551c2bb662f3dc100a77b8bcb9f3a0e8532570 +generated: "2024-07-02T10:25:15.777009223Z" diff --git a/deploy/helm/internal-charts/content-db/Chart.yaml b/deploy/helm/internal-charts/content-db/Chart.yaml index eb9bdc51ce..74a4d45e93 100644 --- a/deploy/helm/internal-charts/content-db/Chart.yaml +++ b/deploy/helm/internal-charts/content-db/Chart.yaml @@ -1,12 +1,12 @@ apiVersion: v2 description: A Helm chart for Kubernetes name: content-db -version: 4.0.0 +version: 4.2.1 kubeVersion: ">= 1.14.0-0" annotations: magdaModuleType: "core" dependencies: - name: magda-postgres - version: "4.0.0" + version: "4.2.1" repository: "file://../magda-postgres" condition: global.useInK8sDbInstance.content-db diff --git a/deploy/helm/internal-charts/content-db/README.md b/deploy/helm/internal-charts/content-db/README.md index 26463592fd..200fecdb41 100644 --- a/deploy/helm/internal-charts/content-db/README.md +++ b/deploy/helm/internal-charts/content-db/README.md @@ -1,6 +1,6 @@ # content-db -![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) +![Version: 4.2.1](https://img.shields.io/badge/Version-4.2.1-informational?style=flat-square) A Helm chart for Kubernetes @@ -10,7 +10,7 @@ Kubernetes: `>= 1.14.0-0` | Repository | Name | Version | |------------|------|---------| -| file://../magda-postgres | magda-postgres | 4.0.0 | +| file://../magda-postgres | magda-postgres | 4.2.1 | ## Values diff --git a/deploy/helm/internal-charts/correspondence-api/Chart.yaml b/deploy/helm/internal-charts/correspondence-api/Chart.yaml index f3dbafff10..4b76f93540 100644 --- a/deploy/helm/internal-charts/correspondence-api/Chart.yaml +++ b/deploy/helm/internal-charts/correspondence-api/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: A Helm chart for Kubernetes name: correspondence-api -version: 4.0.0 +version: 4.2.1 kubeVersion: ">= 1.14.0-0" annotations: magdaModuleType: "core" diff --git a/deploy/helm/internal-charts/correspondence-api/README.md b/deploy/helm/internal-charts/correspondence-api/README.md index d48d1eb4f5..2f68b63f06 100644 --- a/deploy/helm/internal-charts/correspondence-api/README.md +++ b/deploy/helm/internal-charts/correspondence-api/README.md @@ -1,6 +1,6 @@ # correspondence-api -![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) +![Version: 4.2.1](https://img.shields.io/badge/Version-4.2.1-informational?style=flat-square) A Helm chart for Kubernetes diff --git a/deploy/helm/internal-charts/elasticsearch/Chart.yaml b/deploy/helm/internal-charts/elasticsearch/Chart.yaml index 5c16aea3de..adfadc2e7c 100644 --- a/deploy/helm/internal-charts/elasticsearch/Chart.yaml +++ b/deploy/helm/internal-charts/elasticsearch/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: A Helm chart for Kubernetes name: elasticsearch -version: 4.0.0 +version: 4.2.1 kubeVersion: ">= 1.14.0-0" annotations: magdaModuleType: "core" diff --git a/deploy/helm/internal-charts/elasticsearch/README.md b/deploy/helm/internal-charts/elasticsearch/README.md index d0ffc01bcf..86cbd43f66 100644 --- a/deploy/helm/internal-charts/elasticsearch/README.md +++ b/deploy/helm/internal-charts/elasticsearch/README.md @@ -1,6 +1,6 @@ # elasticsearch -![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) +![Version: 4.2.1](https://img.shields.io/badge/Version-4.2.1-informational?style=flat-square) A Helm chart for Kubernetes diff --git a/deploy/helm/internal-charts/gateway/Chart.yaml b/deploy/helm/internal-charts/gateway/Chart.yaml index 8ffefda6b7..094b98c686 100644 --- a/deploy/helm/internal-charts/gateway/Chart.yaml +++ b/deploy/helm/internal-charts/gateway/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 description: The Gateway Component of Magda that routes incoming requets to other magda components. name: gateway -version: 4.0.0 +version: 4.2.1 kubeVersion: ">= 1.14.0-0" annotations: magdaModuleType: "core" diff --git a/deploy/helm/internal-charts/gateway/README.md b/deploy/helm/internal-charts/gateway/README.md index b096ad40b8..ec2ed33172 100644 --- a/deploy/helm/internal-charts/gateway/README.md +++ b/deploy/helm/internal-charts/gateway/README.md @@ -1,6 +1,6 @@ # gateway -![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) +![Version: 4.2.1](https://img.shields.io/badge/Version-4.2.1-informational?style=flat-square) The Gateway Component of Magda that routes incoming requets to other magda components. @@ -43,6 +43,7 @@ Kubernetes: `>= 1.14.0-0` | defaultWebRouteConfig.methods | list | `["GET"]` | array of string. "all" means all methods will be proxied | | defaultWebRouteConfig.redirectTrailingSlash | bool | `false` | make /xxx auto redirect to /xxxx/ | | defaultWebRouteConfig.to | string | `""` | the default web router proxy target. Optional. If set, the default web route set via `web` option will be ignored. | +| disableGzip | bool | `false` | By default, response will be auto-gizpped depends on MIME type. Set this to true to disable it. | | enableAuthEndpoint | bool | `true` | whether or not enable auth endpoint. You can turn it off if you don't need to log into any account. | | enableCkanRedirection | bool | `false` | wether or not enable CKAN redirection. when it's on, any incoming ckan alike URL will be redirected to the CKAN instance URL that is specified by config option `ckanRedirectionDomain` and `ckanRedirectionPath`. | | enableHttpsRedirection | bool | `false` | whether or not redirect incoming request using HTTP protocol to HTTPs | diff --git a/deploy/helm/internal-charts/gateway/templates/deployment.yaml b/deploy/helm/internal-charts/gateway/templates/deployment.yaml index 135bb56d31..21fb586900 100644 --- a/deploy/helm/internal-charts/gateway/templates/deployment.yaml +++ b/deploy/helm/internal-charts/gateway/templates/deployment.yaml @@ -59,6 +59,9 @@ spec: {{- if .Values.enableCkanRedirection }} "--enableCkanRedirection", {{ .Values.enableCkanRedirection | quote }}, {{- end }} +{{- if .Values.disableGzip }} + "--disableGzip", {{ .Values.disableGzip | quote }}, +{{- end }} {{- if not (kindIs "invalid" .Values.registryQueryCacheStdTTL) }} "--registryQueryCacheStdTTL", {{ .Values.registryQueryCacheStdTTL | quote }}, {{- end }} diff --git a/deploy/helm/internal-charts/gateway/values.yaml b/deploy/helm/internal-charts/gateway/values.yaml index e4f7478197..dcb9948c0c 100644 --- a/deploy/helm/internal-charts/gateway/values.yaml +++ b/deploy/helm/internal-charts/gateway/values.yaml @@ -53,6 +53,9 @@ ckanRedirectionPath: # -- whether or not redirect incoming request using HTTP protocol to HTTPs enableHttpsRedirection: false +# -- By default, response will be auto-gizpped depends on MIME type. Set this to true to disable it. +disableGzip: false + # -- a list of authentication plugin config item. # Each authentication plugin config item can contain the following fields: #