From c1d669c627843b79876bedd9a1e631f309901656 Mon Sep 17 00:00:00 2001 From: Anna Shamray Date: Thu, 2 May 2024 17:56:35 +0200 Subject: [PATCH 1/2] :green_heart: update demodata with token model change --- src/objects/fixtures/demodata.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/objects/fixtures/demodata.json b/src/objects/fixtures/demodata.json index f6b20fc3..94250aa8 100644 --- a/src/objects/fixtures/demodata.json +++ b/src/objects/fixtures/demodata.json @@ -772,20 +772,21 @@ }, { "model": "token.tokenauth", - "pk": "cd63e158f3aca276ef284e3033d020a22899c728", + "pk": 1, "fields": { "contact_person": "test", "email": "let@me.test", "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" } @@ -794,7 +795,7 @@ "model": "token.permission", "pk": 2, "fields": { - "token_auth": "cd63e158f3aca276ef284e3033d020a22899c728", + "token_auth": 1, "object_type": 1, "mode": "read_and_write" } From 7fc6ef4c5ccbc50958adf96d7e1b45b2e42fbd7f Mon Sep 17 00:00:00 2001 From: Anna Shamray Date: Thu, 2 May 2024 17:59:52 +0200 Subject: [PATCH 2/2] :construction: temporarily comment loading fixtures until update fixtures are uploaded into the docker image on docker hub --- .github/workflows/quick-start.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/quick-start.yml b/.github/workflows/quick-start.yml index e3cf9353..53fb98f3 100644 --- a/.github/workflows/quick-start.yml +++ b/.github/workflows/quick-start.yml @@ -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 admin@admin.nl --no-input - name: Check main page