gitcoinco / gitcoinco/web

New contributor workflow: No test data loaded into `docker-compose` local server

Open
#9,895 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
776
PR merge metrics
No merged PRs in 30d

Description

## The problem

Following [this page on the recommended environment getting started steps](https://docs.gitcoin.co/mk_setup/), I was unable to get any of the test data loaded including grants, and bounties.

Steps to reproduce:

- On a new vm, running Ubuntu focal, confirm docker version:
```
vagrant@ubuntu-focal:~$ docker --version
Docker version 20.10.12, build e91ed57

vagrant@ubuntu-focal:~$ docker-compose --version
docker-compose version 1.25.0, build unknown
```

- Clone repo & execute copying `.env` step
```
vagrant@ubuntu-focal:~$ git clone git@github.com:gitcoinco/web.git
Cloning into 'web'...
...
vagrant@ubuntu-focal:~$ cd web
vagrant@ubuntu-focal:~/web$ cp app/app/local.env app/app/.env
```

- run `docker-compose` to bring up local server
```
vagrant@ubuntu-focal:~/web$ docker-compose up -d --build
...
```

- No grants

![image](https://user-images.githubusercontent.com/23109390/146814638-ad3e7421-6874-4927-b9ba-1eb04ba9d97d.png)

- No bounties

![image](https://user-images.githubusercontent.com/23109390/146814750-c4282d0e-77a2-490f-b7c4-6496d3500caf.png)

## Stuff I tried:
I thought running `make load_initial_data` would make a difference, but nothing, get the same results.

Poking around the Django admin console, it appears that the users were loaded correctly

![image](https://user-images.githubusercontent.com/23109390/146814952-8e29f6c7-a048-497c-a60b-2d9b0a456385.png)

but no data found in the other tables:

![image](https://user-images.githubusercontent.com/23109390/146815017-261eaac5-f1f7-43c8-9556-eab37b8abc89.png)

I didn't see anything in the build logs that would indicate problems with loading the data initially and I don't see any further steps in the setup guide. I'm probably missing something obvious. If so, maybe this is a good chance to update the contributor docs?

### System Info

This happened on both my local desktop running Pop_OS! 21.10 and a fresh Ubuntu Focal VM

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.