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

Support datasets linked via submodules #76

Open
Floppy opened this issue Apr 5, 2016 · 9 comments
Open

Support datasets linked via submodules #76

Floppy opened this issue Apr 5, 2016 · 9 comments

Comments

@Floppy
Copy link

Floppy commented Apr 5, 2016

An idea: load dataset info from submodules, so that metadata can be loaded from a separate repository, not repeated in the JKAN one. Would be useful if combined with loading from things like datapackage (as mentioned in #72). Means that releasing a new version of a package involves a submodule update, but that's not too bad and no harder than updating the current item. I've done dataset and collection loading from submodules in a previous project, so it's certainly possible...

@timwis
Copy link
Owner

timwis commented Apr 6, 2016

Hey @Floppy, that's a clever idea! Do you happen to know whether Github Pages' built-in Jekyll builder supports submodules?

EDIT: It doesn't look like GitHub's API lets you alter submodules :-/ Not sure how a user would do that outside of the command line?

@Floppy
Copy link
Author

Floppy commented Apr 6, 2016

It does indeed - I've used it in a couple of sites now, including pulling into _data and collections.

@timwis
Copy link
Owner

timwis commented Apr 6, 2016

Wow - okay, I'll have to try this out!

@timwis
Copy link
Owner

timwis commented Apr 6, 2016

Say, @Floppy, would you mind throwing together an example? I'm having a hard time visualizing it (and it doesn't help that I seem to forget how to use gitmodules every time all over again).

Also just realized that it may be okay that GitHub's API doesn't let you alter submodules, since, as I understand it, you could do it by just editing the .gitmodules file like you would any other file. Could be something here!

@Floppy
Copy link
Author

Floppy commented Apr 6, 2016

See http://github.com/somethingnewuk/somethingnewuk.github.io for my experiments so far...

@waldoj
Copy link

waldoj commented Apr 6, 2016

This is a really clever idea!

@Floppy
Copy link
Author

Floppy commented Apr 7, 2016

There is a bit more of a writeup of my experiments with submodules and datafiles here on the Jekyll forum.

@Floppy
Copy link
Author

Floppy commented Apr 7, 2016

Oh, and one other thing. We've got a tool called Bimble which is a script designed to update Gemfiles; it's on my list to extend it to submodules (and launch it as a CI-style service), meaning it would be easy to keep the references up to date.

@timwis
Copy link
Owner

timwis commented Apr 9, 2016

@Floppy, this is really clever and might be a game changer. I'd love to talk through this a bit in the gitter next time you're about.

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

No branches or pull requests

3 participants