Skip to content
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

Hard-coded default repos #2771

Open
mhauru opened this issue Apr 24, 2024 · 0 comments
Open

Hard-coded default repos #2771

mhauru opened this issue Apr 24, 2024 · 0 comments

Comments

@mhauru
Copy link
Contributor

mhauru commented Apr 24, 2024

Several source files have hard-coded in them the default repos to get data for, that I assume are used for testing purposes. This makes it hard to start my own instance of Augur that would not download data for these repos immediately as it starts, but rather wait for me to tell it which repos I'm interested in.

I'm not sure I found all instances of this, but here are a few places where the example repos are hard-coded:

COPY augur_data.repo (repo_id, repo_group_id, repo_git, repo_path, repo_name, repo_added, repo_status, repo_type, url, owner_id, description, primary_language, created_at, forked_from, updated_at, repo_archived_date_collected, repo_archived, tool_source, tool_version, data_source, data_collection_date) FROM stdin;

INSERT INTO "augur_data"."repo" ("repo_id", "repo_group_id", "repo_git", "repo_path", "repo_name", "repo_status", "repo_type", "url", "owner_id", "description", "primary_language", "created_at", "forked_from", "updated_at", "tool_source", "tool_version", "data_source", "data_collection_date", "repo_archived", "repo_archived_date_collected") VALUES (25452, 10, 'https://github.com/chaoss/whitepaper', 'github.com/chaoss/', 'whitepaper', 'Complete', '', NULL, NULL, NULL, NULL, NULL, 'Parent not available', NULL, 'CLI', '1.0', 'Git', '2021-04-17 21:40:42', 0, NULL);

25452 10 https://github.com/chaoss/whitepaper \N \N 2021-04-17 21:40:42 New \N \N \N \N \N Parent not available \N \N 0 CLI 1.0 Git 2021-04-17 21:40:42

https://github.com/chaoss/augur/blob/a786ac5a506ffac31931f40c2a58056b7c1f073c/augur/application/schema/repo_load_sample.csv

There may also be other hard-coded test/example cases, that aren't repos, that would probably be better kept in configuration files or as a part of the test suite. I spotted this one about contributors, but there may be others I missed.

11 nan kannayoshihiro@gmail.com KANNA Yoshihiro UTMC 2009-04-17 12:43:58 \N 0 0 \N \N \N \N \N \N kannayoshihiro@gmail.com 2021-01-29 03:56:10+00 74832 nan https://api.github.com/users/nan https://github.com/nan MDQ6VXNlcjc0ODMy https://avatars.githubusercontent.com/u/74832?v=4 https://api.github.com/users/nan/followers https://api.github.com/users/nan/following{/other_user} https://api.github.com/users/nan/gists{/gist_id} https://api.github.com/users/nan/starred{/owner}{/repo} https://api.github.com/users/nan/subscriptions https://api.github.com/users/nan/orgs https://api.github.com/users/nan/repos https://api.github.com/users/nan/events{/privacy} https://api.github.com/users/nan/received_events User false \N \N \N \N \N \N GitHub API Worker 1.0.0 GitHub API 2021-10-28 15:23:46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant