-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3982 from open-formulieren/feature/3688-v2-regist…
…ration [#3688] Add base logic to register submission with v2 options
- Loading branch information
Showing
17 changed files
with
711 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
version: '3.8' | ||
|
||
name: open-zaak | ||
|
||
services: | ||
openzaak-redis: | ||
image: redis:7 | ||
command: ["redis-server", "--appendonly", "yes"] | ||
networks: | ||
- open-forms-dev | ||
|
||
openzaak-db: | ||
image: postgis/postgis:${PG_VERSION:-14-master} | ||
environment: | ||
- POSTGRES_HOST_AUTH_METHOD=trust | ||
volumes: | ||
- ./open-zaak/docker-init-open-zaak-db/:/docker-entrypoint-initdb.d | ||
- open-zaak-db:/var/lib/postgresql/data | ||
networks: | ||
- open-forms-dev | ||
|
||
openzaak-web.local: | ||
image: openzaak/open-zaak:${OPENZAAK_VERSION:-1.11.0} | ||
environment: &openzaak_web_env | ||
- DJANGO_SETTINGS_MODULE=openzaak.conf.docker | ||
- SECRET_KEY=${SECRET_KEY:-fgv=c0hz&tl*8*3m3893@m+1pstrvidc9e^5@fpspmg%cy$15d} | ||
- ALLOWED_HOSTS=openzaak-web.local,localhost | ||
- DB_NAME=openzaak | ||
- DB_USER=openzaak | ||
- DB_HOST=openzaak-db | ||
- IS_HTTPS=no | ||
- CACHE_DEFAULT=openzaak-redis:6379/0 | ||
- CACHE_AXES=openzaak-redis:6379/0 | ||
- SUBPATH=${SUBPATH:-/} | ||
- OPENZAAK_SUPERUSER_USERNAME=admin | ||
- DJANGO_SUPERUSER_PASSWORD=admin | ||
- OPENZAAK_SUPERUSER_EMAIL=admin@localhost | ||
- CELERY_BROKER_URL=redis://openzaak-redis:6379/1 | ||
- CELERY_RESULT_BACKEND=redis://openzaak-redis:6379/1 | ||
- NOTIFICATIONS_DISABLED=true | ||
ports: | ||
- 8003:8000 | ||
volumes: &openzaak_web_volumes | ||
- media:/app/media # Shared media volume to get access to saved OAS files | ||
- private-media:/app/private-media | ||
depends_on: | ||
- openzaak-db | ||
- openzaak-redis | ||
networks: | ||
- open-forms-dev | ||
|
||
celery: | ||
image: openzaak/open-zaak:${OPENZAAK_VERSION:-1.11.0} | ||
environment: *openzaak_web_env | ||
volumes: *openzaak_web_volumes | ||
command: /celery_worker.sh | ||
depends_on: | ||
- openzaak-db | ||
- openzaak-redis | ||
networks: | ||
- open-forms-dev | ||
|
||
volumes: | ||
open-zaak-db: | ||
media: | ||
private-media: | ||
|
||
networks: | ||
open-forms-dev: | ||
name: open-forms-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Open Zaak | ||
|
||
The `docker-compose.open-zaak.yml` compose file is available to run an instance of Open Zaak. | ||
|
||
## docker compose | ||
|
||
Start an instance in your local environment from the parent directory: | ||
|
||
```bash | ||
docker compose -f docker-compose.open-zaak.yml up -d | ||
``` | ||
|
||
This brings up the admin at http://localhost:8003/admin/. | ||
|
||
## Load fixtures | ||
|
||
Before re-recording the related VCR tests, you must load some fixtures: | ||
|
||
```bash | ||
cat open-zaak/fixtures/open_zaak_fixtures.json | docker compose -f docker-compose.open-zaak.yml exec -T openzaak-web.local src/manage.py loaddata --format=json - | ||
``` |
5 changes: 5 additions & 0 deletions
5
docker/open-zaak/docker-init-open-zaak-db/0001-docker-init-open-zaak-db.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE USER openzaak; | ||
CREATE DATABASE openzaak; | ||
GRANT ALL PRIVILEGES ON DATABASE openzaak TO openzaak; | ||
-- On Postgres 15+, connect to the database and grant schema permissions. | ||
-- GRANT USAGE, CREATE ON SCHEMA public TO openzaak; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "openzaak" <<-EOSQL | ||
CREATE EXTENSION postgis; | ||
CREATE EXTENSION pg_trgm; | ||
EOSQL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
[ | ||
{ | ||
"model": "authorizations.applicatie", | ||
"pk": 1, | ||
"fields": { | ||
"uuid": "c2f70b46-14cc-4c22-87ce-31b72b83dd62", | ||
"client_ids": "[\"test_client_id\"]", | ||
"label": "test application", | ||
"heeft_alle_autorisaties": true | ||
} | ||
}, | ||
{ | ||
"model": "vng_api_common.jwtsecret", | ||
"pk": 1, | ||
"fields": { | ||
"identifier": "test_client_id", | ||
"secret": "test_secret_key" | ||
} | ||
}, | ||
{ | ||
"model": "catalogi.catalogus", | ||
"pk": 1, | ||
"fields": { | ||
"_etag": "a7068427bca54eb6f5e23d2b1f9961ff", | ||
"naam": "Test catalog", | ||
"uuid": "bd58635c-793e-446d-a7e0-460d7b04829d", | ||
"domein": "TEST", | ||
"rsin": "000000000", | ||
"contactpersoon_beheer_naam": "Test name", | ||
"contactpersoon_beheer_telefoonnummer": "", | ||
"contactpersoon_beheer_emailadres": "", | ||
"versie": "", | ||
"begindatum_versie": null | ||
} | ||
}, | ||
{ | ||
"model": "catalogi.informatieobjecttype", | ||
"pk": 1, | ||
"fields": { | ||
"_etag": "89c597c58e42b804148e6867c3480ed1", | ||
"datum_begin_geldigheid": "2024-03-19", | ||
"datum_einde_geldigheid": null, | ||
"concept": false, | ||
"uuid": "7a474713-0833-402a-8441-e467c08ac55b", | ||
"omschrijving": "PDF Informatieobjecttype", | ||
"informatieobjectcategorie": "Test category", | ||
"trefwoord": "[]", | ||
"vertrouwelijkheidaanduiding": "openbaar", | ||
"omschrijving_generiek_informatieobjecttype": "", | ||
"omschrijving_generiek_definitie": "", | ||
"omschrijving_generiek_herkomst": "", | ||
"omschrijving_generiek_hierarchie": "", | ||
"omschrijving_generiek_opmerking": "", | ||
"catalogus": 1 | ||
} | ||
}, | ||
{ | ||
"model": "catalogi.informatieobjecttype", | ||
"pk": 2, | ||
"fields": { | ||
"_etag": "89d53439caa01c2f00ab822679e80c7b", | ||
"datum_begin_geldigheid": "2024-03-19", | ||
"datum_einde_geldigheid": null, | ||
"concept": false, | ||
"uuid": "b2d83b94-9b9b-4e80-a82f-73ff993c62f3", | ||
"omschrijving": "CSV Informatieobjecttype", | ||
"informatieobjectcategorie": "Test category", | ||
"trefwoord": "[]", | ||
"vertrouwelijkheidaanduiding": "openbaar", | ||
"omschrijving_generiek_informatieobjecttype": "", | ||
"omschrijving_generiek_definitie": "", | ||
"omschrijving_generiek_herkomst": "", | ||
"omschrijving_generiek_hierarchie": "", | ||
"omschrijving_generiek_opmerking": "", | ||
"catalogus": 1 | ||
} | ||
}, | ||
{ | ||
"model": "catalogi.informatieobjecttype", | ||
"pk": 3, | ||
"fields": { | ||
"_etag": "783e0cef431e02aeb91d56074271d3c6", | ||
"datum_begin_geldigheid": "2024-03-19", | ||
"datum_einde_geldigheid": null, | ||
"concept": false, | ||
"uuid": "531f6c1a-97f7-478c-85f0-67d2f23661c7", | ||
"omschrijving": "Attachment Informatieobjecttype", | ||
"informatieobjectcategorie": "Test category", | ||
"trefwoord": "[]", | ||
"vertrouwelijkheidaanduiding": "openbaar", | ||
"omschrijving_generiek_informatieobjecttype": "", | ||
"omschrijving_generiek_definitie": "", | ||
"omschrijving_generiek_herkomst": "", | ||
"omschrijving_generiek_hierarchie": "", | ||
"omschrijving_generiek_opmerking": "", | ||
"catalogus": 1 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.