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

Release/1.0.0 #53

Merged
merged 63 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
08ecac3
2547: Update dependencies
turegjorup Oct 2, 2024
9bb0848
2547: Set import schedule minute
turegjorup Oct 2, 2024
903eef6
2547: Use foreach over readFeeds call
turegjorup Oct 2, 2024
d67ed09
2547: Use foreach over index populate call
turegjorup Oct 2, 2024
b492ed2
2691: Added "accept terms"
turegjorup Oct 17, 2024
ea9c394
2690: Added access control for user create/edit
turegjorup Oct 21, 2024
b34e470
2690: Added access control for event create/edit
turegjorup Oct 21, 2024
95583cd
2690: Updated access control for event create/edit
turegjorup Oct 21, 2024
aea43b6
2690: Added access control for organization create/edit
turegjorup Oct 21, 2024
1cf9bf4
2690: Added profiler to dev setup
turegjorup Oct 22, 2024
5205c0c
2690: Allow access to registration page
turegjorup Oct 22, 2024
0197867
2690: Consolidate migrations
turegjorup Oct 22, 2024
f1d10e2
2690: Implement access model
turegjorup Oct 22, 2024
e623fc5
2690: Update design and translations
turegjorup Oct 22, 2024
048d9a7
2690: Add scheduled command to clean up failed messages
turegjorup Oct 22, 2024
3961b04
2690: Code style fixes
turegjorup Oct 22, 2024
abafbbb
2690: Fix psalm errors
turegjorup Oct 22, 2024
02b6dd9
2690: Fix ID field on Event
turegjorup Oct 22, 2024
98c047a
2690: Fix event create permission
turegjorup Oct 22, 2024
41c9e07
2690: User field permissions
turegjorup Oct 22, 2024
60cbcb9
2690: Fix event create permission
turegjorup Oct 22, 2024
5d3b398
2547: Fix imports
turegjorup Nov 5, 2024
d8e23aa
2547: Update dependencies
turegjorup Nov 5, 2024
8c6793d
2547: Admin UI adjustments
turegjorup Nov 8, 2024
a4000d5
2547: Add event delete command
turegjorup Nov 11, 2024
0876c3a
Fix nullable type for user id
turegjorup Nov 18, 2024
5e5e756
Fix nullable type for user id
turegjorup Nov 18, 2024
a3ddea0
2547: Fix filters error on "My Events" page
turegjorup Nov 19, 2024
f830cc9
2547: Update email config
turegjorup Nov 19, 2024
7e389bb
2547: Update Login succes listener
turegjorup Nov 20, 2024
463edd5
2547: Fix user delete issue
turegjorup Nov 20, 2024
8bf1ede
2547: Disable avatar image in menu
turegjorup Nov 20, 2024
fc8f0a4
2547: User create bug fix
turegjorup Nov 20, 2024
3d73ee2
2547: Landing page
turegjorup Nov 22, 2024
a012383
3096: Update dependencies
turegjorup Nov 26, 2024
e467cb3
3096: Update doctrine flex recipie
turegjorup Nov 26, 2024
b1ad602
3096: Update symfony/console flex recipie
turegjorup Nov 26, 2024
d47f12f
3096: Update symfony/framework-bundle flex recipie
turegjorup Nov 26, 2024
713b3f9
3096: Update symfony/mailer flex recipie
turegjorup Nov 26, 2024
e8acf12
3096: Update symfony/monolog-bundle flex recipie
turegjorup Nov 26, 2024
e78f331
3096: Update symfony/phpunit-bridge flex recipie
turegjorup Nov 26, 2024
17eb8e8
3096: Update symfony/security-bundle flex recipie
turegjorup Nov 26, 2024
c5a2a77
3096: Update symfony/translation flex recipie
turegjorup Nov 26, 2024
4791449
3096: Update symfony/twig-bundle flex recipie
turegjorup Nov 26, 2024
e866641
3096: Update symfony/framework-bundle flex recipie
turegjorup Nov 26, 2024
0b69022
3096: Fix image path for uploaded images
turegjorup Nov 26, 2024
3e64b2a
3096: Add missing bundle to config/bundles.php
turegjorup Nov 26, 2024
8504a3f
3096: Refactor templates, add aak logo to template
turegjorup Nov 27, 2024
00ff888
3096: Update path to styling
turegjorup Nov 27, 2024
dc9bc96
3096: Fix image path for uploaded images
turegjorup Nov 27, 2024
0de1ed4
3096: Fix image path for uploaded images
turegjorup Nov 27, 2024
d757e86
3096: Fix parameter order
turegjorup Nov 27, 2024
05f22ed
3096: Cleanup APP_DEFAULT_URI config
turegjorup Nov 28, 2024
3257a44
3096: Minor bug and style fixes
turegjorup Dec 2, 2024
a14bfca
2432: Add favicon
turegjorup Dec 3, 2024
03e3bbf
2432: Template fix
turegjorup Dec 4, 2024
12cbe34
2432: Expand event delete command to work by feed
turegjorup Dec 4, 2024
72505c4
3136: removed path prefix (Legacy db moved under /v1)
turegjorup Dec 4, 2024
44f4960
3136: Re-add env variable
turegjorup Dec 4, 2024
d86b0df
3136: Fix landing page login action
turegjorup Dec 4, 2024
024f407
2547: Added automatic deployment
cableman Dec 13, 2024
1c96241
2547: Updated change log
cableman Dec 13, 2024
70b0103
2547: Fixed code style
cableman Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ SYMFONY_DEPRECATIONS_HELPER=verbose=0
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=8.0.32&charset=utf8mb4"
# DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=15&charset=utf8"
DATABASE_URL="mysql://db:db@mariadb:3306/db?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
###< doctrine/doctrine-bundle ###
Expand All @@ -48,7 +47,7 @@ LOCK_DSN=flock
###< symfony/lock ###

