Skip to content

Ensure blessed Web UI is pinned  #682

Closed
@lidel

Description

@lidel

Context

We switched to loading Web UI from IPFS in #680.

Blessed CID is hardcoded in extension sources:

https://github.com/ipfs-shipyard/ipfs-companion/blob/1b81a4fac937fff36d8b88f2e48eb4ede6cfb58a/add-on/src/lib/state.js#L27

Problem

@Mikaela noted interesting problem:

Should the webui get automatically pinned or something? I have gc enabled on go-ipfs
I am wondering what happens if I get disconnected for two hours or so, will I lose the webui?

Solution

ipfs-companion should:

  • keep current webuiCid pinned
    • check could happen every time remote API is connected to for the first time in browsing session
  • when webuiCid changes, unpin old version and pin new one

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right nowexp/noviceSomeone with a little familiarity can pick uphelp wantedSeeking public contribution on this issuestatus/readyReady to be worked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions