Extend usage of query cache

Summary

Switches queries to their cached variant where possible.
Adds a unified query method as placeholder for updated pylib function.
Part of https://gitlab.indiscale.com/caosdb/customers/geomar/management/-/issues/396

Focus

  • All sample-management helper functions are now cached. Are there any cases where this may pose a problem?
    • You were right - after our discussion I rechecked and the only place I found where this may be a problem in existing scripts is a TODO, and in that case a single cache invalidation would solve the problem. As the cached-parameters for helper functions would be a lot of additional parameters, I figured it would be preferable to leave them out for now and add them if they are ever needed.
  • The PDF upload does not work for me on dev, so I could not test whether this breaks anything there, but if I haven't missed anything this should not have changed anything to do with PDFs anyway.

Test Environment

Normal test profiles. For GEOMAR, there is an updated version of bis-custom which depends on these changes.

Check List for the Author

  • All automated tests pass
  • Reference related issues
  • Up-to-date CHANGELOG.md (or not necessary)
  • Up-to-date JSON schema (or not necessary)
  • Appropriate user and developer documentation (or not necessary)
  • Annotations in code (Gitlab comments)

Check List for the Reviewer

  • I understand the intent of this MR
  • All automated tests pass
  • Up-to-date CHANGELOG.md (or not necessary)
  • Appropriate user and developer documentation (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?
Edited by Florian Spreckelsen

Merge request reports

Loading