Skip to content

Commit

Permalink
Add template mail modification in migration guide
Browse files Browse the repository at this point in the history
Signed-off-by: freddidierRTE <[email protected]>
  • Loading branch information
freddidierRTE authored and vlo-rte committed Jan 9, 2025
1 parent 412a84c commit b0b2c9e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/docs/asciidoc/resources/migration_guide_to_4.6.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,21 @@ The new default configuration is as such :

For the cards-external-diffusion service, the timezone configuration has been moved from the Dockerfile to the docker-compose.yml file. If nothing is set in the docker compose file, the default value will be the local timezone of your machine.

== Email templates

To be homogeneous with UI templates, it is now necessary to prefix the handlebars variables with "card" in the email templates. For example, the following code

```
<div id="apogee-contingencies">
{{#data.networkContingencies}}
```
is to be changed to
```
<div id="apogee-contingencies">
{{#card.data.networkContingencies}}
```


== Email templates custom parameters
It is now possible to configure custom parameters to be used in handlebars email templates.
The custom parameter can be added in cards-external-diffusion configuration under the "defaultConfig.customConfig" section:
Expand Down Expand Up @@ -119,4 +134,4 @@ There is a script to migrate existing tasks using recurrence object. After the c
endpoint "reset". Example :

- node migration-rrule-recurrence.js <databaseURL> <databasePort> <databaseLogin> <databasePassword> <oldProcessId> <newProcessId> <oldStateId> <newStateId> <newProcessVersion>
- curl http://localhost:2107/reset -H "Authorization:Bearer $token"
- curl http://localhost:2107/reset -H "Authorization:Bearer $token"

0 comments on commit b0b2c9e

Please sign in to comment.