From c6b130180ffe343f89646adec2727e7989f6e44f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Fri, 22 Sep 2023 11:41:33 +0200 Subject: [PATCH] DOC: cl and how to upgrade --- CHANGELOG.md | 4 ++++ src/caoscrawler/crawl.py | 1 + src/doc/how-to-upgrade.md | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c7e51f30..0670b374 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added ### ### Changed ### +- If the `parents` key is used in a cfood at a lower level for a Record that + already has a Parent (because it was explicitly given or the default Parent), + the old Parent(s) are now overwritten with the value belonging to the + `parents` key. ### Deprecated ### diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py index 97393ef3..a0e74e5f 100644 --- a/src/caoscrawler/crawl.py +++ b/src/caoscrawler/crawl.py @@ -36,6 +36,7 @@ import importlib import logging import os import sys +import traceback import uuid import warnings from argparse import RawTextHelpFormatter diff --git a/src/doc/how-to-upgrade.md b/src/doc/how-to-upgrade.md index 2e26531d..30d23f8f 100644 --- a/src/doc/how-to-upgrade.md +++ b/src/doc/how-to-upgrade.md @@ -1,5 +1,10 @@ # How to upgrade +## 0.6.x to 0.7.0 +If you added Parents to Records at multiple places in the CFood, you must now +do this at a single location because this key now overwrites previously set +parents. + ## 0.5.x to 0.6.0 [#41](https://gitlab.com/caosdb/caosdb-crawler/-/issues/41) was fixed. This means that you previously used the name of Entities as an identifying -- GitLab