remove supportedOwner from Resource.ResourceType#7416
remove supportedOwner from Resource.ResourceType#7416weizhouapache merged 3 commits intoapache:mainfrom
Conversation
|
SonarCloud Quality Gate failed. |
Codecov Report
@@ Coverage Diff @@
## main #7416 +/- ##
============================================
- Coverage 13.42% 12.69% -0.73%
+ Complexity 9381 8664 -717
============================================
Files 2747 2718 -29
Lines 258798 256332 -2466
Branches 40312 39954 -358
============================================
- Hits 34732 32539 -2193
+ Misses 219695 219657 -38
+ Partials 4371 4136 -235
... and 246 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Thanks for reviewing @DaanHoogland. Could anyone else review this one? |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
…rtsOwner_from_ResourceType
|
@GutoVeronezi @weizhouapache |
GutoVeronezi
left a comment
There was a problem hiding this comment.
CLGTM
Thansk @GaOrtiga
|
@blueorangutan package |
|
@weizhouapache a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6920 |
|
@blueorangutan test |
|
@weizhouapache a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-7592)
|
|
I checked the tests and they are not related to my PR; they are failing in other PRs as well, like in this and this. @weizhouapache are we good to go? |
@GaOrtiga However, I do not know why the original author added the code (>10 years ago), and if it will be used in the future. |
|
Thanks for the review @weizhouapache
I do not know the original author's intentions either. However, it has never been used and there are no immediate plans to use it, so as of now it is useless code. In my opinion this should be removed, and, if at some point in the future a feature is implemented which uses these parameters, they can just be added back in. |
|
@weizhouapache (cc @GaOrtiga ) I think that this code can be removed. Nobody is using it and we have a version control system so we can always put it back. |
ok, fair @DaanHoogland |
* Speed up resource count calculation * server: remove supportedOwner from Resource.ResourceType (apache#7416) * Refactor resource count calculation * Start transaction for updateCountByDeltaForIds --------- Co-authored-by: GaOrtiga <49285692+GaOrtiga@users.noreply.github.com>








Description
The
ResourceTypeenum, which is part of theResourceinterface, includes an argument calledsupportedOwnersthat is used to indicate which types of owners are supported - either Domain, Account or both. However, every type of owner enumerated is supported by both options, making this validation unnecessary.This argument has been removed, along with its getter method.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale