-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add inventoriable capacity #17807
Add inventoriable capacity #17807
Conversation
f4f2249
to
3563c47
Compare
Currently, as you can see in tests; activated capacities are ignored. As soon as the inventory capacity is set; OS, Software, Volumes, and so on will be inventoried. And we have the case of devices that are not a capacity for generic assets, but are not inventoried until related This PR has been opened as a PoC, to be discussed in our next technical meeting. ping @orthagh @cedric-anne @AdrienClairembault @flegastelois @stonebuzz |
3b4c933
to
a8becc9
Compare
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.
All the proposed changes so far seems almost OK to me.
I think the Glpi\Asset\Asset
class should use the Inventoriable
trait.
I did not reviewed tests yet.
baea9f3
to
10df957
Compare
7e6870c
to
4132e42
Compare
Failing tests on HtmlTest seems due to the way generic asset definitions currently works; I've not been able to find a workaround for that - I even do not understand why there is only 1 asset definition left. It's easy to reproduce by running only GenericAssetInventory and Html:
|
844d77b
to
a5e31e6
Compare
Should be OK for review now. I do not know why phptsan is not happy (and specially why from this PR). |
For PHPStan, I had the same issue here: https://github.com/glpi-project/glpi/pull/17809/files#diff-e59250d2d794cb4d689bceb57dd6a1fa453d1cfab6bf595af089e5ebf0294c73R386 It seems to think that |
I've ignored the CS issue, a useless check won't break anything. |
Update DB schema with missing fields Add configuration types for environment and process, use them in inventory Add checks for Monitor and Peripherals Add missing devices types in configuration Add new tests Fix Monitor and Printer inventory Prevent numerous Undefined array key "glpi_currenttime" loading bootstrap data
91b624c
to
b5fb4a3
Compare
Checklist before requesting a review
Please delete options that are not relevant.
Description
Add inventory for generic assets