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

Feat/aut 3590/add metadata check on import #2454

Merged
merged 37 commits into from
May 7, 2024

Conversation

Karol-Stelmaczonek
Copy link
Contributor

@Karol-Stelmaczonek Karol-Stelmaczonek commented Apr 10, 2024

Ticket: https://oat-sa.atlassian.net/browse/AUT-3590

What's Changed

  • Add metametadata check & validation on import

Dependencies PRs

How to test

  • Create import with metadata
  • Run import
  • If import class don't have proper metadata the import will fail

Copy link

github-actions bot commented Apr 10, 2024

Front-end summary Node 18

💯 Total ✅ Passed ⏭️ Skipped ❌ Failed
708 708 0 0

Copy link
Contributor

@bartlomiejmarszal bartlomiejmarszal left a comment

Choose a reason for hiding this comment

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

Remember to update composer.json before merge

models/classes/class.QtiTestService.php Outdated Show resolved Hide resolved
Copy link
Contributor

@pnal pnal left a comment

Choose a reason for hiding this comment

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

  • New code is covered by tests (if applicable)
  • Tests are running successfully (old and new ones) on my local machine (if applicable)
  • New code is respecting code style rules
  • New code is respecting best practices
  • New code is not subject to concurrency issues (if applicable)
  • Feature is working correctly on my local machine (if applicable)
  • Acceptance criteria are respected
  • Pull request title and description are meaningful

return [
OntologyRdf::RDF_TYPE,
taoTests_models_classes_TestsService::PROPERTY_TEST_TESTMODEL,
RDFS_LABEL
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we avoid using global var?

Suggested change
RDFS_LABEL
oat\generis\model\OntologyRdfs::RDFS_LABEL

private function getIgnoredProperties(): array
{
return [
OntologyRdf::RDF_TYPE,
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to add the list of ignored properties as a constructor param same as for metaMetadataCollectionToExport?

Copy link
Contributor

@tikhanovichA tikhanovichA left a comment

Choose a reason for hiding this comment

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

  • New code is covered by tests (if applicable)
  • Tests are running successfully (old and new ones) on my local machine (if applicable)
  • New code is respecting code style rules
  • New code is respecting best practices
  • New code is not subject to concurrency issues (if applicable)
  • Feature is working correctly on my local machine (if applicable)
  • Acceptance criteria are respected
  • Pull request title and description are meaningful

Copy link

github-actions bot commented May 7, 2024

Version

Target Version 48.5.0
Last version 48.4.1

There are 0 BREAKING CHANGE, 20 features, 4 fixes

@bartlomiejmarszal bartlomiejmarszal merged commit 368c6f6 into develop May 7, 2024
2 of 5 checks passed
@bartlomiejmarszal bartlomiejmarszal deleted the feat/aut-3590/add-metadata-check-on-import branch May 7, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants