Hard-coded default repos
- Dominant language
- Python
- Stars
- 13
- Forks
- 17
- Avg merge
- 6h 59m
- Merged PRs (30d)
- 1
Description
> [!NOTE]
> Migrated from [augurlabs/augur#2771](https://github.com/augurlabs/augur/issues/2771)
> Originally opened by `@mhauru` on 2024-04-24
---
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:
https://github.com/chaoss/augur/blob/a786ac5a506ffac31931f40c2a58056b7c1f073c/augur/application/schema/augur_full.sql#L4689
https://github.com/chaoss/augur/blob/a786ac5a506ffac31931f40c2a58056b7c1f073c/augur/application/schema/alembic/versions/legacy/80.3-sample-data.sql#L1075
https://github.com/chaoss/augur/blob/a786ac5a506ffac31931f40c2a58056b7c1f073c/docker/database/augur-new-schema.sql#L5814
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.
https://github.com/chaoss/augur/blob/a786ac5a506ffac31931f40c2a58056b7c1f073c/augur/application/schema/augur_full.sql#L4360
Contributor guide
Assessment
This issue has not been assessed yet.