###> symfony/mailer ###
MAILER_DSN=smtp://mail:1025
MAILER_DSN=smtp://mail:1025?verify_peer=0&auto_tls=false
###< symfony/mailer ###

######## App Scope ########
Expand All @@ -64,6 +63,9 @@ APP_DEFAULT_URI=http://event-database-imports.local.itkdev.dk
APP_PATH_PREFIX=/admin
ALLOWED_IMAGE_MIME_TYPES='["image/jpeg", "image/png"]'

[email protected]
[email protected]
[email protected]
SITE_NAME="Danish event database (version 2.x)"
SITE_DOMAIN=event-database-imports.local.itkdev.dk

SCHEDULED_IMPORT_MONITORING_URL=''
SCHEDULED_POPULATE_MONITORING_URL=''
45 changes: 45 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
push:
tags:
- '*.*.*'

name: Create Github Release

permissions:
contents: write

jobs:
create-release:
runs-on: ubuntu-latest
env:
COMPOSER_ALLOW_SUPERUSER: 1
APP_ENV: prod
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Composer install
run: |
docker network create frontend
docker compose run --rm --user=root phpfpm composer install --no-dev --optimize-autoloader
docker compose run --rm --user=root phpfpm composer clear-cache

- name: Make assets dir
run: |
mkdir -p ../assets

- name: Create archive
run: |
sudo chown -R runner:runner ./
tar --exclude='.git' -zcf ../assets/${{ github.event.repository.name }}-${{ github.ref_name }}.tar.gz ./

- name: Create checksum
run: |
cd ../assets
sha256sum ${{ github.event.repository.name }}-${{ github.ref_name }}.tar.gz > ../assets/checksum.txt

