Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean(ZMS-3429): Resolve merge conflicts from next #853

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
c0d01ac
feat(ZMS-3430): create db indices
manjencic Dec 17, 2024
97eab17
feat(ZMS-3499) refresh queue even when losing focus
MoDaae Jan 20, 2025
1f16745
feat(ZMS-3430): add indexes
manjencic Jan 21, 2025
73ba9d8
Merge remote-tracking branch 'origin/next' into feature-zms-3430-crea…
MoDaae Jan 22, 2025
88dba83
feat(ZMS-3430): remove indexes
manjencic Jan 21, 2025
96dc67d
feat(ZMS-3519) sortierung für queueList
MoDaae Jan 23, 2025
1c913a8
feat(ZMS-3430): fix test
manjencic Jan 23, 2025
cfff729
Merge branch 'next' of https://github.com/it-at-m/eappointment into Z…
MoDaae Jan 27, 2025
b6df7d6
Merge branch 'next' of https://github.com/it-at-m/eappointment into f…
MoDaae Jan 27, 2025
6c4f1ad
feat(ZMS-3503): added logic to end emergency with checkbox
msfb3 Jan 30, 2025
2c41030
feat(ZMS-3503): removed console.log and unesscessy function
msfb3 Jan 30, 2025
0db8598
feat(ZMS-3503): removed console.log and unesscessy function
msfb3 Jan 30, 2025
e642fb0
feat(ZMS-3503): removed console.log and unnecessary functions
msfb3 Jan 31, 2025
199237e
fix(deps): update dependency phpoffice/phpspreadsheet to v1.29.8 [sec…
renovate[bot] Feb 3, 2025
2fa7c15
chore(deps): update dependency sass to v1.83.4 (#806)
renovate[bot] Feb 3, 2025
a67a422
feat(ZMS-3507): redirect without appointment (#775)
manjencic Feb 3, 2025
ee28a78
fix(deps): update dependency phpoffice/phpspreadsheet to v1.29.9 [sec…
renovate[bot] Feb 3, 2025
3aa65ca
feat(ZMS-3503): added explanation to the function
msfb3 Feb 4, 2025
2e48f50
feat(ZMS-3499) Tabelle für die Warteschlange wird aktualisiert auch b…
MoDaae Feb 4, 2025
2b696a9
Merge remote-tracking branch 'origin/next' into ZMS-3519-clusteransic…
MoDaae Feb 4, 2025
cdbcd5b
Merge remote-tracking branch 'origin/next' into feature-zms-3499-auto…
MoDaae Feb 4, 2025
7565e11
Merge pull request #805 from it-at-m/feature-zms-3503-disable-emercer…
msfb3 Feb 4, 2025
3fab002
Merge pull request #815 from it-at-m/ZMS-3519-clusteransicht-sortieru…
MoDaae Feb 4, 2025
7fdf903
feat(ZMS-3460): create endpoint for free appointments grouped by offi…
manjencic Feb 5, 2025
160dae9
Merge pull request #816 from it-at-m/feature-zms-3499-auto-refresh-queue
MoDaae Feb 6, 2025
a7b3a64
fix(ZMS): show alternative locations for offices (#820)
ThomasAFink Feb 6, 2025
0098861
Merge pull request #821 from it-at-m/feature-zms-3430-create-db-indices
MoDaae Feb 6, 2025
c1602ee
fix(zms): Update .env.template local env
ThomasAFink Feb 7, 2025
4e9ebac
Next into test (#823)
ThomasAFink Feb 7, 2025
2fddd29
docs(ZMS): Update README.md add buergeransicht screenshot
ThomasAFink Feb 7, 2025
41c9304
Merge branch 'main' into test
Feb 7, 2025
676248e
Merge branch 'test' into next
Feb 7, 2025
e748ef8
docs(ZMS): Update README.md add logos
ThomasAFink Feb 7, 2025
144412d
Merge branch 'main' into test
Feb 7, 2025
1ae01c2
Merge branch 'test' into next
Feb 7, 2025
1de26b1
chore(ZMS-3414): reenable php code quality checks github actions (#765)
MoDaae Feb 10, 2025
4b35de5
chore(ZMS): Cleanup github workflow and deploy test coverage to githu…
ThomasAFink Feb 10, 2025
d34b131
fix(ZMS): add missing test coverage (#841)
ThomasAFink Feb 10, 2025
b15c28f
fix(deps): update dependency giggsey/libphonenumber-for-php to v8.13.…
renovate[bot] Feb 10, 2025
9f84ac3
chore(deps): update dependency helmich/phpunit-psr7-assert to v4.4.1 …
renovate[bot] Feb 10, 2025
d7b7e26
fix(ZMS): fix zmsdldb coverage report
Feb 10, 2025
e655303
fix(ZMS): fix zmsdldb coverage report
Feb 10, 2025
720e8ad
fix(ZMS): fix zmsdldb coverage report
Feb 10, 2025
df45d71
chore(deps): update dependency phpspec/prophecy-phpunit to v2.3.0 (#843)
renovate[bot] Feb 10, 2025
d19ecc1
chore(deps): update dependency postcss to v8.5.2 (#844)
renovate[bot] Feb 10, 2025
7b32706
chore(deps): update dependency sass to v1.84.0 (#845)
renovate[bot] Feb 10, 2025
80d5649
fix(deps): update dependency firebase/php-jwt to v6.11.0 (#846)
renovate[bot] Feb 11, 2025
9729105
chore(deps): update mariadb docker tag to v10.11 (#847)
renovate[bot] Feb 11, 2025
e60dadc
chore(deps): update parcel monorepo to v2.13.3 (#848)
renovate[bot] Feb 11, 2025
cf3b1b5
Merge branch 'next' into zms-3429-temp-tom
ThomasAFink Feb 11, 2025
5df6837
clean(ZMS-3429): merge next into feature branch, fix unit test and fo…
Feb 11, 2025
9ff892d
clean(ZMS-3429): add todo for complexity
Feb 11, 2025
663be18
clean(ZMS-3429): add todo for complexity
Feb 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .ddev/.env.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ZMS Core
ZMS_API_URL=https://localhost/terminvereinbarung/api/2
ZMS_API_URL=https://zms.ddev.site/terminvereinbarung/api/2
ZMS_CRONROOT=1
ZMS_ENV=dev
#ZMS_TIMEADJUST='2016-04-01 H:i'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
# Workflow for deploying API documentation to Pages
name: Deploy API Documentation to Pages
name: Build API Documentation

on:
push:
branches: ["main"]
workflow_dispatch:
workflow_call:
outputs:
result:
description: "Build result"
value: ${{ jobs.build.outputs.result }}

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
build:
runs-on: ubuntu-latest

outputs:
result: ${{ steps.set-result.outputs.result }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -70,14 +63,15 @@ jobs:
npx swagger-cli bundle -o public/doc/swagger.json public/doc/swagger.yaml
cd ..

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- name: Upload API docs artifact
uses: actions/upload-artifact@v4
with:
path: '.'
name: api-docs
path: |
zmsapi/public/doc/
zmscitizenapi/public/doc/

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Set job result
id: set-result
if: always()
run: echo "result=${{ job.status }}" >> $GITHUB_OUTPUT
55 changes: 55 additions & 0 deletions .github/workflows/combined-workflow-with-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Combined Workflow with Documentation

on:
push:
branches: [next]

permissions:
contents: read
packages: write
pages: write
id-token: write

jobs:
call-php-code-quality:
uses: ./.github/workflows/php-code-quality.yaml

call-php-unit-tests:
uses: ./.github/workflows/php-unit-tests.yaml

combine-php-test-coverage:
needs: [call-php-unit-tests]
runs-on: ubuntu-latest
steps:
- name: Download all coverage reports
uses: actions/download-artifact@v4
with:
pattern: 'coverage-*'
path: public/coverage
merge-multiple: false

- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage-reports
path: public/coverage/
retention-days: 7

call-build-api-docs:
uses: ./.github/workflows/build-api-docs.yaml

deploy-to-pages:
needs: [combine-php-test-coverage, call-build-api-docs]
if: needs.call-build-api-docs.result == 'success'
uses: ./.github/workflows/deploy-pages.yaml
with:
coverage_artifact: coverage-reports
api_docs_artifact: api-docs

call-php-build-images:
needs: [call-php-code-quality, call-php-unit-tests]
if: |
always() &&
needs.call-php-code-quality.result == 'success' &&
needs.call-php-unit-tests.result == 'success'
uses: ./.github/workflows/php-build-images.yaml
26 changes: 20 additions & 6 deletions .github/workflows/combined-workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
name: Combined Workflow

on: [push]
on:
push:
branches-ignore: [next]
workflow_call:

permissions:
contents: read
packages: write

jobs:
call-unit-tests:
uses: ./.github/workflows/unit-tests.yaml
call-php-code-quality:
uses: ./.github/workflows/php-code-quality.yaml

call-php-unit-tests:
uses: ./.github/workflows/php-unit-tests.yaml

call-build-images:
needs: call-unit-tests
uses: ./.github/workflows/build-images.yaml
call-php-build-images:
needs: [call-php-code-quality, call-php-unit-tests]
if: |
always() &&
needs.call-php-code-quality.result == 'success' &&
needs.call-php-unit-tests.result == 'success'
uses: ./.github/workflows/php-build-images.yaml
147 changes: 147 additions & 0 deletions .github/workflows/deploy-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
name: Deploy to GitHub Pages

on:
workflow_call:
inputs:
coverage_artifact:
description: 'Name of the coverage reports artifact'
required: true
type: string
default: 'coverage-reports'
api_docs_artifact:
description: 'Name of the API documentation artifact'
required: true
type: string
default: 'api-docs'

permissions:
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Create public directory
run: mkdir -p public

- name: Download coverage reports
uses: actions/download-artifact@v4
with:
name: ${{ inputs.coverage_artifact }}
path: public/coverage

- name: Download API docs
uses: actions/download-artifact@v4
with:
name: ${{ inputs.api_docs_artifact }}
path: public

- name: Create index page
run: |
cat > public/index.html <<'EOL'
<!DOCTYPE html>
<html>
<head>
<title>eAppointment Documentation</title>
<style>
:root {
--primary: #0366d6;
--bg: #ffffff;
--text: #24292e;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
line-height: 1.6;
color: var(--text);
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
background: var(--bg);
}
h1, h2 {
border-bottom: 1px solid #eaecef;
padding-bottom: 0.3em;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin: 2rem 0;
}
.card {
background: #f6f8fa;
border-radius: 6px;
padding: 1.5rem;
}
.card h2 {
margin-top: 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
margin: 0.5rem 0;
}
a {
color: var(--primary);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<h1>ZMS eAppointment Technical Documentation</h1>

<div class="grid">
<div class="card">
<h2>API Documentation</h2>
<ul>
<li><a href="https://it-at-m.github.io/eappointment/zmscitizenapi/public/doc/index.html">Zmscitizenapi API Documentation</a></li>
<li><a href="https://it-at-m.github.io/eappointment/zmsapi/public/doc/index.html">Zmsapi Documentation</a></li>
</ul>
</div>

<div class="card">
<h2>Code Test Coverage Reports</h2>
<ul>
<li><a href="coverage/coverage-zmsadmin/html/">Zmsadmin Coverage</a></li>
<li><a href="coverage/coverage-zmscalldisplay/html/">Zmscalldisplay Coverage</a></li>
<li><a href="coverage/coverage-zmscitizenapi/html/">Zmscitizenapi Coverage</a></li>
<li><a href="coverage/coverage-zmsdldb/html/">Zmsdldb Coverage</a></li>
<li><a href="coverage/coverage-zmsentities/html/">Zmsentities Coverage</a></li>
<li><a href="coverage/coverage-zmsmessaging/html/">Zmsmessaging Coverage</a></li>
<li><a href="coverage/coverage-zmsslim/html/">Zmsslim Coverage</a></li>
<li><a href="coverage/coverage-zmsstatistic/html/">Zmsstatistic Coverage</a></li>
<li><a href="coverage/coverage-zmsticketprinter/html/">Zmsticketprinter Coverage</a></li>
<li><a href="coverage/coverage-zmsapi/html/">Zmsapi Coverage</a></li>
<li><a href="coverage/coverage-zmsdb/html/">Zmsdb Coverage</a></li>
<li><a href="coverage/coverage-zmsclient/html/">Zmsclient Coverage</a></li>
</ul>
</div>
</div>
</body>
</html>
EOL

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: public

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
59 changes: 59 additions & 0 deletions .github/workflows/php-code-quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: code quality

on:
workflow_call:

jobs:
module-code-quality:
runs-on: ubuntu-latest
container:
image: "ghcr.io/it-at-m/eappointment-php-base:${{ matrix.php_version }}-dev"
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Composer Dependencies
run: |
cd "${{ matrix.module }}"
composer install --no-progress --prefer-dist --optimize-autoloader

- name: PHPCS / PSR-12
run: |
cd "${{ matrix.module }}"
echo "Running phpcs (ignoring warnings)..."
vendor/bin/phpcs --standard=psr12 --warning-severity=0 src/

- name: PHPMD
run: |
cd "${{ matrix.module }}"
echo "Running phpmd..."
vendor/bin/phpmd src/ text ../phpmd.rules.xml

strategy:
fail-fast: false
matrix:
include:
- module: zmsadmin
php_version: "8.0"
- module: zmsapi
php_version: "8.0"
- module: zmscalldisplay
php_version: "8.0"
- module: zmscitizenapi
php_version: "8.0"
- module: zmsclient
php_version: "8.0"
- module: zmsdb
php_version: "8.0"
- module: zmsdldb
php_version: "8.0"
- module: zmsentities
php_version: "8.0"
- module: zmsmessaging
php_version: "8.0"
- module: zmsslim
php_version: "8.0"
- module: zmsstatistic
php_version: "8.0"
- module: zmsticketprinter
php_version: "8.0"
Loading
Loading