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

Allow user to select and use existing repo rather than create new one for each data set #705

Open
olivierthereaux opened this issue Jan 30, 2018 · 0 comments

Comments

@olivierthereaux
Copy link
Contributor

Summary

Octopub creates a repository for each data set. Give user the option to publish data set to an existing repo so as to keep number of repo in the user's account in check.

Context

Currently, each time a user uploads and publishes a new data set, a new repository is created for the data set, complete with Jekyll files. This is somewhat undesirable as it means that a user publishing a number of sets would end up with a lot of repository. While there are no hard limits on public repositories on GH, it makes searching and management of one's repos cumbersome.

My understanding of Octopub archeology tells me that this decision went as follows:

  • The repo has to be writable by the user (as octopub publishes on their behalf) and publishing to a repo owned by the user makes sense. Also, legal/license considerations.
  • It is probably easier to create a blank repo and write all files to it than deal with potential conflicts when writing to an existing repo (name clash, different version of Jekyll files)
  • Publish privately #204 was certainly a factor - if some datasets are going to require a private repo and others a public repo, why not simply keep each set in a different repo.

Why change

  • Because Publish privately #204 is essentially mooted by the new paradigm of pre-publish/publish. The ability to write to a private repo is on its way out.
  • Because it would offer the user a welcome additional degree of control of how the data collections are organised.

How to do it

TBD. I can envision:

  • a "use existing repository" option control at the end of the publishing flow
  • ... which may require some checking of which repos are already octopub'd, so as not to suggest writing into a non-octopub repo?
  • need to check whether API allows repository listing/traversal. Most likely so.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant