From 340e76bf750449fe183169baf32692dd9adf54f0 Mon Sep 17 00:00:00 2001 From: "Jens W. Klein" Date: Mon, 4 Dec 2023 11:56:37 +0100 Subject: [PATCH] minor enhancements --- CHANGES.rst | 7 +++++++ README.rst | 1 + src/collective/elastic/ingest/plone.py | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index b83ba80..d3245be 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,13 @@ Changelog ========= +2.0.0rc9 (2023-12-04) +--------------------- + +- Enhancement: OCI image documentation. [jensens] +- Enhancement: Strip trailing slash from ``PLONE_SERVICE`` URL. [jensens] + + 2.0.0rc8 (2023-12-01) --------------------- diff --git a/README.rst b/README.rst index 5425146..807951d 100644 --- a/README.rst +++ b/README.rst @@ -314,6 +314,7 @@ CELERY_LOGLEVEL The `MAPPINGS_FILE` variable defaults to `/configuration/mappings.json`. By default no file is present. When a mount is provided to `/configuration`, the mappings file can be placed there. +Alternatively, the mappings file can be provided as a `configs element in docker compose `_ or as a `configmap <>`_ in Kubernetes. Examples ======== diff --git a/src/collective/elastic/ingest/plone.py b/src/collective/elastic/ingest/plone.py index 3eeb405..6fcfee5 100644 --- a/src/collective/elastic/ingest/plone.py +++ b/src/collective/elastic/ingest/plone.py @@ -22,7 +22,7 @@ def _full_url(path): - return "/".join([str(os.environ.get("PLONE_SERVICE")), path.strip("/")]) + return "/".join([str(os.environ.get("PLONE_SERVICE")).strip("/"), path.strip("/")]) def _schema_url():