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

Automatically back up issues #1

Closed
fsteeg opened this Issue Nov 30, 2015 · 6 comments

Comments

Projects
None yet
2 participants
@fsteeg
Member

fsteeg commented Nov 30, 2015

In our get together at SWIB15 (see [1]) we decided to use the issue tracker in this repo as our central place for all kinds of documentation. Since issues are not part of the Git repo, we decided to set up automatic backups for the issues using the GitHub API.

[1] http://etherpad.lobid.org/p/swib15-metafacture

@fsteeg fsteeg self-assigned this Nov 30, 2015

@fsteeg

This comment has been minimized.

Show comment
Hide comment
@fsteeg

fsteeg Nov 30, 2015

Member

Set up automatic backups, available at:
http://lobid.org/events/metafacture/backup

It's basically a copy of the response to this GitHub API call:
https://api.github.com/repos/culturegraph/metafacture-documentation/issues?state=all

A backup is created on any GitHub issues event, using a webhook posting to:
http://lobid.org/events/metafacture

That service is implemented in:
https://github.com/hbz/events (see hbz/events#4 for some implementation details).

Member

fsteeg commented Nov 30, 2015

Set up automatic backups, available at:
http://lobid.org/events/metafacture/backup

It's basically a copy of the response to this GitHub API call:
https://api.github.com/repos/culturegraph/metafacture-documentation/issues?state=all

A backup is created on any GitHub issues event, using a webhook posting to:
http://lobid.org/events/metafacture

That service is implemented in:
https://github.com/hbz/events (see hbz/events#4 for some implementation details).

@guenterh

This comment has been minimized.

Show comment
Hide comment
@guenterh

guenterh Dec 1, 2015

Collaborator

@fsteeg
Thanks Fabian for the setup of this backup. I haven't had the time to look into the details - it's interesting to use the Git API with events. I have heard of it but haven't used it so far.

Related to the documentation itself:
Hopefully I can start to put some first documentation as a starter into the repo of our project work done so far this week. Last week it wasn't possible.

I would like to add additional Github accounts of other "Metafactures" as team-members for this repo. But as far as I can see you have already write permissions for the whole Culturegraph namespace?

Best wishes to Cologne
Günter

Collaborator

guenterh commented Dec 1, 2015

@fsteeg
Thanks Fabian for the setup of this backup. I haven't had the time to look into the details - it's interesting to use the Git API with events. I have heard of it but haven't used it so far.

Related to the documentation itself:
Hopefully I can start to put some first documentation as a starter into the repo of our project work done so far this week. Last week it wasn't possible.

I would like to add additional Github accounts of other "Metafactures" as team-members for this repo. But as far as I can see you have already write permissions for the whole Culturegraph namespace?

Best wishes to Cologne
Günter

@fsteeg

This comment has been minimized.

Show comment
Hide comment
@fsteeg

fsteeg Dec 2, 2015

Member

@guenterh I have admin access to this repo for setting up and testing the webhook (for the backups). I don't have write permissions or admin access to the other Culturegraph repos. Perhaps @cboehme can give you admin access for this repo to add other members or add them for you.

Member

fsteeg commented Dec 2, 2015

@guenterh I have admin access to this repo for setting up and testing the webhook (for the backups). I don't have write permissions or admin access to the other Culturegraph repos. Perhaps @cboehme can give you admin access for this repo to add other members or add them for you.

@guenterh

This comment has been minimized.

Show comment
Hide comment
@guenterh

guenterh Dec 2, 2015

Collaborator

@fsteeg Christoph already granted admin access to me for the doc repository. I'm going to add additional users soon, Günter
@cboehme fyi

Collaborator

guenterh commented Dec 2, 2015

@fsteeg Christoph already granted admin access to me for the doc repository. I'm going to add additional users soon, Günter
@cboehme fyi

@fsteeg fsteeg reopened this Dec 2, 2015

@fsteeg

This comment has been minimized.

Show comment
Hide comment
@fsteeg

fsteeg Dec 2, 2015

Member

The current backup contains the issues only, without comments. We need to include data like:

https://api.github.com/repos/culturegraph/metafacture-documentation/issues/1/comments

Member

fsteeg commented Dec 2, 2015

The current backup contains the issues only, without comments. We need to include data like:

https://api.github.com/repos/culturegraph/metafacture-documentation/issues/1/comments

@fsteeg

This comment has been minimized.

Show comment
Hide comment
@fsteeg

fsteeg Dec 2, 2015

Member

The comments are now backed up in a comments_data field for each issue.

See: http://lobid.org/events/metafacture/backup

Member

fsteeg commented Dec 2, 2015

The comments are now backed up in a comments_data field for each issue.

See: http://lobid.org/events/metafacture/backup

@fsteeg fsteeg closed this Dec 2, 2015

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