Skip to content

Commit 2f7e6f5

Browse files
committed
DISPLAY-1030: Initial cleanup
1 parent a92e88e commit 2f7e6f5

File tree

8 files changed

+48
-22
lines changed

8 files changed

+48
-22
lines changed

.markdownlint.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"default": true,
3+
"MD013": {
4+
"line_length": 120,
5+
"code_blocks": false,
6+
"tables": false
7+
},
8+
"no-duplicate-heading": {
9+
"siblings_only": true
10+
}
11+
}

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
- [#165](https://github.com/os2display/display-api-service/pull/165)
8+
Symfony 6.3
79
- [#161](https://github.com/os2display/display-api-service/pull/161)
810
Fixed non-entity related psalm errors.
911

@@ -17,10 +19,12 @@ All notable changes to this project will be documented in this file.
1719
Added thumbnails for image resources
1820

1921
## [1.3.2] - 2023-07-11
22+
2023
- [#157](https://github.com/os2display/display-api-service/pull/157)
2124
Fix question input on create user command
2225

2326
## [1.3.1] - 2023-07-11
27+
2428
- [#156](https://github.com/os2display/display-api-service/pull/156)
2529
Fix permissions in create release github action
2630

@@ -69,10 +73,9 @@ Gif mime type possible.
6973
- [#138](https://github.com/os2display/display-api-service/pull/138)
7074
Fixed Tenant and command to allow for empty fallbackImageUrl.
7175
- [#139](https://github.com/os2display/display-api-service/pull/139)
72-
Changed from service decoration to event listeners to re-enable setting `tenants` on the response from `/v1/authentication/token`.
73-
Ensure same response data from both `/v1/authentication/token` and `/v1/authentication/token/refresh`endpoints.
76+
Changed from service decoration to event listeners to re-enable setting `tenants` on the response from `/v1/authentication/token`.
77+
Ensure same response data from both `/v1/authentication/token` and `/v1/authentication/token/refresh`endpoints.
7478
Added `user` and `tenants` to JWT payload.
75-
7679

7780
## [1.2.4] - 2023-03-07
7881

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ A `docker-compose.yml` file with a PHP 8.0 image is included in this project.
2727
To install the dependencies you can run
2828

2929
```shell
30-
docker compose up -d
30+
docker compose pull
31+
docker compose up --detach
3132
docker compose exec phpfpm composer install
3233

3334
# Run migrations
@@ -123,8 +124,8 @@ the coding standard for the project.
123124
* Markdown files (markdownlint standard rules)
124125

125126
```shell
126-
docker run -v ${PWD}:/app itkdev/yarn:latest install
127-
docker run -v ${PWD}:/app itkdev/yarn:latest check-coding-standards
127+
docker compose run --rm node yarn install
128+
docker compose run --rm node yarn coding-standards-check
128129
```
129130

130131
### Apply Coding Standards
@@ -140,8 +141,8 @@ To attempt to automatically fix coding style issues
140141
* Markdown files (markdownlint standard rules)
141142

142143
```shell
143-
docker run -v ${PWD}:/app itkdev/yarn:latest install
144-
docker run -v ${PWD}:/app itkdev/yarn:latest apply-coding-standards
144+
docker compose run --rm node yarn install
145+
docker compose run --rm node yarn coding-standards-apply
145146
```
146147

147148
## CI

docker-compose.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# itk-version: 3.0.0
1+
# itk-version: 3.1.0
22
version: "3"
33

44
networks:
@@ -32,7 +32,8 @@ services:
3232
- PHP_XDEBUG_MODE=${PHP_XDEBUG_MODE:-off}
3333
- PHP_MAX_EXECUTION_TIME=30
3434
- PHP_MEMORY_LIMIT=256M
35-
# - PHP_MAIL=1 # Uncomment to enable mailhog.
35+
# Depending on the setup you may have to remove --read-envelope-from from msmtp (cf. https://marlam.de/msmtp/msmtp.html) or use SMTP to send mail
36+
- PHP_SENDMAIL_PATH=/usr/bin/msmtp --host=mail --port=1025 --read-recipients --read-envelope-from
3637
- DOCKER_HOST_DOMAIN=${COMPOSE_DOMAIN}
3738
- COMPOSER_VERSION=2
3839
- PHP_IDE_CONFIG=serverName=localhost
@@ -61,8 +62,8 @@ services:
6162
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=redirect-to-https"
6263
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
6364

64-
mailhog:
65-
image: itkdev/mailhog
65+
mail:
66+
image: axllent/mailpit
6667
networks:
6768
- app
6869
- frontend
@@ -72,12 +73,20 @@ services:
7273
labels:
7374
- "traefik.enable=true"
7475
- "traefik.docker.network=frontend"
75-
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}Mailhog.rule=Host(`mailhog-${COMPOSE_DOMAIN}`)"
76-
- "traefik.http.services.${COMPOSE_PROJECT_NAME}Mailhog.loadbalancer.server.port=8025"
76+
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}mail.rule=Host(`mail-${COMPOSE_DOMAIN}`)"
77+
- "traefik.http.services.${COMPOSE_PROJECT_NAME}mail.loadbalancer.server.port=8025"
7778

7879
redis:
7980
image: 'redis:6'
8081
networks:
8182
- app
8283
ports:
8384
- '6379'
85+
86+
node:
87+
image: node:20
88+
working_dir: /app
89+
volumes:
90+
- .:/app
91+
profiles:
92+
- develop

infrastructure/itkdev/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# ITK-development image build
22

3-
This folder contains the infrastructure files for building the `itkdev/*` images
3+
This folder contains the infrastructure files for building the `itkdev/*` images

infrastructure/os2display/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# OS2display image build
22

3-
This folder contains the infrastructure files for building the `os2display/*` images
3+
This folder contains the infrastructure files for building the `os2display/*` images

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"markdownlint-cli": "^0.27.1"
66
},
77
"scripts": {
8-
"check-coding-standards/markdownlint": "markdownlint README.md docs/**/*.md",
9-
"check-coding-standards": "yarn check-coding-standards/markdownlint",
10-
"apply-coding-standards/markdownlint": "markdownlint --fix README.md docs/**/*.md",
11-
"apply-coding-standards": "yarn apply-coding-standards/markdownlint"
8+
"coding-standards-check/markdownlint": "markdownlint --ignore vendor --ignore node_modules '**/*.md'",
9+
"coding-standards-check": "yarn coding-standards-check/markdownlint",
10+
"coding-standards-apply/markdownlint": "markdownlint --ignore vendor --ignore node_modules '**/*.md' --fix",
11+
"coding-standards-apply": "yarn coding-standards-apply/markdownlint"
1212
}
1313
}

tests/config/jwt/Readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
CI server and test keys. Do not use in production.
1+
# CI server and test keys
22

3-
@see https://github.com/lexik/LexikJWTAuthenticationBundle/blob/2.x/Resources/doc/3-functional-testing.md
3+
Do not use in production.
4+
5+
@see <https://github.com/lexik/LexikJWTAuthenticationBundle/blob/2.x/Resources/doc/3-functional-testing.md>

0 commit comments

Comments
 (0)