- name: Create a release in GitHub and uploads assets
run: gh release create ${{ github.ref_name }} --verify-tag --generate-notes ../assets/*.*
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
shell: bash
24 changes: 24 additions & 0 deletions .woodpecker/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
when:
- event: release

skip_clone: true

steps:
- name: Ansible playbook
image: itkdev/ansible-plugin:1
pull: true
settings:
id:
from_secret: id
secret:
from_secret: secret
host:
from_secret: host
path:
from_secret: path
user:
from_secret: user
playbook: 'release'
pre_up:
- itkdev-docker-compose-server run --rm phpfpm bin/console doctrine:migrations:migrate --no-interaction
- itkdev-docker-compose-server run --rm phpfpm bin/console cache:clear
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ See [keep a changelog] for information about writing changes to this log.

## [Unreleased]

### Added
## [1.0.0] - 2024-12-13

- Symfony core
- Messenger
Expand Down Expand Up @@ -57,3 +57,4 @@ See [keep a changelog] for information about writing changes to this log.

[keep a changelog]: https://keepachangelog.com/en/1.1.0/
[unreleased]: https://github.com/itk-dev/event-database-imports/compare/main...develop
[1.0.0]: https://github.com/itk-dev/event-database-imports/releases/tag/1.0.0
4 changes: 4 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;

if (!is_dir(dirname(__DIR__).'/vendor')) {
throw new LogicException('Dependencies are missing. Try running "composer install".');
}

if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}
Expand Down
10 changes: 7 additions & 3 deletions bin/phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ if (!ini_get('date.timezone')) {
}

if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
require PHPUNIT_COMPOSER_INSTALL;
PHPUnit\TextUI\Command::main();
if (PHP_VERSION_ID >= 80000) {
require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
} else {
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
require PHPUNIT_COMPOSER_INSTALL;
PHPUnit\TextUI\Command::main();
}
} else {
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"php": ">=8.3",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-pdo": "*",
"cerbero/json-parser": "^1.0",
"cuyz/valinor": "^1.4",
"doctrine/doctrine-bundle": "^2.10",
Expand Down Expand Up @@ -53,6 +54,7 @@
"symfony/twig-bundle": "6.4.*",
"symfony/validator": "6.4.*",
"symfony/yaml": "6.4.*",
"symfonycasts/reset-password-bundle": "^1.23",
"symfonycasts/verify-email-bundle": "^1.16"
},
"require-dev": {
Expand All @@ -64,6 +66,8 @@
"symfony/css-selector": "6.4.*",
"symfony/maker-bundle": "^1.49",
"symfony/phpunit-bridge": "^6.3",
"symfony/stopwatch": "^6.4",
"symfony/web-profiler-bundle": "^6.4",
"vimeo/psalm": "^5.13",
"weirdan/doctrine-psalm-plugin": "^2.8"
},
Expand Down Expand Up @@ -122,7 +126,7 @@
"./vendor/bin/psalm --no-cache"
],
"queues": [
"bin/console messenger:consume async_priority_high --failure-limit=1 -vvv"
"bin/console messenger:consume async scheduler_default --failure-limit=1 -vvv"
],
"elastic-fix-flood": [
"curl -X PUT \"elasticsearch:9200/_cluster/settings?pretty\" -H 'Content-Type: application/json' -d'\n{\n \"persistent\": {\n \"cluster.routing.allocation.disk.watermark.low\": \"90%\",\n \"cluster.routing.allocation.disk.watermark.low.max_headroom\": \"100MB\",\n \"cluster.routing.allocation.disk.watermark.high\": \"98%\",\n \"cluster.routing.allocation.disk.watermark.high.max_headroom\": \"20MB\",\n \"cluster.routing.allocation.disk.watermark.flood_stage\": \"99%\",\n \"cluster.routing.allocation.disk.watermark.flood_stage.max_headroom\": \"5MB\",\n \"cluster.routing.allocation.disk.watermark.flood_stage.frozen\": \"99%\",\n \"cluster.routing.allocation.disk.watermark.flood_stage.frozen.max_headroom\": \"5MB\"\n }\n}\n'",
Expand Down
Loading
Loading