Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inject an additional element with environment information into the input data in IngestReader #149

Merged
merged 11 commits into from
Feb 28, 2024

Conversation

RKrahl
Copy link
Member

@RKrahl RKrahl commented Jan 22, 2024

Add an additional element _environment into the the input metadata after XSD validation and before applying the XSLT in class IngestReader. This environment information may thus be used in the XSLT. Close #148.

For the time being, the environment information only consists of the version of the ICAT server, so it's mostly a proof of concept. More attributes may be added in the future.

This still needs documentation and more thorough testing, hence the draft status of the PR.

@RKrahl RKrahl added the enhancement New feature or request label Jan 22, 2024
@RKrahl RKrahl added this to the 1.3.0 milestone Jan 22, 2024
separate method of IngestReader, so it can be overridden in subclasses
  test_custom_ingest()
- Minor: update the order of the templates in the XSLT according to
  order of elements in the input
case, always validate against the schema according to the ICAT server
version, we are talking to
@RKrahl
Copy link
Member Author

RKrahl commented Jan 31, 2024

Tested this on a separate branch for case that icatproject/icat.server#231 would be implemented: works. Only remaining TODO is documentation, but for this, I'll wait for #142 to be merged and build on top of that.

_environment element that is injected into the metadata during that
processing
@RKrahl RKrahl marked this pull request as ready for review February 28, 2024 11:52
@RKrahl RKrahl merged commit 22d45c9 into develop Feb 28, 2024
1 check passed
@RKrahl RKrahl deleted the ingest-env branch February 28, 2024 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a way to feed environment information into the XSLT in IngestReader
1 participant