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

Test/TestQuestionPool: switch to LOM API #7923

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

schmitz-ilias
Copy link
Contributor

@schmitz-ilias schmitz-ilias commented Aug 9, 2024

This PR replaces all usages of the old MetaData classes in Test and TestQuestionPool not related to export/import with the new LOM API. The usages related to import/export will be covered in a different PR, see #7924.

Let me know if there is anything you want done differently.

Cheers, @schmitz-ilias

Copy link
Contributor

@kergomard kergomard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for these improvements @schmitz-ilias !

I would have two very small change requests:

  • Could you please rename the variable lom_services to lo_metadata. My rational: I don't think the _service-part adds any information, but on the other hand "lom" is too cryptic to be easily understood. learning_object_metadata seems slightly too verbose. The most important part, I think, is metadata and so we can shorten the "learning_objective" to "lo", showing that this is a special type of metadata. I'm understanding this right that the part of the MetaData-component exposed here only deals with metadata compliant with the LOM standard, right?
  • And if you could be so kind to change strlen($author) == 0 to $author === '' here I would be gratefull.

Other then this I'm fine with the changes and would merge as soon as you changed this.

Thanks again and best,
@kergomard

@dsstrassner dsstrassner removed the request for review from thojou August 30, 2024 08:02
@schmitz-ilias
Copy link
Contributor Author

Hi @kergomard,
correct, only Learning Object Metadata is available through the API, Custom Metadata is a different can of worms. Thanks for your feedback, I've made the suggested changes.

@kergomard
Copy link
Contributor

Thank you very much @schmitz-ilias !

@kergomard kergomard merged commit 030b5ea into ILIAS-eLearning:trunk Sep 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants