Skip to content

Instantly share code, notes, and snippets.

@liam-fitzgerald
Created September 25, 2020 02:24
Show Gist options
  • Save liam-fitzgerald/27be85274318a660f7692347f3a08fcf to your computer and use it in GitHub Desktop.
Save liam-fitzgerald/27be85274318a660f7692347f3a08fcf to your computer and use it in GitHub Desktop.

Sadly due to the nature of the migration from links to graph store, it was not technically feasible to do a seamless migration. Instead, the latest OTA has moved all the link collections into graph-store, as archived graphs. As links now uses a client-server topology, groups should decide amongst themselves who should host the link collections, in order to prevent everybody hosting a different copy. If you would like to host a publically accessible link collection that you were in prior to the OTA, then you must do the following.

Work out what your resource identifier is

In the dojo, run

:graph-store +dbug [%state '~(key by archive)']
> {[entity=~nus name=%posts-853] [entity=~nus name=%music-384]}

Look for the collection that you wish to host and make a note of its identifier. In this example I will use [~nus %music-384]

Work out what your groups identifier is

In the dojo, run

:group-store +dbug [%state '~(key by groups)'] 

{[entity=~bitbet-bolbel %urbit-community]}

Run the restore thread

Next, run the restore thread in the dojo with the resource and groups identifier

-graph-restore [~nus %music-384] 'title' 'description' [~bitbet-bolbel %urbit-community] 'link'
@ngzax
Copy link

ngzax commented Oct 7, 2020

Update... that did eventually work and the link collection became available. I can see it now.

Is there a way to remove from the archive collections you know are dead?

@ngzax
Copy link

ngzax commented Oct 7, 2020

and sorry... another problem... i have a collection that looks like so:

[entity=winter-paches name=%-snow--flake-news-7547] 

dojo won't let me type anything after the %-. help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment