Structured fields, updated repos
This commit is contained in:
parent
4d8a53513a
commit
8bf3b3df6b
@ -6,5 +6,5 @@ cd "$(dirname $0)"
|
|||||||
# first argument is the example data
|
# first argument is the example data
|
||||||
DATA=$(cat ${1:-../docs/example-data.json})
|
DATA=$(cat ${1:-../docs/example-data.json})
|
||||||
./clear-ds.sh
|
./clear-ds.sh
|
||||||
docker-compose -f ../docker-compose.yml -f ../docker-compose.dev.yml exec datastore-writer \
|
docker-compose -f ../docker/docker-compose.dev.yml exec datastore-writer \
|
||||||
bash -c "source export-database-variables.sh; echo '$DATA' > /data.json; export DATASTORE_INITIAL_DATA_FILE=/data.json; python cli/create_initial_data.py"
|
bash -c "source export-database-variables.sh; echo '$DATA' > /data.json; export DATASTORE_INITIAL_DATA_FILE=/data.json; python cli/create_initial_data.py"
|
||||||
|
@ -10,6 +10,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ../openslides-datastore-service/shared/shared:/app/shared
|
- ../openslides-datastore-service/shared/shared:/app/shared
|
||||||
- ../openslides-datastore-service/reader/reader:/app/reader
|
- ../openslides-datastore-service/reader/reader:/app/reader
|
||||||
|
ports:
|
||||||
|
- 9010:9010
|
||||||
datastore-writer:
|
datastore-writer:
|
||||||
image: openslides-datastore-writer-dev
|
image: openslides-datastore-writer-dev
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -24,6 +26,8 @@ services:
|
|||||||
- DATASTORE_ENABLE_DEV_ENVIRONMENT=1
|
- DATASTORE_ENABLE_DEV_ENVIRONMENT=1
|
||||||
- COMMAND=create_initial_data
|
- COMMAND=create_initial_data
|
||||||
- DATASTORE_INITIAL_DATA_FILE=https://raw.githubusercontent.com/OpenSlides/OpenSlides/openslides4-dev/docs/example-data.json
|
- DATASTORE_INITIAL_DATA_FILE=https://raw.githubusercontent.com/OpenSlides/OpenSlides/openslides4-dev/docs/example-data.json
|
||||||
|
ports:
|
||||||
|
- 9011:9011
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:11
|
image: postgres:11
|
||||||
environment:
|
environment:
|
||||||
@ -51,6 +55,8 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- datastore-reader
|
- datastore-reader
|
||||||
- message-bus
|
- message-bus
|
||||||
|
environment:
|
||||||
|
- AUTH=fake
|
||||||
env_file: services.env
|
env_file: services.env
|
||||||
volumes:
|
volumes:
|
||||||
- ../openslides-autoupdate-service/cmd:/root/cmd
|
- ../openslides-autoupdate-service/cmd:/root/cmd
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
"first_name": "",
|
"first_name": "",
|
||||||
"last_name": "Administrator",
|
"last_name": "Administrator",
|
||||||
"is_active": true,
|
"is_active": true,
|
||||||
"is_committee": false,
|
"is_physical_person": true,
|
||||||
"password": "316af7b2ddc20ead599c38541fbe87e9a9e4e960d4017d6e59de188b41b2758flD5BVZAZ8jLy4nYW9iomHcnkXWkfk3PgBjeiTSxjGG7+fBjMBxsaS1vIiAMxYh+K38l0gDW4wcP+i8tgoc4UBg==",
|
"password": "316af7b2ddc20ead599c38541fbe87e9a9e4e960d4017d6e59de188b41b2758flD5BVZAZ8jLy4nYW9iomHcnkXWkfk3PgBjeiTSxjGG7+fBjMBxsaS1vIiAMxYh+K38l0gDW4wcP+i8tgoc4UBg==",
|
||||||
"default_password": "admin",
|
"default_password": "admin",
|
||||||
"about_me": "",
|
"about_me": "",
|
||||||
@ -46,34 +46,25 @@
|
|||||||
|
|
||||||
"group_$_ids": ["1"],
|
"group_$_ids": ["1"],
|
||||||
"group_$1_ids": [2],
|
"group_$1_ids": [2],
|
||||||
"group_1_ids": [2],
|
|
||||||
"speaker_$_ids": ["1"],
|
"speaker_$_ids": ["1"],
|
||||||
"speaker_$1_ids": [1, 5, 6, 12],
|
"speaker_$1_ids": [1, 5, 6, 12],
|
||||||
"speaker_1_ids": [1, 5, 6, 12],
|
|
||||||
"personal_note_$_ids": ["1"],
|
"personal_note_$_ids": ["1"],
|
||||||
"personal_note_$1_ids": [1],
|
"personal_note_$1_ids": [1],
|
||||||
"personal_note_1_ids": [1],
|
|
||||||
"supported_motion_$_ids": [],
|
"supported_motion_$_ids": [],
|
||||||
"submitted_motion_$_ids": ["1"],
|
"submitted_motion_$_ids": ["1"],
|
||||||
"submitted_motion_$1_ids": [1, 2, 3, 4],
|
"submitted_motion_$1_ids": [1, 2, 3, 4],
|
||||||
"submitted_motion_1_ids": [1, 2, 3, 4],
|
|
||||||
"motion_poll_voted_$_ids": [],
|
"motion_poll_voted_$_ids": [],
|
||||||
"motion_vote_$_ids": [],
|
"motion_vote_$_ids": [],
|
||||||
"assignment_candidate_$_ids": ["1"],
|
"assignment_candidate_$_ids": ["1"],
|
||||||
"assignment_candidate_$1_ids": [1],
|
"assignment_candidate_$1_ids": [1],
|
||||||
"assignment_candidate_1_ids": [1],
|
|
||||||
"assignment_poll_voted_$_ids": ["1"],
|
"assignment_poll_voted_$_ids": ["1"],
|
||||||
"assignment_poll_voted_$1_ids": [3],
|
"assignment_poll_voted_$1_ids": [3],
|
||||||
"assignment_poll_voted_1_ids": [3],
|
|
||||||
"assignment_option_$_ids": ["1"],
|
"assignment_option_$_ids": ["1"],
|
||||||
"assignment_option_$1_ids": [1, 2],
|
"assignment_option_$1_ids": [1, 2],
|
||||||
"assignment_option_1_ids": [1, 2],
|
|
||||||
"assignment_vote_$_ids": ["1"],
|
"assignment_vote_$_ids": ["1"],
|
||||||
"assignment_vote_$1_ids": [4],
|
"assignment_vote_$1_ids": [4],
|
||||||
"assignment_vote_1_ids": [4],
|
|
||||||
"assignment_delegated_vote_$_ids": ["1"],
|
"assignment_delegated_vote_$_ids": ["1"],
|
||||||
"assignment_delegated_vote_$1_ids": [4],
|
"assignment_delegated_vote_$1_ids": [4]
|
||||||
"assignment_delegated_vote_1_ids": [4]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -82,7 +73,7 @@
|
|||||||
"first_name": "a",
|
"first_name": "a",
|
||||||
"last_name": "",
|
"last_name": "",
|
||||||
"is_active": true,
|
"is_active": true,
|
||||||
"is_committee": false,
|
"is_physical_person": true,
|
||||||
"password": "316af7b2ddc20ead599c38541fbe87e9a9e4e960d4017d6e59de188b41b2758fDB3tv5HcCtPRREt7bPGqerTf1AbmoKXt/fVFkLY4znDRh2Yy0m3ZjXD0nHI8oa6KrGlHH/cvysfvf8i2fWIzmw==",
|
"password": "316af7b2ddc20ead599c38541fbe87e9a9e4e960d4017d6e59de188b41b2758fDB3tv5HcCtPRREt7bPGqerTf1AbmoKXt/fVFkLY4znDRh2Yy0m3ZjXD0nHI8oa6KrGlHH/cvysfvf8i2fWIzmw==",
|
||||||
"default_password": "a",
|
"default_password": "a",
|
||||||
"about_me": "",
|
"about_me": "",
|
||||||
@ -107,10 +98,8 @@
|
|||||||
|
|
||||||
"group_$_ids": ["1"],
|
"group_$_ids": ["1"],
|
||||||
"group_$1_ids": [6],
|
"group_$1_ids": [6],
|
||||||
"group_1_ids": [6],
|
|
||||||
"speaker_$_ids": ["1"],
|
"speaker_$_ids": ["1"],
|
||||||
"speaker_$1_ids": [2, 3, 7, 10, 11, 13],
|
"speaker_$1_ids": [2, 3, 7, 10, 11, 13],
|
||||||
"speaker_1_ids": [2, 3, 7, 10, 11, 13],
|
|
||||||
"personal_note_$_ids": [],
|
"personal_note_$_ids": [],
|
||||||
"supported_motion_$_ids": [],
|
"supported_motion_$_ids": [],
|
||||||
"submitted_motion_$_ids": [],
|
"submitted_motion_$_ids": [],
|
||||||
@ -118,11 +107,9 @@
|
|||||||
"motion_vote_$_ids": [],
|
"motion_vote_$_ids": [],
|
||||||
"assignment_candidate_$_ids": ["1"],
|
"assignment_candidate_$_ids": ["1"],
|
||||||
"assignment_candidate_$1_ids": [3, 5],
|
"assignment_candidate_$1_ids": [3, 5],
|
||||||
"assignment_candidate_1_ids": [3, 5],
|
|
||||||
"assignment_poll_voted_$_ids": [],
|
"assignment_poll_voted_$_ids": [],
|
||||||
"assignment_option_$_ids": ["1"],
|
"assignment_option_$_ids": ["1"],
|
||||||
"assignment_option_$1_ids": [6],
|
"assignment_option_$1_ids": [6],
|
||||||
"assignment_option_1_ids": [6],
|
|
||||||
"assignment_vote_$_ids": []
|
"assignment_vote_$_ids": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -132,7 +119,7 @@
|
|||||||
"first_name": "b",
|
"first_name": "b",
|
||||||
"last_name": "",
|
"last_name": "",
|
||||||
"is_active": true,
|
"is_active": true,
|
||||||
"is_committee": false,
|
"is_physical_person": true,
|
||||||
"password": "316af7b2ddc20ead599c38541fbe87e9a9e4e960d4017d6e59de188b41b2758fIxDxvpkn6dDLRxT9DxJhZ/f04AL2oK2beICRFobSw53CI93U+dfN+w+NaL7BvrcR4JWuMj9NkH4dVjnnI0YTkg==",
|
"password": "316af7b2ddc20ead599c38541fbe87e9a9e4e960d4017d6e59de188b41b2758fIxDxvpkn6dDLRxT9DxJhZ/f04AL2oK2beICRFobSw53CI93U+dfN+w+NaL7BvrcR4JWuMj9NkH4dVjnnI0YTkg==",
|
||||||
"default_password": "jKwSLGCk",
|
"default_password": "jKwSLGCk",
|
||||||
"about_me": "",
|
"about_me": "",
|
||||||
@ -158,21 +145,17 @@
|
|||||||
"group_$_ids": [],
|
"group_$_ids": [],
|
||||||
"speaker_$_ids": ["1"],
|
"speaker_$_ids": ["1"],
|
||||||
"speaker_$1_ids": [4, 8, 9],
|
"speaker_$1_ids": [4, 8, 9],
|
||||||
"speaker_1_ids": [4, 8, 9],
|
|
||||||
"personal_note_$_ids": [],
|
"personal_note_$_ids": [],
|
||||||
"supported_motion_$_ids": ["1"],
|
"supported_motion_$_ids": ["1"],
|
||||||
"supported_motion_$1_ids": [3],
|
"supported_motion_$1_ids": [3],
|
||||||
"supported_motion_1_ids": [3],
|
|
||||||
"submitted_motion_$_ids": [],
|
"submitted_motion_$_ids": [],
|
||||||
"motion_poll_voted_$_ids": [],
|
"motion_poll_voted_$_ids": [],
|
||||||
"motion_vote_$_ids": [],
|
"motion_vote_$_ids": [],
|
||||||
"assignment_candidate_$_ids": ["1"],
|
"assignment_candidate_$_ids": ["1"],
|
||||||
"assignment_candidate_$1_ids": [2, 4],
|
"assignment_candidate_$1_ids": [2, 4],
|
||||||
"assignment_candidate_1_ids": [2, 4],
|
|
||||||
"assignment_poll_voted_$_ids": [],
|
"assignment_poll_voted_$_ids": [],
|
||||||
"assignment_option_$_ids": ["1"],
|
"assignment_option_$_ids": ["1"],
|
||||||
"assignment_option_$1_ids": [3, 4, 5],
|
"assignment_option_$1_ids": [3, 4, 5],
|
||||||
"assignment_option_1_ids": [3, 4, 5],
|
|
||||||
"assignment_vote_$_ids": []
|
"assignment_vote_$_ids": []
|
||||||
}],
|
}],
|
||||||
"role": [
|
"role": [
|
||||||
@ -335,7 +318,6 @@
|
|||||||
|
|
||||||
"logo_$_id": ["web_header"],
|
"logo_$_id": ["web_header"],
|
||||||
"logo_$web_header_id": 3,
|
"logo_$web_header_id": 3,
|
||||||
"logo_web_header_id": 3,
|
|
||||||
"font_$_id": [],
|
"font_$_id": [],
|
||||||
|
|
||||||
"committee_id": 1,
|
"committee_id": 1,
|
||||||
@ -2231,7 +2213,6 @@
|
|||||||
|
|
||||||
"used_as_logo_$_in_meeting_id": ["web_header"],
|
"used_as_logo_$_in_meeting_id": ["web_header"],
|
||||||
"used_as_logo_$web_header_in_meeting_id": 1,
|
"used_as_logo_$web_header_in_meeting_id": 1,
|
||||||
"used_as_logo_web_header_in_meeting_id": 1,
|
|
||||||
"used_as_font_$_in_meeting_id": []
|
"used_as_font_$_in_meeting_id": []
|
||||||
}],
|
}],
|
||||||
"projector": [
|
"projector": [
|
||||||
|
@ -85,7 +85,9 @@ user:
|
|||||||
first_name: string
|
first_name: string
|
||||||
last_name: string
|
last_name: string
|
||||||
is_active: boolean
|
is_active: boolean
|
||||||
is_committee: boolean
|
is_physical_person:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
password: string
|
password: string
|
||||||
default_password: string
|
default_password: string
|
||||||
about_me: HTMLStrict
|
about_me: HTMLStrict
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 655cbd4bd8397ff4a0665c549283e6e71e5ea123
|
Subproject commit 39a414830b707898ad8b825a68531cf454c204b5
|
@ -1 +1 @@
|
|||||||
Subproject commit 12af349d2d90246d3492939278d09872c2f40f44
|
Subproject commit b53d65b2da1eb998f8ccdd2d3149e197022acc99
|
@ -1 +1 @@
|
|||||||
Subproject commit 9938ed0e73793f98aac2d2d5ef246f2301e85855
|
Subproject commit 04e44e675388d54ccc7f4d91d3f4809750bc7aba
|
@ -1 +1 @@
|
|||||||
Subproject commit cde0f50e56028b0724cc6139b0caaa4bd045bb89
|
Subproject commit d6f51bd8c90ccbe932ca41b994a2e708364686f1
|
Loading…
Reference in New Issue
Block a user