-
Notifications
You must be signed in to change notification settings - Fork 11
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: Delete old assets on test overwrite #2393
feat: Delete old assets on test overwrite #2393
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2393 +/- ##
=============================================
+ Coverage 16.71% 16.80% +0.08%
- Complexity 3173 3182 +9
=============================================
Files 206 207 +1
Lines 11433 11463 +30
=============================================
+ Hits 1911 1926 +15
- Misses 9522 9537 +15
|
Therefore, it does not seem trivial to add unit tests for the new code unless we do a major refactor of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, update composer.json with the minimal version of tao-items to be used here (as event payload was updated).
Thanks!
There was a problem hiding this 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
Version
There are 0 BREAKING CHANGE, 4 features, 3 fixes |
Released as v47.2.0. |
* feat: Delete old assets on test overwrite * feat: Rename event, trigger event before the deletions * feat: Remove logic to extract media references form this extension * fix: dont delete classes whose label don't match the expected label --------- Co-authored-by: Gabriel Felipe Soares <gabrielfs7@gmail.com>
Backported as v47.1.5. |
Associated Jira issue: PISA25-411
When importing a test with the overwrite option, if there are media assets referenced by the items in the test, delete them as well the same way we do for items. If that operation would end up with the former asset classes empty, delete them too.
Related PRs: