Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

[User-Story] Pinned content #10

Closed
2 tasks done
holisticode opened this issue May 28, 2019 · 4 comments
Closed
2 tasks done

[User-Story] Pinned content #10

holisticode opened this issue May 28, 2019 · 4 comments
Assignees
Labels
Milestone

Comments

@holisticode
Copy link
Contributor

holisticode commented May 28, 2019

Rationale

Until swarm is stable, it would be of great benefit to dapps if they can count on content being available from the local node at all times.

Owner

@justelad

Stakeholder Point of Contact

Gregor Žavcer & Zahoor Mohamed

Dependencies

Description

As a user, I want to upload content to my local node so that it is available at all times.
There should be HTTP APIs to do pinning operations

  1. POST http://127.0.0.1:8500/bzz-pin:/ to pin an already existing swarm collection
    2)POST http://127.0.0.1:8500/bzz-pin:/?raw=true to pin a existing RAW file
    3)DELETE http://127.0.0.1:8500/bzz-pin:/ to unpin the hash
  2. GET http://127.0.0.1:8500/bzz-pin:/ to list all the pinned files, their size, the pincounter.

Context

The pinned content will be made available through the localstore infrastructure. This will require to update the setup of indexes and APIs to access, maintain and retrieve pinned content.

Issues

Acceptance criteria

Upload a RAW file and pin it. The file should be available at all times (for acceptance: 24hrs)
Upload a collection and pin it. The collection should be available at all times (for acceptance: 24hrs)

Proof

Download of the file or collection after 24hrs succeeds.

@acud
Copy link
Member

acud commented May 30, 2019

The task breakdown is as follows:

  1. upload with pin header flag
  2. http interface for bzz-pin for PUT/DELETE for pinning just a hash/ens name
  3. generalise mechanism for restricting localhost for admin functionality
  4. cli interface for get/add/delete pins
  5. traversal for downloading and pinning a hash
  6. implement reference count in localstore
  7. manage pinned content volume in connection with overall swarm volume (i.e. should not interfere with storage for regular purposes)
  8. feed content pinning

this should be broken down into issues and reference this epic

@jmozah
Copy link
Collaborator

jmozah commented May 30, 2019

this should be broken down into issues and reference this epic

Is this okay if we do like this..
1 base issue, 1 for pinning while uploading, 1 issue for adding http interface, 1 for feeds support

@FantasticoFox FantasticoFox changed the title [EPIC] Pinned content [USER-STORY] Pinned content Jul 19, 2019
@FantasticoFox
Copy link
Contributor

This is a user-story in my opinion which serves the 100 GB MVP EPIC #2 so I changed it to be a user-story. After conversations with Datafund, Elad, Zahoor Crt and Gregor technical ownership goes to Zahoor. This is now represented in our board as a userstory in review. We need to work that through next week to ensure it's containing all the elements to be fine (acceptance criteria, tests etc)

@FantasticoFox FantasticoFox added this to the 0.4.5 milestone Jul 19, 2019
@FantasticoFox FantasticoFox changed the title [USER-STORY] Pinned content [User-Story] Pinned content Jul 22, 2019
@acud
Copy link
Member

acud commented Aug 7, 2019

done ✔️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants