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: place imported assets to correct class #2409

Merged

Conversation

pnal
Copy link
Contributor

@pnal pnal commented Oct 3, 2023

Ticket: https://oat-sa.atlassian.net/browse/PISA25-561

What's Changed

Related PR: oat-sa/extension-tao-itemqti#2407

  • Adding label property to target item class, it is needed because ItemImporter should know that label, but in DB we keep it be 'in progress' by the end of the import process.

How to test

check: oat-sa/extension-tao-itemqti#2407

@codecov-commenter
Copy link

codecov-commenter commented Oct 3, 2023

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (30f1ac1) 16.71% compared to head (5021010) 16.71%.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #2409   +/-   ##
==========================================
  Coverage      16.71%   16.71%           
  Complexity      3182     3182           
==========================================
  Files            207      207           
  Lines          11453    11453           
==========================================
  Hits            1914     1914           
  Misses          9539     9539           
Files Coverage Δ
models/classes/class.QtiTestService.php 5.99% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Review Checklist

  • 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
  • Pull request's target is not master
  • Commits are following conventional commits
  • Commits messages are meaningful
  • Commits are atomic
  • Changelog is updated according to changes (if applicable)
  • Documentation is updated according to changes (if applicable)

models/classes/class.QtiTestService.php Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Oct 4, 2023

Version

Target Version 47.4.0
Last version 47.3.0

There are 0 BREAKING CHANGE, 1 feature, 0 fix

Copy link
Contributor

@Karol-Stelmaczonek Karol-Stelmaczonek 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

@@ -96,6 +96,9 @@ class taoQtiTest_models_classes_QtiTestService extends TestService
public const XML_TEST_PART = 'testPart';
public const XML_ASSESSMENT_SECTION = 'assessmentSection';
public const XML_ASSESSMENT_ITEM_REF = 'assessmentItemRef';

private const IN_PROGRESS_LABEL = 'in progress';
Copy link
Contributor

Choose a reason for hiding this comment

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

I think LABEL_IN_PROGESS is better, because then you would just add another LABEL_ and everything would be in same code block

Copy link
Contributor Author

@pnal pnal Oct 4, 2023

Choose a reason for hiding this comment

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

The text for the label when status is in progress: 'in progress' status label IN_PROGRESS_LABEL
For me sounds more clear than: label for 'in progress' status - more context dropped

@pnal pnal merged commit ea1972a into develop Oct 4, 2023
4 checks passed
@pnal pnal deleted the feature/PISA25-561/place-imported-assets-to-proper-class branch October 4, 2023 15:05
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