puter icon indicating copy to clipboard operation
puter copied to clipboard

"undefined" appearing in Usage tab of Settings app

Open AtkinsSJ opened this issue 1 year ago • 1 comments

I get three different items listed as "undefined". These correspond to entries of the changes output that have no service -> driver.interface field set:

image

I don't know what these refer to, but presumably these don't use a driver, and so we need some fall-back text displayed if driver.interface is missing. cc @jelveh

AtkinsSJ avatar Mar 25 '24 11:03 AtkinsSJ

@AtkinsSJ This is not a GUI issue but more of a driver usage reporting issue.

@KernelDeimos The /drivers/usage endpoint doesn't seem to return complete information for some drivers such as hosting:

{
    "user": [
        {
            "service": {
                "driver.method": "get",
                "driver.interface": "puter-kvstore",
                "driver.implementation": "public-kvstore"
            },
            "year": 2024,
            "month": 4,
            "monthly_limit": null,
            "monthly_usage": 8
        },
        {
            "service": {
                "driver.method": "list",
                "driver.interface": "puter-kvstore",
                "driver.implementation": "public-kvstore"
            },
            "year": 2024,
            "month": 4,
            "monthly_limit": null,
            "monthly_usage": 1
        },
        {
            "service": {
                "driver.method": "select"
            },
            "year": 2024,
            "month": 4,
            "monthly_limit": null,
            "monthly_usage": 2
        }
    ],
    "apps": {},
    "app_objects": {}
}

In the example above, specifically, driver.interface and driver.implementation are missing and there is only "driver.method": "select" provided for the hosting driver.

jelveh avatar Apr 01 '24 02:04 jelveh

I am happy to report, this has finally been fixed :)

KernelDeimos avatar Nov 07 '24 05:11 KernelDeimos