OCSInventory-NG / OCSInventory-ocsreports

Webconsole for OCS Inventory NG
https://www.ocsinventory-ng.org
GNU General Public License v2.0
231 stars 151 forks source link

[BUG] Dynamic group is no longer filled (2.12.0 with https://github.com/OCSInventory-NG/OCSInventory-ocsreports/pull/1542) #1544

Closed LMS235 closed 1 year ago

LMS235 commented 1 year ago

OCS Inventory version Version : 2.12.0 with Fixes from https://github.com/OCSInventory-NG/OCSInventory-ocsreports/pull/1542

Describe the bug Since the installation of the fixes from https://github.com/OCSInventory-NG/OCSInventory-ocsreports/pull/1542 the dynamic groups are no longer filled cleanly and the deployment therefore no longer runs.

The cronjobs run clean and even after 1 day "All computers (cached)" remains empty. "All computers (replay)" displays everything correctly.

Expected behavior The data should be present in both views Here unfortunately since 2.12.0 some things are no longer correct :(

Screenshots All computers (replay): image

All computers (cached): image

LMS235 commented 1 year ago

Update: Old dynamic groups continue to function as usual. Only newly created ones have the problem

PS: it can also be that it is generally with 2.12.0 so, I just noticed it afterwards (in the short period on 2.12.0 without the fixes I have not created dynamic groups)

Lea9250 commented 1 year ago

Hi @LMS235,

The PR https://github.com/OCSInventory-NG/OCSInventory-Server/pull/433 should fix the issue, could you try it and update us ?

As a side note, you mentioned a cron job, but the groups are not being populated by a cron script. Instead, a device gets added at the time of its inventory. OCS verifies whether it matches any dynamic group request, and if so, the device is added to the group.

Regards, Léa

LMS235 commented 1 year ago

@Lea9250 works now :)

Lea9250 commented 1 year ago

@LMS235 thanks for the update ! Glad to hear it works. I'll close the issue now.

Have a nice day

LMS235 commented 1 year ago

@Lea9250 thank you.

There are some open issues just after 2.12.0 (also some already fixed by fixes like this one) - when will there be an update (i.e. a 2.12.1 or similar)? Think some will otherwise run into problems (and many patching not by hand individual files)