You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Over this weekend I made some changes to the reports feature so that it would work, for at least what I wanted to see (the labels working and the reports appearing to work somewhat)
Since I didn't yet have any data to test with I just wanted it to "not crash".
However, I stumbled across something that I coded up a work-around for, but it might not be suitable for a permanent fix.
Reports is heavy with JavaScript and the way it works seems to fail to go through CI4 infrastucture to do its thing. The result is that "getIndex()" is required to get to the filter panel, but after that, it insists on calling the pre-CI4 "index()" method. I think it's because Reports does a windows.location replacement to go to the data after submitting the filter. But I'm not a JavaScript wizard - just a journeyman.
So what you will find is that I added to Reports.php is the function index() that calls getIndex(). That seems to be working.
On a different topic. I did work through the issues with Item Kit maintenance and that seems to be working now.
@odiea I'm guessing you tested with data so there there should have been a report. Thanks for checking it out and letting me know I have more work to do on it. 👍 A LOT more work to do.
Yeah, that was weird. I went ahead and did the commit because they were showing when I last tested, but when I went back to retest after you pointed out your issue I also noticed that the inventory reports were not appearing. It seems I have a stability issue in my test environment.
@SteveIreland
OK, well received I had been working on the subject for a few days and I persuaded my time to test the routes regex, well I had seen this javascript problem, BRAVO SteveIreland
I try a "FRSH install with the last commit
see you soon
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
one plugin dependency was installed using npm but not copied. Some reports do work now but I do still get the error you post here above in at least one of them.
@objecttothis the error you posted occurred only in pages with a pie chart. For some reason, a config object with padding for top and bottom was set on a chartPadding property that was just a number.
Maybe something changed in chartist in a backwards incompatible way as I have the impression this chartPadding setting should have been a dict before. I simply changed the type of this config option and now it seems to work.
Activity
SteveIreland commentedon Jun 11, 2023
Over this weekend I made some changes to the reports feature so that it would work, for at least what I wanted to see (the labels working and the reports appearing to work somewhat)
Since I didn't yet have any data to test with I just wanted it to "not crash".
However, I stumbled across something that I coded up a work-around for, but it might not be suitable for a permanent fix.
Reports is heavy with JavaScript and the way it works seems to fail to go through CI4 infrastucture to do its thing. The result is that "getIndex()" is required to get to the filter panel, but after that, it insists on calling the pre-CI4 "index()" method. I think it's because Reports does a windows.location replacement to go to the data after submitting the filter. But I'm not a JavaScript wizard - just a journeyman.
So what you will find is that I added to Reports.php is the function index() that calls getIndex(). That seems to be working.
On a different topic. I did work through the issues with Item Kit maintenance and that seems to be working now.
odiea commentedon Jun 11, 2023
The Reports show with their correct names but after the Input there is no Report. Thanks for all the work.
SteveIreland commentedon Jun 12, 2023
@odiea I'm guessing you tested with data so there there should have been a report. Thanks for checking it out and letting me know I have more work to do on it. 👍 A LOT more work to do.
odiea commentedon Jun 12, 2023
@SteveIreland The other issue in Reports listing is the Inventory grants are not working so Inventory Reports are not showing in the listing..
SteveIreland commentedon Jun 12, 2023
Yeah, that was weird. I went ahead and did the commit because they were showing when I last tested, but when I went back to retest after you pointed out your issue I also noticed that the inventory reports were not appearing. It seems I have a stability issue in my test environment.
DEV-byoos commentedon Jun 13, 2023
@SteveIreland
OK, well received I had been working on the subject for a few days and I persuaded my time to test the routes regex, well I had seen this javascript problem, BRAVO SteveIreland
I try a "FRSH install with the last commit
see you soon
odiea commentedon Jul 30, 2023
Anyone making any headway on the Reports to show correctly?
jekkos commentedon Aug 3, 2023
This week I briefly tried to get things running again, but have to find more time to make progress.
stale commentedon Sep 17, 2023
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
3 remaining items
odiea commentedon Apr 23, 2024
@objecttothis Great bunch of commits. Thanks It's nice to see the Detailed, Specific and Inventory Reports finally working.
objecttothis commentedon Apr 29, 2024
Summary reports are working now.
objecttothis commentedon Apr 29, 2024
For graphical reports we are getting a problem related to chartist
jekkos commentedon May 11, 2024
one plugin dependency was installed using npm but not copied. Some reports do work now but I do still get the error you post here above in at least one of them.
Fix graphical reports (#3773)
Fix pie chats (#3773)
jekkos commentedon May 11, 2024
@objecttothis the error you posted occurred only in pages with a pie chart. For some reason, a config object with padding for top and bottom was set on a chartPadding property that was just a number.
Maybe something changed in chartist in a backwards incompatible way as I have the impression this
chartPaddingsetting should have been a dict before. I simply changed the type of this config option and now it seems to work.Fix pie charts (#3773)
Fix graphical reports (#3773)
Fix pie charts (#3773)
Fix graphical reports (#3773)
Fix pie charts (#3773)
objecttothis commentedon Oct 22, 2024
This is all working now.