Revert "Revert "Merge branch 'f-extend-yaml-model' into 'dev'""
Summary
For #72 (closed). Repairs the previous MR which introduced the role
and value
keywords into the yaml model.
Focus
For the actual changes after the reversion of the revert, have a look at https://gitlab.indiscale.com/caosdb/src/caosdb-advanced-user-tools/-/merge_requests/36/diffs?diff_id=5835&start_sha=619c25e6214aaeb5f91f10252a8dda104b0e46b5. Note that role: File
is postponed until later (#74), as is the implementation of the valued_properties
keyword (#75).
Test Environment
New unit tests and integration tests (use with the debug
profile of caosdb-deploy as described in README_SETUP.md
). Depending on your level of paranoia, you can also test it with the AWI server profile:
- Check out
server-profile
inlocal-testing-main
and update (and init, if necessary) the integration test submodule. - Run
integration-tests/tests/test.sh
Check List for the Author
Please, prepare your MR for a review. Be sure to write a summary and a focus and create gitlab comments for the reviewer. They should guide the reviewer through the changes, explain your changes and also point out open questions. For further good practices have a look at our review guidelines
-
All automated tests pass -
Reference related issues -
Up-to-date CHANGELOG.md (or not necessary) -
Annotations in code (Gitlab comments) - Intent of new code
- Problems with old code
- Why this implementation?
Check List for the Reviewer
-
I understand the intent of this MR -
All automated tests pass -
Up-to-date CHANGELOG.md (or not necessary) -
The test environment setup works and the intended behavior is reproducible in the test environment -
In-code documentation and comments are up-to-date. -
Check: Are there specifications? Are they satisfied?
For further good practices have a look at our review guidelines.
Merge request reports
Activity
assigned to @florian
added 11 commits
-
87dd3224...0b26273c - 10 commits from branch
dev
- 619c25e6 - Merge branch 'dev' into f-extend-yaml-model
-
87dd3224...0b26273c - 10 commits from branch
added 1 commit
- a66f88ba - TST: Add test record to unittest for #72 (closed)
297 320 continue 298 321 n = self._stringify(n) 299 322 300 if (isinstance(e, dict) and "datatype" in e 301 and (_get_listdatatype(e["datatype"]) is not None)): 302 self.model[ent_name].add_property( 303 name=n, 304 importance=importance, 305 datatype=db.LIST(_get_listdatatype(e["datatype"]))) 323 if isinstance(e, dict): This had to be re-written because of #72 (closed), otherwise it would fail in case of dicts that didn't have LIST datatypes.
- Resolved by Florian Spreckelsen
- Resolved by Florian Spreckelsen
- Resolved by Florian Spreckelsen
Should we add a mandatory
path
key forrole: File
elements? There shouldn't be any File objects without one anyway.
requested review from @salexan
added 1 commit
- 36e27fb0 - MAINT: Disable `role: File` for now in parser
added 1 commit
- e41160a5 - MAINT: Refactor and simplify adding of properties
added 1 commit
- 3b483d65 - DOC: Update integration test setup to new profile name
removed review request for @salexan
added 2 commits
mentioned in commit 78c738ed