Update the GitHub scraping logic to include all topics a repo has, as well as the app data for PRs & users.
Adding the custom DB logic to the export allows a dev to remotely export the final JSON on their local device, connecting to the remote prod/staging DB.
Description
Update the GitHub scraping logic to include all topics a repo has, as well as the app data for PRs & users.
Adding the custom DB logic to the export allows a dev to remotely export the final JSON on their local device, connecting to the remote prod/staging DB.
E.g.
docker-compose exec -e HACKTOBERFEST_DATABASE_HOST=the.hacktoberfest.staging.fqdn -e HACKTOBERFEST_DATABASE_PORT=12345 -e HACKTOBERFEST_DATABASE_NAME=default -e HACKTOBERFEST_DATABASE_USERNAME=dodge -e HACKTOBERFEST_DATABASE_PASSWORD=hunter2 -e HACKTOBERFEST_DATABASE_TIMEOUT=10 -e HACKTOBERFEST_DATABASE_CUSTOM=1 app bundle exec rake export:user_stats
Test process
bundle exec rake github:import_metadata
data
entries inrepo_stats
table, should includetopics
keydata
entries inpr_stats
table, should includeapp
keydata
entries inuser_stats
table, should includeapp
keyRequirements to merge