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

Added tag v1.2.1 #45

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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 .db_requirements
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.13
v0.1.1
26 changes: 25 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ COOKIE_NAME=WOOPID
TOTP_ISSUER=localhost

# Application mode. Could be only for balie (backend), frontend, or both
APP_MODE=both
APP_MODE=BOTH

# Base URL of the application frontend (which could different from backend when APP_MODE is not BOTH)
PUBLIC_BASE_URL=http://localhost:8000
Expand All @@ -86,3 +86,27 @@ STORAGE_MINIO_BATCH_BUCKET=batch_bucket
# -----------------------------------------------------
# Identification number for Piwik analytics
PIWIK_ANALYTICS_ID=0

###> php-amqplib/rabbitmq-bundle ###
RABBITMQ_URL=amqp://guest:guest@localhost:5672
###< php-amqplib/rabbitmq-bundle ###

#------------------------------------------------------
# audit logger variables
# Generate keys with "php bin/console woopie:auditlog:generate-keys"
AUDITLOG_ENCRYPTION_PUB_KEY=
AUDITLOG_ENCRYPTION_PRIV_KEY=

AUDITLOG_PSR_ENCRYPTED=false
AUDITLOG_PSR_LOG_PII=false

AUDITLOG_DOCTRINE_ENCRYPTED=false
AUDITLOG_DOCTRINE_LOG_PII=false

AUDITLOG_RABBITMQ_ENCRYPTED=false
AUDITLOG_RABBITMQ_LOG_PII=false
AUDITLOG_RABBITMQ_ROUTING_KEY=auditlog

AUDITLOG_FILE_ENCRYPTED=false
AUDITLOG_FILE_LOG_PII=false
AUDITLOG_FILE_PATH=%kernel.logs_dir%/audit.log
14 changes: 13 additions & 1 deletion .env.ci
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ COOKIE_NAME=WOOPID

TOTP_ISSUER=localhost

APP_MODE=both
APP_MODE=BOTH
PUBLIC_BASE_URL=http://localhost:8000


Expand All @@ -39,3 +39,15 @@ STORAGE_THUMBNAIL_ADAPTER=local
STORAGE_BATCH_ADAPTER=local

PIWIK_ANALYTICS_ID=0

#------------------------------------------------------
# audit logger variables
AUDITLOG_ENCRYPTION_PUB_KEY=
AUDITLOG_ENCRYPTION_PRIV_KEY=

AUDITLOG_PSR_ENCRYPTED=false
AUDITLOG_DOCTRINE_ENCRYPTED=false
AUDITLOG_RABBITMQ_ENCRYPTED=false
AUDITLOG_FILE_ENCRYPTED=false
AUDITLOG_FILE_PATH=%kernel.logs_dir%/audit.log

12 changes: 11 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,21 @@ COOKIE_NAME=WOOPID

TOTP_ISSUER=localhost

APP_MODE=both
APP_MODE=BOTH
PUBLIC_BASE_URL=http://localhost:8000

STORAGE_DOCUMENT_ADAPTER=local
STORAGE_THUMBNAIL_ADAPTER=local
STORAGE_BATCH_ADAPTER=local

PIWIK_ANALYTICS_ID=0

AUDITLOG_ENCRYPTION_PUB_KEY=
AUDITLOG_ENCRYPTION_PRIV_KEY=

AUDITLOG_PSR_ENCRYPTED=false
AUDITLOG_DOCTRINE_ENCRYPTED=false
AUDITLOG_RABBITMQ_ENCRYPTED=false
AUDITLOG_FILE_ENCRYPTED=false
AUDITLOG_FILE_PATH=%kernel.logs_dir%/audit.log
RABBITMQ_URL=amqp://guest:guest@rabbitmq:5672
2 changes: 1 addition & 1 deletion .github/workflows/daily-e2e-robotrun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/documentation-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
name: lint markDown file
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DavidAnson/markdownlint-cli2-action@v12
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v13
with:
globs: '**/*.md'

Expand Down
80 changes: 80 additions & 0 deletions .github/workflows/migration-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Check for missing migrations

on:
pull_request:
branches: [ main ]

jobs:
sync:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Checkout db
uses: actions/checkout@v4
with:
repository: minvws/nl-rdo-databases
ref: 'main'
token: ${{ secrets.repo_read_only_token }}
path: './database'

- name: check for missing migrations
id: migration_check
run: |
# Run the script and store the output
set +e
OUT="$(sh .github/scripts/check-missing-migrations.sh)"
RETVAL=$?
set -e

EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64 | tr -dc 'a-zA-Z0-9')
{
echo "output<<$EOF"
echo "$OUT"
echo "$EOF"
if [[ $RETVAL -eq 1 ]] ; then
echo "missing_migrations=true"
else
echo "missing_migrations=false"
fi
} >> "$GITHUB_OUTPUT"

- name: debug it
run: |
echo ${{ steps }}
echo $GITHUB_OUTPUT
echo $GITHUB_STATE

# Find the comment
- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: Missing Database Migrations

# Create a comment when migrations are missing in the db repo
- name: Create comment
if: contains(steps.migration_check.outputs.missing_migrations, 'true')
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
edit-mode: replace
body: |
## 🦙🦙 Missing Database Migrations detected
```
${{ steps.migration_check.outputs.output }}
```
👨‍💻 Please run `php bin/console woopie:sql:dump` to create the SQL migrations files, and add them to the database repository to get rid of this message.

# Remove comment if no missing migrations
- if: ${{ contains(steps.git.outputs.missing_migrations, 'false') && steps.fc.outputs.comment-id != '' }}
uses: actions/github-script@v6
with:
script: |
github.rest.issues.deleteComment({
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: ${{ steps.fc.outputs.comment-id }}
})
2 changes: 1 addition & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/php-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
composer-install:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: vendor/
Expand All @@ -22,7 +22,9 @@ jobs:
php-version: ${{ matrix.php-versions }}
extensions: zip
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
env:
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.REPO_READ_ONLY_TOKEN }}"}}'
run: composer install --no-interaction --no-scripts --no-progress --prefer-dist
strategy:
max-parallel: 3
matrix:
Expand All @@ -33,7 +35,7 @@ jobs:
- composer-install
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: vendor/
Expand All @@ -59,7 +61,7 @@ jobs:
- composer-install
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: vendor/
Expand All @@ -81,7 +83,7 @@ jobs:
- composer-install
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: vendor/
Expand All @@ -103,7 +105,7 @@ jobs:
- composer-install
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: vendor/
Expand Down Expand Up @@ -132,7 +134,7 @@ jobs:
- composer-install
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: vendor/
Expand All @@ -154,7 +156,7 @@ jobs:
- composer-install
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: vendor/
Expand Down
Loading