Skip to content

Commit da336bc

Browse files
committed
1859: Fixed merge
2 parents cbbb9a1 + a6ee440 commit da336bc

18 files changed

+482
-17
lines changed

.github/workflows/php_upgrade.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ jobs:
6363
MYSQL_PASSWORD: db
6464
MYSQL_DATABASE: db_test
6565
MYSQL_ROOT_PASSWORD: password
66-
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
66+
# https://mariadb.org/mariadb-server-docker-official-images-healthcheck-without-mysqladmin/
67+
options: >-
68+
--health-cmd="healthcheck.sh --connect --innodb_initialized"
69+
--health-interval=5s
70+
--health-timeout=2s
71+
--health-retries=3
6772
strategy:
6873
fail-fast: false
6974
matrix:

.github/workflows/pr.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,12 @@ jobs:
221221
MYSQL_PASSWORD: db
222222
MYSQL_DATABASE: db_test
223223
MYSQL_ROOT_PASSWORD: password
224-
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
224+
# https://mariadb.org/mariadb-server-docker-official-images-healthcheck-without-mysqladmin/
225+
options: >-
226+
--health-cmd="healthcheck.sh --connect --innodb_initialized"
227+
--health-interval=5s
228+
--health-timeout=2s
229+
--health-retries=3
225230
strategy:
226231
fail-fast: false
227232
matrix:

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,23 @@ All notable changes to this project will be documented in this file.
88
- Adds support for interactive slides.
99
- Adds interactivity for creating quick bookings from a slide through Microsoft Graph.
1010
- Adds KeyVaultService that can serve key-value entries from the environment for storing secrets.
11+
12+
## [2.0.6] - 2024-06-28
13+
14+
- [#208](https://github.com/os2display/display-api-service/pull/208)
15+
- Removed feed items from Notified where image returns 403.
16+
- Fixed phpunit github actions healthcheck for mariadb.
17+
- [#207](https://github.com/os2display/display-api-service/pull/207)
18+
- Fixed parameter not set error in (os2display) api container.
19+
20+
## [2.0.5] - 2024-05-21
21+
22+
- [#206](https://github.com/os2display/display-api-service/pull/206)
23+
- Added support for Notified (Instagram) feed as replacement for SparkleIOFeedType.
24+
- Deprecated SparkleIOFeedType. (getsparkle.io has shut down)
25+
26+
## [2.0.4] - 2024-04-25
27+
1128
- [#204](https://github.com/os2display/display-api-service/pull/204)
1229
- Ensured real ip is logged in nginx.
1330
- [#200](https://github.com/os2display/display-api-service/pull/200)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"vendor/bin/phpunit --stop-on-failure"
139139
],
140140
"test-setup": [
141-
"bin/console cache:clear --env=test --no-debug",
141+
"bin/console --env=test cache:clear --no-debug",
142142
"bin/console --env=test doctrine:database:drop --if-exists --force --quiet",
143143
"bin/console --env=test doctrine:database:create --no-interaction --if-not-exists --quiet",
144144
"bin/console --env=test doctrine:migrations:migrate --no-interaction --quiet"

fixtures/feed.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@ App\Entity\Tenant\Feed:
77
createdAt (unique): '<dateTimeBetween("-2 years", "-2 days")>'
88
modifiedAt: '<dateTimeBetween($createdAt, "-1 days")>'
99
id: '<ulid($createdAt)>'
10+
feed_abc_notified:
11+
feedSource: '@feed_source_abc_notified'
12+
slide: '@slide_abc_notified'
13+
tenant: '@tenant_abc'
14+
createdAt (unique): '<dateTimeBetween("-2 years", "-2 days")>'
15+
modifiedAt: '<dateTimeBetween($createdAt, "-1 days")>'
16+
id: '<ulid($createdAt)>'
17+
configuration:
18+
feeds: [12345]

fixtures/feed_source.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ App\Entity\Tenant\FeedSource:
33
feed (template):
44
description: <text()>
55
feedType: "App\\Feed\\RssFeedType"
6-
secrets: []
6+
secrets: [ ]
77
supportedFeedOutputType: 'rss'
88
createdAt (unique): '<dateTimeBetween("-2 years", "-2 days")>'
99
modifiedAt: '<dateTimeBetween($createdAt, "-1 days")>'
@@ -14,3 +14,10 @@ App\Entity\Tenant\FeedSource:
1414
feed_source_xyz_2 (extends feed):
1515
title: 'feed_source_xyz_2'
1616
tenant: '@tenant_xyz'
17+
feed_source_abc_notified (extends feed):
18+
title: 'feed_source_abc_notified'
19+
feedType: "App\\Feed\\RssFeedType"
20+
secrets:
21+
token: '1234567890'
22+
supportedFeedOutputType: 'instagram'
23+
tenant: '@tenant_abc'

fixtures/slide.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ App\Entity\Tenant\Slide:
1313
theme: '@theme_abc_1'
1414
feed: '@feed_abc_1'
1515
tenant: '@tenant_abc'
16-
media: [ '@media_abc_*', '@media_abc_*', '@media_abc_*']
16+
media: [ '@media_abc_*', '@media_abc_*', '@media_abc_*' ]
1717
slide_abc_{2..60} (extends slide):
1818
title: 'slide_abc_<current()>'
1919
theme: '@theme_abc_*'
2020
tenant: '@tenant_abc'
21-
media: [ '@media_abc_*', '@media_abc_*', '@media_abc_*']
21+
media: [ '@media_abc_*', '@media_abc_*', '@media_abc_*' ]
2222
slide_def_shared_to_abc (extends slide):
2323
title: 'slide_def_shared_to_abc'
2424
theme: '@theme_def'
@@ -28,3 +28,9 @@ App\Entity\Tenant\Slide:
2828
title: 'slide_xyz_<current()>'
2929
theme: '@theme_xyz'
3030
tenant: '@tenant_xyz'
31+
slide_abc_notified (extends slide):
32+
title: 'slide_abc_notified'
33+
template: '@template_notified'
34+
content:
35+
maxEntries: 6
36+
tenant: '@tenant_abc'

fixtures/template.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ App\Entity\Template:
77
createdAt (unique): '<dateTimeBetween("-2 years", "-2 days")>'
88
modifiedAt: '<dateTimeBetween($createdAt, "-1 days")>'
99
id: '<ulid($createdAt)>'
10+
template_notified:
11+
title: 'template_notified'
12+
description: A template with different that serves notified data
13+
resources: <templateResources()>
14+
createdAt (unique): '<dateTimeBetween("-2 years", "-2 days")>'
15+
modifiedAt: '<dateTimeBetween($createdAt, "-1 days")>'
16+
id: '<ulid($createdAt)>'

infrastructure/os2display/display-api-service/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,5 @@ RUN chmod +x /usr/local/bin/docker-entrypoint.sh
151151

152152
WORKDIR ${APP_PATH}
153153

154-
CMD [ "docker-entrypoint.sh" ]
154+
CMD ["php-fpm"]
155+
ENTRYPOINT [ "docker-entrypoint.sh" ]

infrastructure/os2display/display-api-service/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ if [ "${1#-}" != "$1" ]; then
1717
fi
1818

1919
## Start the PHP FPM process.
20-
echo "Starting PHP 8.2 FPM"
20+
echo "Starting PHP 8.3 FPM"
2121

22-
exec php-fpm "$@"
22+
exec "$@"

0 commit comments

Comments
 (0)