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

💚 update demodata with token model change #398

Merged
merged 2 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/quick-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
run: docker-compose -f docker-compose-qs.yml up -d
- name: Wait until DB container starts
run: sleep 10
- name: Load fixtures
run: docker-compose -f docker-compose-qs.yml exec -T web src/manage.py loaddata demodata
# TODO uncomment when correct fixtures are uploaded into dockerhub inside docker image
# - name: Load fixtures
# run: docker-compose -f docker-compose-qs.yml exec -T web src/manage.py loaddata demodata
- name: Create superuser
run: docker-compose -f docker-compose-qs.yml exec -T web src/manage.py createsuperuser --username admin --email [email protected] --no-input
- name: Check main page
Expand Down
9 changes: 5 additions & 4 deletions src/objects/fixtures/demodata.json
Original file line number Diff line number Diff line change
Expand Up @@ -772,20 +772,21 @@
},
{
"model": "token.tokenauth",
"pk": "cd63e158f3aca276ef284e3033d020a22899c728",
"pk": 1,
"fields": {
"contact_person": "test",
"email": "[email protected]",
"organization": "",
"last_modified": "2020-12-23T11:43:16.820Z",
"created": "2020-12-22T16:27:00.751Z"
"created": "2020-12-22T16:27:00.751Z",
"token": "cd63e158f3aca276ef284e3033d020a22899c728"
}
},
{
"model": "token.permission",
"pk": 1,
"fields": {
"token_auth": "cd63e158f3aca276ef284e3033d020a22899c728",
"token_auth": 1,
"object_type": 2,
"mode": "read_and_write"
}
Expand All @@ -794,7 +795,7 @@
"model": "token.permission",
"pk": 2,
"fields": {
"token_auth": "cd63e158f3aca276ef284e3033d020a22899c728",
"token_auth": 1,
"object_type": 1,
"mode": "read_and_write"
}
Expand Down
Loading