Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
143c37c
Updated services (#6907)
m-schieder May 5, 2025
9b0cd27
Create patchnotes for 4.2.9 (#6908)
rrenkert May 5, 2025
706b044
Updated services (#6911)
m-schieder May 7, 2025
51754c1
Create patchnotes for 4.2.10 (#6913)
rrenkert May 7, 2025
ecde8fa
Updated services (#6915)
m-schieder May 12, 2025
f6c5564
Create patchnotes for 4.2.11 (#6916)
rrenkert May 12, 2025
cb77d44
Updated services (#6919)
m-schieder May 14, 2025
748010f
Updated translations (#6920)
emanuelschuetze May 15, 2025
0322c19
Create patchnotes for 4.2.12 (#6923)
rrenkert May 15, 2025
13df241
Remove milestone from pick-to-staging.yml (#6922)
rrenkert May 16, 2025
60b79e7
Create patchnotes for 4.2.13 (#6925)
rrenkert May 23, 2025
d89f7ce
Updated services (#6928)
Elblinator Jun 4, 2025
7bfe81a
Staging update 20250604
Elblinator Jun 4, 2025
fcd3bb4
Almost works?
Janmtbehrens Jun 5, 2025
f511923
Staging update 20250605
Elblinator Jun 5, 2025
4174d59
Build and Test Action
Janmtbehrens Jun 5, 2025
50ff8cf
Test
Janmtbehrens Jun 5, 2025
439b078
Test #2
Janmtbehrens Jun 5, 2025
f615418
Test #3
Janmtbehrens Jun 5, 2025
82c2910
Auth Test
Janmtbehrens Jun 5, 2025
64dbfac
Merged all Submodules
Janmtbehrens Jun 10, 2025
cc1117c
Fixed production image names and various bugs
Janmtbehrens Jun 10, 2025
3d1ab6f
Small test action fix
Janmtbehrens Jun 10, 2025
3c62d93
Staging update 20250610
Elblinator Jun 10, 2025
cfd8a0a
Staging update 20250611
Elblinator Jun 11, 2025
359d72c
Adjust Workflows
Janmtbehrens Jun 12, 2025
48e3aae
Adjust Workflows #3
Janmtbehrens Jun 12, 2025
6670973
Fetch script update
Janmtbehrens Jun 12, 2025
be17c55
Bump
Janmtbehrens Jun 12, 2025
74cb740
Remove command.sh from some Go Services
Janmtbehrens Jun 16, 2025
fb21a0c
Some more command.sh changes
Janmtbehrens Jun 16, 2025
430c02e
Dockerfile.Dev Workaround
Janmtbehrens Jun 16, 2025
f7c9bd6
Merge with upstream
Janmtbehrens Jun 16, 2025
ef8e3eb
Removing old Dockerfiles
Janmtbehrens Jun 16, 2025
3a4b4a3
Merge remote-tracking branch 'upstream/staging/4.2.14' into all-in-one
Janmtbehrens Jun 16, 2025
12e9b91
Merge with upstream
Janmtbehrens Jun 16, 2025
2192974
Go Update
Janmtbehrens Jun 16, 2025
24b1b52
Create patchnotes for 4.2.14 (#6933)
rrenkert Jun 16, 2025
5d2610d
Merge with main & Workflow check
Janmtbehrens Jun 17, 2025
c98c57c
Final changes
Janmtbehrens Jun 17, 2025
4986664
Create unified and standardized continuous integration workflow for e…
Janmtbehrens Jun 17, 2025
5850e5a
Small fixes, Typos and Standards
Janmtbehrens Jun 17, 2025
12ea9df
Update Submodule References
Janmtbehrens Jun 19, 2025
13d54b8
Bump
Janmtbehrens Jun 19, 2025
4f3775e
Updated services (#6936)
m-schieder Jun 19, 2025
5137be0
Updated Translations. Added nl.po (#6937)
emanuelschuetze Jun 20, 2025
2a2a94d
Adding Build instruction to dev compose file
Janmtbehrens Jun 23, 2025
b9d2ed5
Add Shellcheck Linter
Janmtbehrens Jun 23, 2025
e40c930
Lint scripts via Shellcheck
Janmtbehrens Jun 23, 2025
d26552f
More linting fixes
Janmtbehrens Jun 23, 2025
2050f1d
Bump
Janmtbehrens Jun 24, 2025
4d76a92
Bump
Janmtbehrens Jun 24, 2025
be11683
Bump
Janmtbehrens Jun 26, 2025
ba1fe0a
PR fixes
Janmtbehrens Jun 26, 2025
0a93526
PR fixes #2
Janmtbehrens Jun 26, 2025
fdbfebb
Workflow Fix
Janmtbehrens Jun 26, 2025
890bcb0
Additional PR fixes
Janmtbehrens Jun 26, 2025
f8be668
Adding new makefile Scripts to unify run-dev and build make targets
Janmtbehrens Jun 26, 2025
48aad6f
Added staging Log without staging Branch (#6877)
LinKaKling Jun 27, 2025
ec5e28a
Build and run as bash scripts
Janmtbehrens Jun 30, 2025
d87065d
Adding clean as a function
Janmtbehrens Jun 30, 2025
44ab0c5
Refining Scripts. Also adding deprecation warnings
Janmtbehrens Jun 30, 2025
3528b2f
Makefile Rework
Janmtbehrens Jul 1, 2025
038589f
Enter function
Janmtbehrens Jul 1, 2025
099923d
Delete debug workflow
Janmtbehrens Jul 1, 2025
9be947f
Rebind to all-in-one submodule branches
Janmtbehrens Jul 1, 2025
1e68aa2
Rudimentary reusable GitHub Actions (#6935)
Janmtbehrens Jul 3, 2025
cd123d3
Adding Shell Parameter
Janmtbehrens Jul 3, 2025
9bc5b37
Merge with main
Janmtbehrens Jul 3, 2025
cb07a30
Merge
Janmtbehrens Jul 3, 2025
9efaa1b
Updated Reference
Janmtbehrens Jul 3, 2025
56fad06
Expandend run-dev-... matching
Janmtbehrens Jul 3, 2025
54429b0
Volume Flag
Janmtbehrens Jul 3, 2025
b7a170a
Merge
Janmtbehrens Jul 3, 2025
c17e6f0
Merge remote-tracking branch 'upstream/main' into all-in-one
Janmtbehrens Jul 3, 2025
5bad566
Merge with main
Janmtbehrens Jul 3, 2025
353432c
Adding Lint Script and reworking test script
Janmtbehrens Jul 3, 2025
30026e9
Lint
Janmtbehrens Jul 3, 2025
e6cb860
PR review Changes
Janmtbehrens Jul 7, 2025
bc69ac2
New Tests for Go Services
Janmtbehrens Jul 7, 2025
02e3d34
Adding Go Dockertest to run-tests
Janmtbehrens Jul 8, 2025
4e20aa1
Adding trap to test scripts
Janmtbehrens Jul 8, 2025
cce033b
Remove reference to main repository build-service script
Janmtbehrens Jul 8, 2025
893087e
Fixes
Janmtbehrens Jul 8, 2025
a755b9c
Updated services (#6941)
Elblinator Jul 9, 2025
f938041
Trap error fixes
Janmtbehrens Jul 10, 2025
1c9865c
Merge
Janmtbehrens Jul 10, 2025
493a556
Merge remote-tracking branch 'upstream/main' into all-in-one
Janmtbehrens Jul 10, 2025
8764a1c
Update go
Janmtbehrens Jul 10, 2025
d7043e8
Revert GitHub Workflow Tests
Janmtbehrens Jul 10, 2025
9a41dc2
Adding Act
Janmtbehrens Jul 10, 2025
3bc3904
Lint act dockerfile
Janmtbehrens Jul 10, 2025
e44eefc
Updated services (#6942)
Elblinator Jul 11, 2025
527043e
Small act changes
Janmtbehrens Jul 14, 2025
1eda0f0
Merge
Janmtbehrens Jul 14, 2025
a50e16e
Git Checkout Script
Janmtbehrens Jul 14, 2025
0a9c9ab
Checkout Script fixes
Janmtbehrens Jul 14, 2025
30f1299
Merge Submodules
Janmtbehrens Jul 14, 2025
03dcfb0
Merge remote-tracking branch 'origin/all-in-one' into makefile-rework
Janmtbehrens Jul 14, 2025
7bc97d2
Fixing lint and test script, updating Makefiles
Janmtbehrens Jul 14, 2025
2b02012
Rename run-dev to dev and run-lint to lint
Janmtbehrens Jul 14, 2025
c8b0e61
Remove PHONY and Target Wildcard to allow autocompletion
Janmtbehrens Jul 15, 2025
073617b
Adding PHONY again to support dev target. Revamp make-dev.sh by imple…
Janmtbehrens Jul 15, 2025
76fcf39
Create patchnotes for 4.2.15 (#6943)
rrenkert Jul 15, 2025
cd46286
Create patchnotes for 4.2.16 (#6944)
rrenkert Jul 15, 2025
40e13c3
Create patchnotes for 4.2.17 (#6945)
rrenkert Jul 15, 2025
10f9723
Make dev now capsules build command
Janmtbehrens Jul 17, 2025
41e7ff6
Small fixes
Janmtbehrens Jul 17, 2025
72592d5
Removing deprecation script. Manually implement deprecation warning i…
Janmtbehrens Jul 17, 2025
6c337fc
Implement Submodules as targets in main makefile to enable autocomple…
Janmtbehrens Jul 17, 2025
24a9228
Move dev maketargets from services to main. Expanded make-dev.sh to w…
Janmtbehrens Jul 17, 2025
82432f3
Attach support for main repository dev commands
Janmtbehrens Jul 21, 2025
a4196ff
Merge with dockerfile rework
Janmtbehrens Jul 21, 2025
8a6fff9
Implemented --no-cache flag for docker builds via dev make target
Janmtbehrens Jul 21, 2025
cebaf8a
Improve capsule method
Janmtbehrens Jul 22, 2025
5d26185
Updated services (#6951)
Elblinator Jul 22, 2025
9ba88b8
Dockerfile Rework (#6926)
Jul 22, 2025
11c36f9
translations (#6953)
Elblinator Jul 23, 2025
ed7e0a7
Create patchnotes for 4.2.18 (#6952)
rrenkert Jul 23, 2025
0550be5
Merge with main
Janmtbehrens Jul 24, 2025
79adaa1
Translations (#6956)
Elblinator Jul 24, 2025
d7a8a8c
Service makefiles now contain deprecation warnings for run-dev and it…
Janmtbehrens Jul 28, 2025
8d17136
Merge with main
Janmtbehrens Jul 28, 2025
6669f68
Merge branch 'main' of github.com:OpenSlides/OpenSlides into makefile…
Janmtbehrens Jul 28, 2025
c8c9c3d
Small fixes in submodules and clearer comments for make-dev.sh
Janmtbehrens Jul 28, 2025
0519cf3
Update deprecation warnings
Janmtbehrens Jul 29, 2025
15103a6
Run-dev and run-dev-detached are properly deprecated targets now
Janmtbehrens Jul 29, 2025
d3b7af5
DEVELOPMENT.md update
Janmtbehrens Jul 29, 2025
39c6013
Updated services (#6965)
m-schieder Aug 4, 2025
1b193d8
Patchnotes (#6966)
Elblinator Aug 5, 2025
c184097
Merge with main
Janmtbehrens Aug 11, 2025
3afc808
Newlines
Janmtbehrens Aug 11, 2025
a30fd0f
Updated services (#6969)
m-schieder Aug 11, 2025
8182126
Autoupdate Fix
Janmtbehrens Aug 11, 2025
871bc60
Create patchnotes for 4.2.20 (#6970)
m-schieder Aug 11, 2025
ab8d00b
Fix patchnotes for 4.2.20 (#6972)
m-schieder Aug 11, 2025
5bc1ddc
Adding & for parallel processing (#6975)
Janmtbehrens Aug 14, 2025
c160965
change root to app (#6976)
Janmtbehrens Aug 14, 2025
39839c1
Add admin login data to `DEVELOPMENT.md` (#6977)
bastianjoel Aug 18, 2025
751a149
Equal sign removal
Janmtbehrens Aug 18, 2025
b87766f
Add package dir to client (#6978)
bastianjoel Aug 19, 2025
9a3f0d9
Merge with main
Janmtbehrens Aug 19, 2025
59ca4f6
Set capsule as default false instead of default true
Janmtbehrens Aug 19, 2025
142d47e
Fixed bug when calling run dev with flags but no service
Janmtbehrens Aug 19, 2025
e5440d5
Renaming as to AS in Dockerfiles
Janmtbehrens Aug 21, 2025
e6d86e8
PR fixes
Janmtbehrens Aug 25, 2025
96b6cb5
PR updates
Janmtbehrens Aug 25, 2025
b5b251c
Updated services (#6979)
m-schieder Aug 25, 2025
a0ed74f
Autoupdate update
Janmtbehrens Aug 26, 2025
853139b
Add patchnotes 4.2.21 (#6980)
Elblinator Aug 27, 2025
411c244
Fix client dev build with motion diff package (#6982)
bastianjoel Aug 28, 2025
cbafb83
Merge branch 'main' of github.com:OpenSlides/OpenSlides into makefile…
Janmtbehrens Aug 28, 2025
750865b
Update go workspace version (#6983)
bastianjoel Aug 28, 2025
9f5ce35
Merge branch 'main' into makefile-rework
Janmtbehrens Aug 28, 2025
cc184e1
Datastore bugfix
Janmtbehrens Aug 28, 2025
2e29614
Merge branch 'makefile-rework' of https://github.com/Janmtbehrens/Ope…
Janmtbehrens Aug 28, 2025
4a63ac1
Fix problem with dependent sequence in stable update (#6985)
m-schieder Aug 29, 2025
313f190
Merge branch 'main' into makefile-rework
Janmtbehrens Sep 1, 2025
de63100
Updating DockerDaemon using services
Janmtbehrens Sep 1, 2025
76cfea9
Merge remote-tracking branch 'refs/remotes/janmtbehrens/makefile-rewo…
Janmtbehrens Sep 1, 2025
f0e70e1
Removed unnecessary CMD
Janmtbehrens Sep 1, 2025
2336b68
Revert manage CompileDaemon changes
Janmtbehrens Sep 2, 2025
6c50c07
Transfer PID to CompileDaemon in command.sh
Janmtbehrens Sep 2, 2025
a39643f
Adding some more clarifying comments
Janmtbehrens Sep 8, 2025
67683c0
Merged/Updated some submodules
Janmtbehrens Sep 8, 2025
ed8cd17
Small improvements
Sep 8, 2025
8d38b91
Rework submodule iteration method, local pwd method and other small c…
Janmtbehrens Sep 9, 2025
de01de4
Merge with main
Janmtbehrens Sep 9, 2025
01cc040
Add option to choose what branch for external services is used in dev…
Janmtbehrens Sep 15, 2025
9f322db
Relocated --build
Janmtbehrens Sep 15, 2025
c645c00
Putting CONTEXT, USER and GROUP in curly braces
Janmtbehrens Sep 15, 2025
f5291ad
Remove compose file for search service
Janmtbehrens Sep 15, 2025
4888504
Adding dev-log option
Janmtbehrens Sep 16, 2025
87f2240
Correcting wording for help()
Janmtbehrens Sep 29, 2025
fb05f89
Merge with main
Janmtbehrens Oct 2, 2025
aca4c89
Fixed issue where testing auth would skip the for loop iterating over…
Janmtbehrens Oct 3, 2025
645b983
Fixing test-all-submodules and make-dev bugs. Convert some parameters…
Janmtbehrens Oct 13, 2025
47ed5cb
Shellcheck run
Janmtbehrens Oct 14, 2025
99c34ee
Merge with main
Janmtbehrens Oct 16, 2025
9145124
Update go repository
Janmtbehrens Oct 16, 2025
a744cdd
Delete deprecated files and folders
Janmtbehrens Oct 16, 2025
e9d7142
Text output fixes
Janmtbehrens Oct 16, 2025
7effe58
Review Changes
Janmtbehrens Oct 16, 2025
a14189d
Update submodules
Oct 16, 2025
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
12 changes: 0 additions & 12 deletions .github/workflows/debug-workflow.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/pick-to-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,3 @@ jobs:
reviewers: ${{ github.event.pull_request.user.login }}
assignees: ${{ github.event.pull_request.user.login }}
labels: picked-to-staging
milestone: 4
5 changes: 3 additions & 2 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ Authors of OpenSlides in chronological order of first contribution:
Adrian Richter <adrian@intevation.de>
Camille Akmut
Johannes Rolf <johannes.rolf@rwth-aachen.de>
Luisa Beerboom <luisa.beerboom@intevation.de
Magnus Schieder
Luisa Beerboom <luisa.beerboom@intevation.de>
Magnus Schieder <magnus.schieder@intevation.de>
Bastian Rihm <brihm@intevation.de>
Abdullah Şevik <a.alveolus@icloud.com>
Loki Elble <loki.elble@intevation.de>
Danny Reichelt <dreichelt@intevation.de>
Hannes Janott <hannes.janott@openslides.com>
Annalena Bebenroth <annalena.bebenroth@intevation.de>
Kasimir Klinger <kasimir.klinger@intevation.de>
Viktoriia Krasnovyd <viktoriia.krasnovyd@intevation.de>
Jan Malte Behrens <jan.malte.behrens@intevation.de>
14 changes: 8 additions & 6 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ After cloning you need to initialize all submodules:

Finally, start the development server:

$ make run-dev
$ make dev

(This command won't run without sudo, or without having set up Docker to run without sudo - see their documentation)

Expand All @@ -27,9 +27,11 @@ or access the full stack on

$ https://localhost:8000

Login as admin with ´admin´ as both username and password.

## Running tests

To run all tests of all services, execute `run-service-tests`.
To run all tests of all services, execute `run-tests`.

## Translations

Expand All @@ -38,7 +40,7 @@ functionality for this is bundled in this repository. The following make command

- `make extract-translations`: Extracts all strings which need translations from all services and
merges them together into a single `template-en-pot`, which is placed under `i18n/`. You must
run `make run-dev` in another terminal before you can execute this command.
run `make dev` in another terminal before you can execute this command.
- `make push-translations`: Push the current template file under `i18n/template-en.pot` to Transifex
to allow translating it there.
- `make pull-translations`: Pull the translations in all languages available in the client from
Expand Down Expand Up @@ -164,7 +166,7 @@ Go to the service and create a new branch (from main):

Run OpenSlides in development mode (e.g. in a new terminal):

$ make run-dev
$ make dev

After making some changes in my-service, create a commit and push to your fork

Expand Down Expand Up @@ -216,13 +218,13 @@ Sometimes it might be helpful to be able to run tests in the backend console and
parallel. To circumvent the need to restart the full stack every time you switch contexts, there
exist the `docker/docker-compose.test.yml` which introduces another database container to the stack.

By default (meaning by running `make run-dev`), the setup uses the normal `postgres` container. We
By default (meaning by running `make dev`), the setup uses the normal `postgres` container. We
call this the `dev` context. By executing `make switch-to-test`, you can replace the database
container and automatically restarting all dependent services, thus changing into the so-called
`test` context. With `make switch-to-dev`, you can switch back. Finally, `make run-backend` provides
a shortcut to switch to the `test` context and enter the backend shell to e.g. execute tests there.
Be aware that all these commands need an OpenSlides instance to be already running, meaning you have
to execute `make run-dev` first.
to execute `make dev` first.

## Helper scripts

Expand Down
175 changes: 107 additions & 68 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,75 +1,52 @@
DEV_PATH=dev
DOCKER_PATH=$(DEV_PATH)/docker
SCRIPT_PATH=$(DEV_PATH)/scripts
DC_DEV=docker compose -f $(DOCKER_PATH)/docker-compose.dev.yml
DC_TEST=docker compose -f $(DOCKER_PATH)/docker-compose.test.yml
GO_VERSION=$(shell head -n 1 go.work)

# Main command: start the dev server
run-dev: | build-dev
$(DC_DEV) up $(ARGS)
override DEV_PATH=dev
override DOCKER_PATH=$(DEV_PATH)/docker
override SCRIPT_PATH=$(DEV_PATH)/scripts
override MAKEFILE_PATH=$(SCRIPT_PATH)/makefile
override DC_DEV=docker compose -f $(DOCKER_PATH)/docker-compose.dev.yml
override DC_TEST=docker compose -f $(DOCKER_PATH)/docker-compose.test.yml
override GO_VERSION=$(shell head -n 1 go.work)
override DOCKER_COMPOSE_FILE=$(DOCKER_PATH)/docker-compose.dev.yml

# Main command: start the dev server in detached mode
run-dev-detached: | build-dev
$(DC_DEV) up $(ARGS) -d

# Same as run-dev, but with OpenTelemetry
run-dev-otel: | build-dev
$(DC_DEV) -f $(DOCKER_PATH)/dc.otel.dev.yml up $(ARGS)
# Build images for different contexts

# Build the docker dev images for all services in parallel
build-dev:
sed -i "1s/.*/$(GO_VERSION)/" $(DOCKER_PATH)/workspaces/*.work
chmod +x $(SCRIPT_PATH)/makefile/build-all-submodules.sh
$(SCRIPT_PATH)/makefile/build-all-submodules.sh
build-prod build-dev build-tests:
sed -i -e "1s/.*/$(GO_VERSION)/" $(DOCKER_PATH)/workspaces/*.work
bash $(MAKEFILE_PATH)/make-build-main.sh $@

# Run the tests of all services
run-service-tests:
chmod +x $(SCRIPT_PATH)/makefile/test-all-submodules.sh
$(SCRIPT_PATH)/makefile/test-all-submodules.sh
build:
$(DOCKER_PATH)/build.sh

run-tests:
bash dev/scripts/makefile/test-all-submodules.sh
# Execute while run-dev is running: Switch to the test database to execute backend tests without
# interfering with your dev database
switch-to-test:
$(DC_DEV) stop postgres
$(DC_TEST) up -d postgres-test
$(DC_DEV) -f $(DOCKER_PATH)/docker-compose.backend.yml up -d backend
$(DC_DEV) restart datastore-writer datastore-reader autoupdate vote
# Development
.SERVICE_TARGETS := auth autoupdate backend client datastore icc manage media proxy search vote

# Execute while run-dev is running: Switch back to your dev database
switch-to-dev:
$(DC_TEST) stop postgres-test
$(DC_DEV) up -d postgres backend
$(DC_DEV) restart datastore-writer datastore-reader autoupdate vote
$(.SERVICE_TARGETS):
@echo ""

# Shorthand to directly enter a shell in the backend after switching the databases
run-backend: | switch-to-test
$(DC_DEV) exec backend ./entrypoint.sh bash --rcfile .bashrc
.FLAGS := no-cache capsule compose-local-branch

# Stop all backend-related services so that the backend dev setup can start
stop-backend:
$(DC_DEV) stop backend datastore-reader datastore-writer auth vote postgres redis icc autoupdate search
$(.FLAGS):
@echo ""

# Restart all backend-related services
start-backend:
$(DC_DEV) up -d backend datastore-reader datastore-writer auth vote postgres redis icc autoupdate search
.PHONY: dev

# Stop the dev server
stop-dev:
$(DC_DEV) down --volumes --remove-orphans
dev dev-help dev-standalone dev-detached dev-attached dev-stop dev-exec dev-enter dev-clean dev-build dev-log:
@sed -i "1s/.*/$(GO_VERSION)/" $(DOCKER_PATH)/workspaces/*.work
@bash $(MAKEFILE_PATH)/make-dev.sh $@ "$(filter-out $@, $(MAKECMDGOALS))"

# Stop the dev server with OpenTelemetry
stop-dev-otel:
$(DC_DEV) -f $(DOCKER_PATH)/dc.otel.dev.yml down --volumes --remove-orphans
# Tests

build:
$(DOCKER_PATH)/build.sh
run-tests:
bash dev/scripts/makefile/test-all-submodules.sh "$(filter-out $@, $(MAKECMDGOALS))"

test-ci:
bash $(SCRIPT_PATH)/act/run-act.sh $(FOLDER) $(WORKFLOW_TRIGGER)

# Make-release commands

# Shorthands to execute the make-release script
services-to-main:
$(SCRIPT_PATH)/make-update.sh fetch-all-changes $(ARGS)

services-to-main-pull:
$(SCRIPT_PATH)/make-update.sh fetch-all-changes --pull $(ARGS)

Expand All @@ -85,12 +62,6 @@ hotfix-update:
stable-update:
$(SCRIPT_PATH)/make-update.sh stable $(ARGS)

# You may only use this one time after cloning this repository.
# Will set the upstream remote to "origin"
submodules-origin-to-upstream:
git submodule foreach -q --recursive 'git remote rename origin upstream'


# Translation helper targets

extract-translations:
Expand All @@ -106,8 +77,76 @@ copy-translations:
cp i18n/*.po openslides-client/client/src/assets/i18n/
cp i18n/*.po openslides-backend/openslides_backend/i18n/messages/

clean-run-dev:
docker stop $(shell docker ps -aq) || true
docker rm $(shell docker ps -a -q) || true
docker rmi -f $(shell docker images -aq) || true
make run-dev



########################## Deprecation List ##########################

deprecation-warning:
@echo "\033[1;33m DEPRECATION WARNING: This make command is deprecated and will be removed soon! \033[0m"

deprecation-warning-alternative: | deprecation-warning
@echo "\033[1;33m Please use the following command instead: $(ALTERNATIVE) \033[0m"

run-dev:
@make deprecation-warning-alternative ALTERNATIVE="dev"
sed -i "1s/.*/$(GO_VERSION)/" $(DOCKER_PATH)/workspaces/*.work
chmod +x $(SCRIPT_PATH)/makefile/build-all-submodules.sh
$(DC_DEV) up $(ARGS)

run-dev-detached:
@make deprecation-warning-alternative ALTERNATIVE="dev"
sed -i "1s/.*/$(GO_VERSION)/" $(DOCKER_PATH)/workspaces/*.work
chmod +x $(SCRIPT_PATH)/makefile/build-all-submodules.sh
$(DC_DEV) up $(ARGS) -d

stop-dev:
@make deprecation-warning-alternative ALTERNATIVE="dev-stop"
$(DC_DEV) down --volumes --remove-orphans

# Run the tests of all services
run-service-tests:
@make deprecation-warning-alternative ALTERNATIVE="run-tests"
chmod +x $(SCRIPT_PATH)/makefile/test-all-submodules.sh
$(SCRIPT_PATH)/makefile/test-all-submodules.sh

# Execute while run-dev is running: Switch to the test database to execute backend tests without
# interfering with your dev database
switch-to-test: | deprecation-warning
$(DC_DEV) stop postgres
$(DC_TEST) up -d postgres-test
$(DC_DEV) -f $(DOCKER_PATH)/docker-compose.backend.yml up -d backend
$(DC_DEV) restart datastore-writer datastore-reader autoupdate vote

# Execute while run-dev is running: Switch back to your dev database
switch-to-dev: | deprecation-warning
$(DC_TEST) stop postgres-test
$(DC_DEV) up -d postgres backend
$(DC_DEV) restart datastore-writer datastore-reader autoupdate vote

# Shorthand to directly enter a shell in the backend after switching the databases
run-backend: | deprecation-warning switch-to-test
$(DC_DEV) exec backend ./entrypoint.sh bash --rcfile .bashrc

# Stop all backend-related services so that the backend dev setup can start
stop-backend: | deprecation-warning
$(DC_DEV) stop backend datastore-reader datastore-writer auth vote postgres redis icc autoupdate search

# Restart all backend-related services
start-backend: | deprecation-warning
$(DC_DEV) up -d backend datastore-reader datastore-writer auth vote postgres redis icc autoupdate search


# Stop the dev server with OpenTelemetry
stop-dev-otel: | deprecation-warning
$(DC_DEV) -f $(DOCKER_PATH)/dc.otel.dev.yml down --volumes --remove-orphans


# Same as run-dev, but with OpenTelemetry
run-dev-otel: | deprecation-warning build-dev
$(DC_DEV) -f $(DOCKER_PATH)/dc.otel.dev.yml up $(ARGS)

# You may only use this one time after cloning this repository.
# Will set the upstream remote to "origin"
submodules-origin-to-upstream: | deprecation-warning
git submodule foreach -q --recursive 'git remote rename origin upstream'
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.2.8-dev
4.2.21-dev
6 changes: 0 additions & 6 deletions dev/actions/build-service/action-run.sh

This file was deleted.

29 changes: 0 additions & 29 deletions dev/actions/build-service/action.yml

This file was deleted.

5 changes: 0 additions & 5 deletions dev/actions/test-submodule/action-run.sh

This file was deleted.

9 changes: 0 additions & 9 deletions dev/actions/test-submodule/action.yml

This file was deleted.

Loading
Loading