Skip to content
Snippets Groups Projects

Treat dependencies among identifiables

Merged Henrik tom Wörden requested to merge f-ident-deps into dev

Summary

Allow a CFood to have identifiables that depend on each other. E.g. an identifiable Project and an Experiment that references it.

Focus

Identifiables are now treated one after the other when checking whether they need to be inserted.

Test Environment

Automated tests should suffice. Note that tests where changed slightly such that they fail without this fix: https://gitlab.indiscale.com/caosdb/src/caosdb-advanced-user-tools/-/jobs/37342 Since identifiables are not treated correctly the experiment is inserted a second time which leads to the violation of the unique query.

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
  • 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
  • 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 spezifications? Are they satisfied?
  • remove the demonstration branch f-make-deps-fail

For further good practices have a look at our review guidelines.

Edited by Henrik tom Wörden

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1 1 Experiment:
2 obligatory_properties:
2 recommended_properties:
  • 3 3 ls
    4 4 cat pycaosdb.ini
    5 5 rm -rf cache.db
    6 set -e
  • 78 78 self.experiment, self.project = (
    79 79 ExperimentCFood.create_identifiable_experiment(self.match))
    80 80
    81 self.identifiables.extend([self.experiment, self.project])
    81 self.identifiables.extend([self.project, self.experiment])
  • Henrik tom Wörden marked the checklist item Up-to-date CHANGELOG.md as completed

    marked the checklist item Up-to-date CHANGELOG.md as completed

  • Henrik tom Wörden marked the checklist item Up-to-date CHANGELOG.md as incomplete

    marked the checklist item Up-to-date CHANGELOG.md as incomplete

  • Henrik tom Wörden marked the checklist item Up-to-date CHANGELOG.md as completed

    marked the checklist item Up-to-date CHANGELOG.md as completed

  • Henrik tom Wörden marked the checklist item Reference related Issues as completed

    marked the checklist item Reference related Issues as completed

  • Henrik tom Wörden marked the checklist item Annotations in code (Gitlab comments) as completed

    marked the checklist item Annotations in code (Gitlab comments) as completed

  • added 1 commit

    Compare with previous version

  • Henrik tom Wörden marked the checklist item All automated tests pass as completed

    marked the checklist item All automated tests pass as completed

  • 1 ---
    2 responsible:
    3 - Tom Wood
    4 description: Something.
    5 ...
  • Henrik tom Wörden changed the description

    changed the description

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading