Skip to content

Commit b45fba8

Browse files
authored
Merge pull request #31 from itk-dev/feature/cleanup
Cleanup
2 parents dfd1f48 + 9ea2757 commit b45fba8

21 files changed

+78
-467
lines changed

.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ APP_SECRET=
1515
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=8.0.32&charset=utf8mb4"
1616
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
1717
# DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=16&charset=utf8"
18-
# DATABASE_URL="mysql://db:db@mariadb:3306/db?serverVersion=10.11.14-MariaDB&charset=utf8"
19-
DATABASE_URL="sqlite:///%kernel.project_dir%/var/app.db"
18+
DATABASE_URL="mysql://db:db@mariadb:3306/db?serverVersion=10.11.14-MariaDB&charset=utf8"
2019
###< doctrine/doctrine-bundle ###
2120

2221
###> symfony/mercure-bundle ###
@@ -51,7 +50,8 @@ ADMIN_OIDC_CLIENT_SECRET=client-secret
5150
ADMIN_OIDC_REDIRECT_URI=https://rpa-process-overview.local.itkdev.dk/
5251
ADMIN_OIDC_LEEWAY=30
5352
ADMIN_OIDC_ROLE_MAP='{
54-
"overview-manager": ["ROLE_OVERVIEW_MANAGER"]
53+
"overview-manager": ["ROLE_OVERVIEW_MANAGER"],
54+
"admin": ["ROLE_ADMIN"]
5555
}'
5656

5757
# cli redirect url

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
###< symfony/asset-mapper ###
2727

2828
*.local
29+
*.local.yml
2930
.idea
3031

3132
# Generated widget code

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
* [PR-31](https://github.com/itk-dev/rpa-process-overview/pull/31)
11+
* Used Mysql database.
12+
* Cleaned up entities.
1013
* [PR-30](https://github.com/itk-dev/rpa-process-overview/pull/30)
1114
Add pagination
1215
* [PR-27](https://github.com/itk-dev/rpa-process-overview/pull/27)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ task site:update
3030

3131
> [!NOTE]
3232
> Running `task site:update` on [macOS (darwin)](https://en.wikipedia.org/wiki/Darwin_(operating_system)) will pull and
33-
> patch the API Git submodule (cf. [#api](API)). See [`Taskfile.yml`](Taskfile.yml) for details.
33+
> patch the API Git submodule (cf. [API](#api)). See [`Taskfile.yml`](Taskfile.yml) for details.
3434
3535
Load fixtures with
3636

Taskfile.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,30 @@ tasks:
3838
vars:
3939
TASK_ARGS: pull
4040

41-
# Additional setup for local development (assuming we're running on maxOS (darwin))
41+
# Additional setup if API service is enabled.
4242
- cmd: |
43-
git -C api checkout .
44-
git submodule update --init
45-
# Apply a patch to support MySQL in the API and make building it work.
46-
git -C api apply < patches/Process_Dashboard_API.patch
47-
# https://taskfile.dev/docs/reference/schema#platforms
48-
platforms: [darwin]
43+
if [ -n "{{.API_ENABLED}}" ]; then
44+
git -C api checkout .
45+
git submodule update --init
46+
# Apply a patch to support MySQL in the API and make building it work.
47+
git -C api apply < patches/Process_Dashboard_API.patch
48+
fi
4949
5050
- task: compose
5151
vars:
5252
TASK_ARGS: up --build --detach --wait
5353

54+
# Unpatch API if API service is enabled.
55+
- cmd: |
56+
if [ -n "{{.API_ENABLED}}" ]; then
57+
git -C api checkout .
58+
fi
59+
60+
vars:
61+
API_ENABLED:
62+
# Check if the api service is enabled.
63+
sh: (task --silent compose -- config --services | grep "^api$") || true
64+
5465
logs:
5566
desc: Show live logs
5667
cmds:
@@ -107,7 +118,6 @@ tasks:
107118
cmds:
108119
- task: api:fixtures:load
109120
- task: app:fixtures:load
110-
- task: oidc:fixtures:load
111121

112122
translations:extract:
113123
cmds:
@@ -209,8 +219,8 @@ tasks:
209219
cmds:
210220
- for:
211221
- /api/v1/auth/me
212-
- /api/v1/processes/processes/
213-
- /api/v1/processes/processes/1
222+
- /api/v1/processes/
223+
- /api/v1/processes/1
214224
task: api:get
215225
vars:
216226
API_PATH: "{{.ITEM}}"

docker-compose.oidc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ services:
1414
'{"sub": "user", "email": "[email protected]", "roles": ["user"]}',
1515
"--user-claims",
1616
'{"sub": "overview-manager", "email": "[email protected]", "roles": ["overview-manager"]}',
17+
"--user-claims",
18+
'{"sub": "admin", "email": "[email protected]", "roles": ["admin"]}',
1719
]
1820
ports:
1921
- "80"

migrations/Version20250926120922.php

Lines changed: 0 additions & 40 deletions
This file was deleted.

migrations/Version20250926123121.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

migrations/Version20250926123652.php

Lines changed: 0 additions & 39 deletions
This file was deleted.

migrations/Version20251001122515.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)