This commit splits the `test` job into three separate jobs:
- test
- lint
- db:migrate
It also factorise some code, and remove useless use of git checkout
Now the bahavior matches the comments in config.php:
// Fully qualified domain name of your webserver.
// If this is unset or empty, the servername is determined automatically.
// You *have to set this* if you are running Framadate behind a reverse proxy.
// const APP_URL = '<www.mydomain.fr>';
The current `html2text` function from the PHPMailer library strips all
html tags and only keeps the inner html.
In the case of <a> tags we need to share the `href` attribute to the
user when he reads his mail in plain text format.
Fixes #419
msgHTML builds the text/plain part by converting the passed html to text in the current CharSet; the default Charset being iso-8859-1, most non-ascii characters are lost.
fixes #416
As a followup to #362 this is a small addition to the log service when
we want to log a list of entries into a single message.
The log service can itself make sure to escape commas instead of
expecting callers to do so.
An [earlier
change](892fa11373)
modifed the user's input when creating new columns in an existing
Poll.
Indeed all `,` comma were replaced by `-` dashes and the user inputs
was saved as such.
It seems the rational behind it was to keep the existing "formatting"
of log messages where different elements were separated by commas.
This commit makes sure to not strip the users' data but only the
logged message.
Fixes #384
In the case where the proxy does not pass `HTTP_X_FORWARDED_PROTO`, we need a way to explicitly request `https://` scheme on callbacks.
This change adds a constant `FORCE_HTTPS` which can be used to forcibly override automatic detection of HTTPS usage, when set.
* Make sure we save timestamp as a string (🙈) inside slot table
* Make sure to set poll format properly at creation
* More Repository methods use DBAL specifics
* Clear legacy check all tables call
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Move the database handling to Doctrine DBAL
* Move Migrations to Doctrine Migrations
* Rename migrations for Doctrine Migrations Uses
* Fix Migrations
* Change config parameters, introduce db name, host and port parameters and get rid of database url
* Change install form for this
* Add a CLI command to make migrations
* Add config.test.php to be used with APP_ENV=test for testing
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
CS
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Add sqlite to CI and execute migration in test env
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Typo
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
SQLite is already inside the image...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Rebase two new migrations
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Move from trait to abstract class and remove legacy migration table after checks
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
CS
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Move doctrine command path inside CI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Move abstract migration class to correct namespace and remove unused command
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
CS
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Check for legacy migration table existence
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Check if legacy migration table exists before deleting it
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Add messages for skipped migrations and fix an issue with MySQL ERR_NO_DATE Migration
Signed-off-by: Thomas Citharel <tcit@tcit.fr>