Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR for the relational db feature.
To test it, use the following steps:
Start Postgres
docker run -it --rm --network host -e POSTGRES_USER=openslides -e POSTGRES_PASSWORD=openslides -e DATABASE_NAME=openslides postgres
Add the schema
You have to be in openslides-meta/dev/scripts
DATABASE_HOST=localhost DATABASE_PORT=5432 DATABASE_USER=openslides DATABASE_NAME=openslides sh apply_db_schema.sh
Build and start the autoupdate-service
OPENSLIDES_PUBLIC_ACCESS_ONLY
deactivates the connection to the vote-serviceOPENSLIDES_DEVELOPMENT
uses the default secred keysAUTH_FAKE
deactivates the connection to the vote serive (with the redis logout messagebus) and uses user id 1 for all connectionsConnect to database
psql -h localhost -p 5432 -U openslides -d openslides
Create User in database
INSERT INTO "user" (id, username) values (1,'hugo');
5a. Make User a superadmin
UPDATE "user" SET organization_management_level='superadmin' WHERE id=1;
curl localhost:9012/system/autoupdate?k=user/1/username
Currently, this is an early stage. Lots of stuff will probably not work