Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish should upload the dat metadata to the registry #803

Closed
okdistribute opened this issue Jun 9, 2017 · 2 comments · Fixed by #812
Closed

Publish should upload the dat metadata to the registry #803

okdistribute opened this issue Jun 9, 2017 · 2 comments · Fixed by #812

Comments

@okdistribute
Copy link
Collaborator

So even if the content isn't available, we are caching the metadata contents when people publish. Otherwise, if people publish but forget to share, it just displays an empty 'loading' screen.

@joehand
Copy link
Collaborator

joehand commented Jun 14, 2017

Is there some way to do that over the registry API?

I can't remember if publishing automatically adds it to hypercore-archiver, but seems like something like that would be the way to do it. Then we have to figure out how to monitor progress on the remote.

@okdistribute
Copy link
Collaborator Author

okdistribute commented Jun 14, 2017

Yeah, I think maybe there could be a response from publish that contains a variety of error and success codes which the client could parse. One of those could be 'dat not found'. So the publish process would simply have to make sure the dat is hosting over the network and then parse the return code.

Also if we're going to refactor the publishing part we could also implement paul's scheme for publishing: https://github.com/datprotocol/hypercloud/blob/master/docs/flows/dat-ownership-proof.md

@joehand joehand modified the milestone: 13.7 Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants