Skip to content

Commit 0d12f93

Browse files
committed
Merge branch 'afup:master' into feat-admin-event-tickets-cleanup
2 parents 55d8c80 + 13a3528 commit 0d12f93

40 files changed

Lines changed: 422 additions & 99 deletions

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @agallou @stakovicz @Mopolo

app/config/packages/valinor.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
valinor:
2+
console:
3+
# When a mapping error occurs during a console command, the output will
4+
# automatically be enhanced to show information about errors. The
5+
# maximum number of errors that will be displayed can be configured
6+
# below, or set to 0 to disable this feature entirely.
7+
mapping_errors_to_output: 15

app/config/routing/admin_event.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ admin_event_special_price:
6161
path: /special_price
6262
defaults: {_controller: AppBundle\Controller\Admin\Event\SpecialPriceAction}
6363

64+
admin_event_special_price_extend:
65+
path: /special_price/{id}/extend
66+
defaults: {_controller: AppBundle\Controller\Admin\Event\ExtendSpecialPriceAction}
67+
requirements:
68+
id: \d+
69+
6470
admin_event_prices:
6571
path: /prices
6672
defaults: {_controller: AppBundle\Controller\Admin\Event\PricesAction }
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash -ex
2+
3+
./node_modules/.bin/webpack -p
4+
php bin/phinx migrate

compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ services:
77
MYSQL_USER: afup
88
MYSQL_PASSWORD: afup
99
MYSQL_DATABASE: web
10-
ports:
11-
- "3606:3306"
1210
volumes:
1311
- ./data/mysql:/var/lib/mysql
1412

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Phinx\Migration\AbstractMigration;
6+
7+
final class AddPhotoUrlToMeetupTable extends AbstractMigration
8+
{
9+
public function change(): void
10+
{
11+
$this->table('afup_meetup')
12+
->addColumn('photo_url', 'string', [
13+
'null' => true,
14+
])
15+
->update();
16+
}
17+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Phinx\Migration\AbstractMigration;
6+
7+
final class SiteFeuilleDatesPublication extends AbstractMigration
8+
{
9+
public function change(): void
10+
{
11+
$this->query('ALTER TABLE afup_site_feuille ADD date_debut_publication int(11) DEFAULT NULL AFTER date, ADD date_fin_publication int(11) DEFAULT NULL AFTER date_debut_publication');
12+
}
13+
}

db/seeds/Feuilles.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,28 @@ public function run(): void
131131
'alt' => 'Membres AFUP, profitez du meilleur de PHP et soyez à jour sur son actualité : abonnez-vous à notre newsletter La Veille de l’AFUP. Progrès du langage, conseils de spécialistes, nouvelles versions, l’AFUP fait la veille pour vous et vous l’envoie par mail.',
132132
'etat' => 1,
133133
],
134+
[
135+
'id_parent' => Feuille::ID_FEUILLE_HEADER,
136+
'nom' => 'Feuille publication passée',
137+
'lien' => '/feuille-publication-passee',
138+
'etat' => 1,
139+
'date_fin_publication' => strtotime('-1 day'),
140+
],
141+
[
142+
'id_parent' => Feuille::ID_FEUILLE_HEADER,
143+
'nom' => 'Feuille publication future',
144+
'lien' => '/feuille-publication-future',
145+
'etat' => 1,
146+
'date_debut_publication' => strtotime('+1 year'),
147+
],
148+
[
149+
'id_parent' => Feuille::ID_FEUILLE_HEADER,
150+
'nom' => 'Feuille publication courante',
151+
'lien' => '/feuille-publication-courante',
152+
'etat' => 1,
153+
'date_debut_publication' => strtotime('-1 year'),
154+
'date_fin_publication' => strtotime('+10 years'),
155+
],
134156
];
135157

136158
$data = array_merge($data, $this->prepareFeuilles($this->getFooter(), Feuille::ID_FEUILLE_FOOTER));

db/seeds/Tarif.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class Tarif extends AbstractSeed
2828
'day' => 'one,two',
2929
'cfp_submitter_only' => false,
3030
];
31-
public const TYPE_ORGANIZATION =
32-
[
31+
public const TYPE_ORGANIZATION
32+
= [
3333
'id' => 9,
3434
'technical_name' => 'AFUP_FORUM_ORGANISATION',
3535
'pretty_name' => 'Organisation',

doc/dev-setup.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Ce document contient des instructions sur la mise en place d'une instance de dé
88
2. [Installation](#installation)
99
- [Variables d'environnement](#variables-denvironnement)
1010
- [Options Docker](#options-docker)
11-
- [Processeurs ARM](#processeurs-arm)
1211
3. [Base de données](#base-de-données)
1312
4. [Tests](#tests)
1413
- [Behat](#behat)
@@ -63,19 +62,6 @@ Par exemple, les ports utilisés pour le site et mailcatcher peuvent être modif
6362

6463
La variable d'environnement `DOCKER_UP_OPTIONS` permet de passer des options à la commande `docker compose up` (via `make docker-up`).
6564

66-
### Processeurs ARM
67-
68-
Pour faire fonctionner les images des bases de données (site et tests) sur un processeur ARM (par exemple sur Mac) il
69-
faut ajouter une surcharge dans le fichier `compose.override.yml` :
70-
71-
```yaml
72-
services:
73-
db:
74-
platform: linux/amd64
75-
dbtest:
76-
platform: linux/amd64
77-
```
78-
7965
## Base de données
8066

8167
### MySQL

0 commit comments

Comments
 (0)