Skip to content

Conversation

@christianlupus
Copy link
Collaborator

This PR should make the image management cleaner and better handlable. The main intent was to migrate the code into an (automatically) testable state.

@codecov
Copy link

codecov bot commented Mar 26, 2022

Codecov Report

Merging #933 (24f0409) into master (9199824) will increase coverage by 6.08%.
The diff coverage is 85.71%.

❗ Current head 24f0409 differs from pull request most recent head e8ea33a. Consider uploading reports for the commit e8ea33a to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #933      +/-   ##
==========================================
+ Coverage   22.42%   28.50%   +6.08%     
==========================================
  Files          21       29       +8     
  Lines        1476     1540      +64     
==========================================
+ Hits          331      439     +108     
+ Misses       1145     1101      -44     
Flag Coverage Δ
integration 5.51% <0.00%> (-0.24%) ⬇️
unittests 22.98% <85.71%> (+6.32%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/Service/RecipeService.php 0.00% <0.00%> (ø)
lib/Helper/ImageService/ThumbnailFileHelper.php 96.87% <96.87%> (ø)
lib/Exception/InvalidThumbnailTypeException.php 100.00% <100.00%> (ø)
lib/Exception/NoRecipeImageFoundException.php 100.00% <100.00%> (ø)
lib/Exception/RecipeImageExistsException.php 100.00% <100.00%> (ø)
lib/Helper/ImageService/ImageFileHelper.php 100.00% <100.00%> (ø)
lib/Helper/ImageService/ImageGenerationHelper.php 100.00% <100.00%> (ø)
lib/Service/ImageService.php 100.00% <100.00%> (ø)
lib/Service/ThumbnailService.php 100.00% <100.00%> (ø)

@github-actions
Copy link

github-actions bot commented Mar 26, 2022

Unit Test Results

     22 files       22 suites   7m 56s ⏱️
   120 tests    120 ✔️ 0 💤 0
1 320 runs  1 320 ✔️ 0 💤 0

Results for commit e8ea33a.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@seyfeb seyfeb left a comment

Choose a reason for hiding this comment

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

Should be fine. There are just some small comments from my side

Added test for complete coverage

Added dropping of thumbnails

Prevent accidential removal of primary image

Signed-off-by: Christian Wolf <[email protected]>
Added tests for helper classes

Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
christianlupus and others added 5 commits March 28, 2022 18:08
Adding the spelling issues from the code review process

Signed-Off-By: Christian Wolf <[email protected]>

Co-authored-by: Sebastian Fey <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
I have to make sure I got all, thus a first commit.

Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
@christianlupus christianlupus merged commit 43fc64e into master Mar 28, 2022
@delete-merged-branch delete-merged-branch bot deleted the dev/image-generation branch March 28, 2022 16:33
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.

3 participants