Application Flow

Open
#11 5 comments 1 reaction 2 assignees View on GitHub

@Cleop is already working on this.

Since Feb 19, 2018.

Assessment

This issue has not been assessed yet.

Description

discuss epic

Github App send events

The Github app will send the following events to the server:

  • new installation on repository
  • new issue
  • new comment on issue
  • issue's description edited
  • comment edited

Questions:

Server receive events

The server will receive a post request from the Github App for each Github app webhooks events (see above). The main role of the server is to determine the type of the events, this can be done based on the payload (and often the "action" value of the payload). Then the information of the payload is saved in database and files (see https://github.com/dwyl/github-backup/issues/3#issuecomment-365650695). Once the information is saved the server can add more information on the issue to let the Github users know how to access the backup data.

Questions:

  • Which information needs to be saved in the database, what is the architecture of the Postgres database?
  • What are the information and structure (json?) of the files we want to create?

Add "backup" link to issues

Once a backup of the issue has been created the server will update the issue/comment with a link to the "backup" app

Questions:

  • How to represent the link to the backup app on Github? Edit the issue/comment and add a link at the bottom? Can we apply a template?
  • Should the link be display on the description of the issue and on each comment or only on the issue itself?

See backup

The users of a repository can access the backup of the issues/comments. The application needs to check the permission of the users and then display the information

Questions:

I try to describe the main steps of the flow, some parts need a lot of more details and we can create new issues for them. I am not sure especially on the last two section: how to add and represent the link to the "backup" app on Github issues and how the "backup" app display the information to the users. Let me konw which steps I have missed!

Dominant language
Elixir
Stars
33
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dwyl/github-backup

All issues in dwyl/github-backup

Similar issues

More Elixir issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.