diff --git a/CHANGELOG.md b/CHANGELOG.md index c7e51f3018e78e22fbcaa48400baab5e868281ad..0670b3743090e7a24c8059739e5116d15c907641 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 97393ef3a18be594690bba48f4d29e67e2c6193b..a0e74e5f3ef1f009067730d93b7e5682c2045b91 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 2e26531d27a1cb038afa1b487007157b532a6fb7..30d23f8f3a4ad88f6b3f4fca18013e26fbcb1dc1 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