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

Reconstruct full GitHub URL for collections #964

Merged
merged 1 commit into from
Apr 21, 2016

Conversation

jimallman
Copy link
Member

We can safely convert between a download URL on GitHub (currently provided as the collection's external_url) and a "full" URL to the collection blob and its history. Addresses #871.

N.B. that we might instead choose to redefine all "public" or "external" URLs in peyotl's documents, if we'd always prefer to show the richer GitHub view. Or we might distinguish between the two, if we can agree on suitable property names, perhaps doc.download_url (looks like this) versus doc.history_url (looks like this).

We can safely convert between download URLs on GitHub and "full" URLs to
the collection blob and its history. Addresses #871.
@jimallman
Copy link
Member Author

The simple fix above (munging the download URL) is working now on devtree.

@kcranston
Copy link
Member

This is fine to me as a temporary solution. I've made a separate issue in peyotl for the question of having explicit view URLs for studies and collections.

@kcranston kcranston merged commit 6ed8032 into master Apr 21, 2016
@kcranston kcranston deleted the munge-full-github_urls branch April 21, 2016 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants