Skip to content

cache schema fetch from schema service

Yannick requested to merge unknown_schema_cache into master

Same goal than !814 (merged) with some refactoring

When CRUD API is called with a kind that does not belongs to WDMS known schema list, schema service is called to fetch the corresponding schema used to validate the record.

The current MR goal is to keep the schema in memory so further CRUD calls with the same kind won't require further calls to schema service. Note it only caches schema with kind that starts with osdu:wks as that are public. Cache is only internal (process), in memory and not shared at all.

Type of change

  • 💡 New feature

Validation

Select which apply, add any description how code has been validated. At least one method must be provided!

  • New tests added
  • Covered by the unit tests
  • Covered by the integration tests
  • Non functional testing (performance, scalability, security ...)
  • Manual testing, description:
Edited by Yannick

Merge request reports