Skip to content

Update endpoint for dag size result on app/user updates #603

Open
@walkah

Description

@walkah

Summary

Problem

The fission-server is currently using a deprecated IPFS API to size usage apps and user file systems.

Impact

This means there is incorrect reporting in the database for how much space an app or user is using.

Solution

We should replace the call to the (deprectaed) /api/v0/object/stat endpoint (https://docs.ipfs.io/reference/http/api/#api-v0-object-stat) with a version that is "DAG" aware (that isn't re-counting common blocks in the DAG). The documentation recommends /api/v0/files/stat (but /api/v0/dag/stat might be more appropriate?).

See also: fission-codes/kubo#56

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions