-
Notifications
You must be signed in to change notification settings - Fork 1
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
github_importer.rb could probably benefit from using GraphQL #1
Comments
Hi @bfabio, I want to try to solve this issue but I need the GITHUB_ACCESS_TOKEN to test the ruby script. Any way to obtain it? |
@maurovitale We need to invite you to the organization, so you can create your own token. cc @sebbalex |
Hi @maurovitale I sent you an invitation for the org /italia please accept it. Tnx |
Hi @sebbalex, thx for the invitation I accepted and I'll try to solve this issue. I update you soon! |
Hi @sebbalex @bfabio , some updates about this problem. I'm using the github explorer to interrogate the graphql github endpoint and it's quite easy to obtain the data. I created a ruby test script on the project (that I will integrate to github_importer.rb, once is finished) to test the requests; to do so, I'm using the 'gqli' lib. |
|
github_importer.rb
right now uses the GitHub REST APIs and takes about 2 minutes to complete.We can probably reduce that time by using the GitHub GraphQL APIs instead, especially in the
fetch_teams
andfetch_issues
methods.Context. What's github_importer.rb?
github_importer.rb
is a script that gets executed periodically and it downloads data from GitHub resulting in the following files getting committed to this repo:github_issues.json
, loaded by Javascript at https://developers.italia.it/en/to-do (and https://developers.italia.it/it/cosa-fare)github_teams.yml
,github_members.yml
,github_tech_list.yml
, used by Jekyll in italia/developers.italia.it to build:The text was updated successfully, but these errors were encountered: