Skip to content

Add a helper class to manage the user folders #1007

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

Merged
merged 8 commits into from
Jun 19, 2022

Conversation

christianlupus
Copy link
Collaborator

@christianlupus christianlupus commented May 18, 2022

Closes #1004

This is a cherry-pick (plus modifications) from another dev branch to bring the functionality of a dedicated user folder helper class to the master branch. The class has some caching included to prevent unneeded calls to the DB.

This makes roughly 20% of the query time of fetching all recipes currently:
grafik

@codecov
Copy link

codecov bot commented May 18, 2022

Codecov Report

Merging #1007 (dce1e0d) into master (072b8d4) will increase coverage by 1.47%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1007      +/-   ##
==========================================
+ Coverage   40.65%   42.13%   +1.47%     
==========================================
  Files          42       44       +2     
  Lines        1852     1875      +23     
==========================================
+ Hits          753      790      +37     
+ Misses       1099     1085      -14     
Flag Coverage Δ
integration 4.53% <0.00%> (-0.06%) ⬇️
unittests 37.60% <87.50%> (+1.53%) ⬆️

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

Impacted Files Coverage Δ
lib/Helper/UserConfigHelper.php 100.00% <ø> (ø)
lib/Service/RecipeService.php 0.00% <0.00%> (ø)
lib/Controller/ConfigController.php 100.00% <100.00%> (ø)
lib/Controller/MainController.php 100.00% <100.00%> (ø)
lib/Exception/UserFolderNotValidException.php 100.00% <100.00%> (ø)
lib/Helper/UserFolderHelper.php 100.00% <100.00%> (ø)

@github-actions
Copy link

github-actions bot commented May 18, 2022

Unit Test Results

     24 files       24 suites   7m 59s ⏱️
   194 tests    194 ✔️ 0 💤 0
2 328 runs  2 328 ✔️ 0 💤 0

Results for commit dce1e0d.

♻️ This comment has been updated with latest results.

@christianlupus christianlupus force-pushed the fix/1004-user-folder-helper branch from c40bc07 to 2fe4698 Compare May 18, 2022 17:41
@christianlupus christianlupus requested a review from seyfeb May 18, 2022 18:13
@christianlupus
Copy link
Collaborator Author

@seyfeb The fixupbot seems to be broken at the moment. If you would confirm/approve the PR, I will force-merge it.

@christianlupus christianlupus merged commit fe66d88 into master Jun 19, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix/1004-user-folder-helper branch June 19, 2022 06:09
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.

The user folder is checked and (re) generated for one request once per recipe. This should be cached.
1 participant