-
Notifications
You must be signed in to change notification settings - Fork 56
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
Endpoint - Contributors #228
Comments
We discussed that the github API was good enough for now for backend; Let's see if we change our mind. CC @Maijin |
@Noezor So we would fetch the GitHub API for each repo (this one, front, ios and android), with a section for each one? What about people which helped but are not in GitHub contributions? What about the full name and the detail text (role) for each person? Here is how we plan to show it on the iOS side, so you can see. Current data is hardcoded in the app for development purpose. |
Yes I think that may be good to use Github API for every repository as it would cover most contributors and eliminate the need for manual labour. The picture can easily be fetched via the API as well. For people missing as contributors we will need to figure out a different way but I checked and It seems that all the reviewers have made at least 1 commit. (But I may missed one) |
@Maijin Yes but as I said in my last message, this does not give the Full Name and Role in the project |
Generating a JSON file with contributors, fetched from Github API requires some extra work, but nothing too complicated. It's true that it's not really the task of the scraper, but a small python file that takes care of that and refreshes the list of contributors to send it to the data-auto branch doesn't seem to be an issue for me. I can handle it if you want |
The Fullname is available here in the API: https://api.github.com/users/Floby (this URL is given in the first endpoint) |
FYI, contributors to the project (including non devs) can be accessed here : https://docs.google.com/spreadsheets/d/17Fky1Fs-6dKP7xGigSrSB9McEyQxepRSyMF5Dn5S5lg/edit?usp=drive_web&ouid=116774225944385293061 Note that Spreadsheet can be exported as JSON here : https://spreadsheets.google.com/feeds/cells/17Fky1Fs-6dKP7xGigSrSB9McEyQxepRSyMF5Dn5S5lg/1/public/full?alt=json |
We might be able to create a static file by hand and serve it as |
It seems the spreadsheet can't be edited, I can't add my info in it. |
@aureliancnx go in "Presentez-vous' on mattermost |
Je pense on va pouvoir fermer cette issue car on utilise maintenant le Google Spreadsheet centralisé |
@Maijin Du coup on se base tous (front/ios/android) sur ce fichier ? On ne le remap pas sur le back avec un format plus simple ? (pour trier en sections par team par exemple) |
Même si j'ai fait un petit google app script pour exporter les infos, je pense qu'un JSON en direct dans un repository serait tout autant simple à maintenir/éditer |
@fcamblor En effet, si on garde un fichier static servit comme |
du coup pour l'instant j'ai un peu tout mis en bazar dans la ressource :) |
@Floby Parfait, je test ça dans l'app iOS ce weekend |
Ça fonctionne sur iOS, ça fonctionne aussi sur le site. Je close l'issue, l'endpoint est ready ! |
An endpoint to get the list of all contributors.
A GitHub endpoint exists, but some contributors might not be there if they did not commit to the repo (https://api.github.com/repos/CovidtrackerFR/vitemadose/contributors)
Example of JSON output that would be given by this endpoint: (light and easy to manipulate)
Can be a static JSON file, edited by hand, served by the API.
The text was updated successfully, but these errors were encountered: