Skip to content

add DI registration for licence manager - #37728

Merged
micbar merged 1 commit into
masterfrom
bugfix/di-container
Jul 27, 2020
Merged

micbar merged 1 commit into
masterfrom
bugfix/di-container

Conversation

@mrow4a

@mrow4a mrow4a commented Jul 26, 2020

Copy link
Copy Markdown
Contributor

Without this, apps will get

  • Could not resolve OCP\\\\License\\\\ILicenseManager! Class can not be instantiated\
  • Exception: {\"Exception\":\"OCP\\\\AppFramework\\\\QueryException\",\"Message\":\"Could not resolve uid! Class uid does not exist or error resolving constructor arguments: Could not resolve LicenseManager! Class LicenseManager does not exist\

@pmaier1 @micbar

@codecov

codecov Bot commented Jul 26, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #37728 into master will decrease coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #37728      +/-   ##
============================================
- Coverage     64.71%   64.71%   -0.01%     
  Complexity    19386    19386              
============================================
  Files          1283     1283              
  Lines         75730    75732       +2     
  Branches       1333     1333              
============================================
+ Hits          49008    49009       +1     
- Misses        26330    26331       +1     
  Partials        392      392              
Flag Coverage Δ Complexity Δ
#javascript 54.03% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.89% <50.00%> (-0.01%) 19386.00 <0.00> (ø)

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

Impacted Files Coverage Δ Complexity Δ
...e/AppFramework/DependencyInjection/DIContainer.php 63.67% <50.00%> (-0.13%) 15.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f447f0...e92ac70. Read the comment docs.

@phil-davis

phil-davis commented Jul 26, 2020 •

Copy link
Copy Markdown
Contributor

So that things work nicely in master right away, it is probably good to merge this. But also it will be necessary to make a separate PR to release-10.5.0 branch so that this can get in 10.5.0

@mrow4a

mrow4a commented Jul 26, 2020 •

Copy link
Copy Markdown
Contributor Author

@phil-davis this has to go to oc10.5, LicenceManager public code was incomplete

@phil-davis

Copy link
Copy Markdown
Contributor

I made a backport PR #37731

@micbar
micbar merged commit 48e2b6c into master Jul 27, 2020
@delete-merged-branch
delete-merged-branch Bot deleted the bugfix/di-container branch July 27, 2020 09:07
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