diff --git a/TestEventHandlerWithFailureContext.html b/TestEventHandlerWithFailureContext.html index a62abfb64e..eae5737082 100644 --- a/TestEventHandlerWithFailureContext.html +++ b/TestEventHandlerWithFailureContext.html @@ -221,9 +221,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento Web.epub b/Trento Web.epub index bb873f1ee7..55629cbf36 100644 Binary files a/Trento Web.epub and b/Trento Web.epub differ diff --git a/Trento.Abilities.html b/Trento.Abilities.html index 1a1e2691c6..5d95a98873 100644 --- a/Trento.Abilities.html +++ b/Trento.Abilities.html @@ -259,8 +259,8 @@

change_ability(ability, attrs \\ %{})

Examples -
iex> change_ability(ability)
-%Ecto.Changeset{data: %Ability{}}
+
iex> change_ability(ability)
+%Ecto.Changeset{data: %Ability{}}
@@ -290,11 +290,11 @@

create_ability(attrs \\ %{})

Examples -
iex> create_ability(%{field: value})
-{:ok, %Ability{}}
+
iex> create_ability(%{field: value})
+{:ok, %Ability{}}
 
-iex> create_ability(%{field: bad_value})
-{:error, %Ecto.Changeset{}}
+
iex> create_ability(%{field: bad_value}) +{:error, %Ecto.Changeset{}}
@@ -322,11 +322,11 @@

delete_ability(ability)

Examples -
iex> delete_ability(ability)
-{:ok, %Ability{}}
+
iex> delete_ability(ability)
+{:ok, %Ability{}}
 
-iex> delete_ability(ability)
-{:error, %Ecto.Changeset{}}
+
iex> delete_ability(ability) +{:error, %Ecto.Changeset{}}
@@ -354,10 +354,10 @@

get_ability!(id)

Examples -
iex> get_ability!(123)
-%Ability{}
+
iex> get_ability!(123)
+%Ability{}
 
-iex> get_ability!(456)
+iex> get_ability!(456)
 ** (Ecto.NoResultsError)
@@ -386,8 +386,8 @@

list_abilities()

Examples -
iex> list_abilities()
-[%Ability{}, ...]
+
iex> list_abilities()
+[%Ability{}, ...]
@@ -415,11 +415,11 @@

update_ability(ability, attrs)

Examples -
iex> update_ability(ability, %{field: new_value})
-{:ok, %Ability{}}
+
iex> update_ability(ability, %{field: new_value})
+{:ok, %Ability{}}
 
-iex> update_ability(ability, %{field: bad_value})
-{:error, %Ecto.Changeset{}}
+
iex> update_ability(ability, %{field: bad_value}) +{:error, %Ecto.Changeset{}}
diff --git a/Trento.Clusters.Projections.ClusterProjector.html b/Trento.Clusters.Projections.ClusterProjector.html index 6d54b4a3ec..ad06909946 100644 --- a/Trento.Clusters.Projections.ClusterProjector.html +++ b/Trento.Clusters.Projections.ClusterProjector.html @@ -249,9 +249,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.DataCase.html b/Trento.DataCase.html index 39298b4c70..47cd8f2945 100644 --- a/Trento.DataCase.html +++ b/Trento.DataCase.html @@ -208,9 +208,9 @@

errors_on(changeset)

-

A helper that transforms changeset errors into a map of messages.

assert {:error, changeset} = Accounts.create_user(%{password: "short"})
-assert "password is too short" in errors_on(changeset).password
-assert %{password: ["password is too short"]} = errors_on(changeset)
+

A helper that transforms changeset errors into a map of messages.

assert {:error, changeset} = Accounts.create_user(%{password: "short"})
+assert "password is too short" in errors_on(changeset).password
+assert %{password: ["password is too short"]} = errors_on(changeset)
diff --git a/Trento.Databases.Projections.DatabaseProjector.html b/Trento.Databases.Projections.DatabaseProjector.html index 870768c1ea..0aa482ceed 100644 --- a/Trento.Databases.Projections.DatabaseProjector.html +++ b/Trento.Databases.Projections.DatabaseProjector.html @@ -249,9 +249,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Hosts.Projections.HostProjector.html b/Trento.Hosts.Projections.HostProjector.html index f023c4bef2..7aa1701813 100644 --- a/Trento.Hosts.Projections.HostProjector.html +++ b/Trento.Hosts.Projections.HostProjector.html @@ -257,9 +257,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Hosts.Projections.SlesSubscriptionsProjector.html b/Trento.Hosts.Projections.SlesSubscriptionsProjector.html index 9f095c5a7c..9535cd2392 100644 --- a/Trento.Hosts.Projections.SlesSubscriptionsProjector.html +++ b/Trento.Hosts.Projections.SlesSubscriptionsProjector.html @@ -281,9 +281,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.AlertsEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.AlertsEventHandler.html index 11785b70ae..cf88b0b750 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.AlertsEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.AlertsEventHandler.html @@ -221,9 +221,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.DatabaseDeregistrationEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.DatabaseDeregistrationEventHandler.html index 6c76133c89..d63bbb3cea 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.DatabaseDeregistrationEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.DatabaseDeregistrationEventHandler.html @@ -222,9 +222,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.DatabaseRestoreEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.DatabaseRestoreEventHandler.html index 09b3c7b19a..af4ab4a548 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.DatabaseRestoreEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.DatabaseRestoreEventHandler.html @@ -222,9 +222,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.RollUpEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.RollUpEventHandler.html index 8a8462bf3d..b8a13da715 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.RollUpEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.RollUpEventHandler.html @@ -221,9 +221,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.SapSystemDatabaseHealthEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.SapSystemDatabaseHealthEventHandler.html index cff86a41b6..a30aa3f1c7 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.SapSystemDatabaseHealthEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.SapSystemDatabaseHealthEventHandler.html @@ -222,9 +222,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.SoftwareUpdatesDiscoveryEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.SoftwareUpdatesDiscoveryEventHandler.html index 0fb0e048bf..a1ae58fdfd 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.SoftwareUpdatesDiscoveryEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.SoftwareUpdatesDiscoveryEventHandler.html @@ -222,9 +222,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.StreamRollUpEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.StreamRollUpEventHandler.html index 31a0ced395..6c06e81534 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.StreamRollUpEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.StreamRollUpEventHandler.html @@ -223,9 +223,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.ProcessManagers.DeregistrationProcessManager.html b/Trento.Infrastructure.Commanded.ProcessManagers.DeregistrationProcessManager.html index f00eb58807..d556249bdc 100644 --- a/Trento.Infrastructure.Commanded.ProcessManagers.DeregistrationProcessManager.html +++ b/Trento.Infrastructure.Commanded.ProcessManagers.DeregistrationProcessManager.html @@ -401,9 +401,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleProcessManager, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleProcessManager, []}
+], strategy: :one_for_one)
diff --git a/Trento.SapSystems.Projections.SapSystemProjector.html b/Trento.SapSystems.Projections.SapSystemProjector.html index 3379debf0b..f622979c32 100644 --- a/Trento.SapSystems.Projections.SapSystemProjector.html +++ b/Trento.SapSystems.Projections.SapSystemProjector.html @@ -249,9 +249,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Scheduler.html b/Trento.Scheduler.html index 8ccdda2083..60ed055291 100644 --- a/Trento.Scheduler.html +++ b/Trento.Scheduler.html @@ -145,12 +145,12 @@

Defines a quantum Scheduler.

When used, the quantum scheduler expects the :otp_app as option. The :otp_app should point to an OTP application that has -the quantum runner configuration. For example, the quantum scheduler:

defmodule Trento.Scheduler do
+the quantum runner configuration. For example, the quantum scheduler:

defmodule Trento.Scheduler do
   use Quantum, otp_app: :trento
-end

Could be configured with:

config :trento, Trento.Scheduler,
-  jobs: [
-    {"@daily", {Backup, :backup, []}},
-  ]

+end

Could be configured with:

config :trento, Trento.Scheduler,
+  jobs: [
+    {"@daily", {Backup, :backup, []}},
+  ]

@@ -170,49 +170,49 @@

Examples

-
iex(1)> :telemetry_registry.discover_all(:quantum)
+
iex(1)> :telemetry_registry.discover_all(:quantum)
 :ok
-iex(2)> :telemetry_registry.spannable_events()
-[{[:quantum, :job], [:start, :stop, :exception]}]
+iex(2)> :telemetry_registry.spannable_events()
+[{[:quantum, :job], [:start, :stop, :exception]}]
 iex(3)> :telemetry_registry.list_events
-[
-  {[:quantum, :job, :add], Quantum,
-   %{
+[
+  {[:quantum, :job, :add], Quantum,
+   %{
      description: "dispatched when a job is added",
      measurements: "%{}",
      metadata: "%{job: Quantum.Job.t(), scheduler: atom()}"
-   }},
-  {[:quantum, :job, :delete], Quantum,
-   %{
+   }},
+  {[:quantum, :job, :delete], Quantum,
+   %{
      description: "dispatched when a job is deleted",
      measurements: "%{}",
      metadata: "%{job: Quantum.Job.t(), scheduler: atom()}"
-   }},
-  {[:quantum, :job, :exception], Quantum,
-   %{
+   }},
+  {[:quantum, :job, :exception], Quantum,
+   %{
      description: "dispatched on job execution fail",
      measurements: "%{duration: integer()}",
      metadata: "%{telemetry_span_context: term(), job: Quantum.Job.t(), node: Node.t(), scheduler: atom(), kind: :throw | :error | :exit, reason: term(), stacktrace: list()}"
-   }},
-  {[:quantum, :job, :start], Quantum,
-   %{
+   }},
+  {[:quantum, :job, :start], Quantum,
+   %{
      description: "dispatched on job execution start",
      measurements: "%{system_time: integer()}",
      metadata: "%{telemetry_span_context: term(), job: Quantum.Job.t(), node: Node.t(), scheduler: atom()}"
-   }},
-  {[:quantum, :job, :stop], Quantum,
-   %{
+   }},
+  {[:quantum, :job, :stop], Quantum,
+   %{
      description: "dispatched on job execution end",
      measurements: "%{duration: integer()}",
      metadata: "%{telemetry_span_context: term(), job: Quantum.Job.t(), node: Node.t(), scheduler: atom(), result: term()}"
-   }},
-  {[:quantum, :job, :update], Quantum,
-   %{
+   }},
+  {[:quantum, :job, :update], Quantum,
+   %{
      description: "dispatched when a job is updated",
      measurements: "%{}",
      metadata: "%{job: Quantum.Job.t(), scheduler: atom()}"
-   }}
-]
+
}} +]
diff --git a/TrentoWeb.Gettext.html b/TrentoWeb.Gettext.html index 58b8c250e7..34ad5713e6 100644 --- a/TrentoWeb.Gettext.html +++ b/TrentoWeb.Gettext.html @@ -147,15 +147,15 @@

your module gains a set of macros for translations, for example:

import TrentoWeb.Gettext
 
 # Simple translation
-gettext("Here is the string to translate")
+gettext("Here is the string to translate")
 
 # Plural translation
-ngettext("Here is the string to translate",
+ngettext("Here is the string to translate",
          "Here are the strings to translate",
-         3)
+         3)
 
 # Domain-based translation
-dgettext("errors", "Here is the error message to translate")

See the Gettext Docs for detailed usage.

+dgettext("errors", "Here is the error message to translate")

See the Gettext Docs for detailed usage.

diff --git a/hack_on_the_trento.html b/hack_on_the_trento.html index 8fcb49c7ea..5f440140e8 100644 --- a/hack_on_the_trento.html +++ b/hack_on_the_trento.html @@ -161,7 +161,7 @@

Ensure Compatibility with asdf

-

asdf allows to use specific versions of programming language tools that are known to be compatible with the project, rather than relying on the version that's installed globally on the host system.

In order to use asdf, follow the official asdf getting started guide.

Install all required asdf plugins from .tool-versions inside the web repository.

cut -d' ' -f1 .tool-versions|xargs -i asdf plugin add  {}

Set up the asdf environment

asdf install

+

asdf allows to use specific versions of programming language tools that are known to be compatible with the project, rather than relying on the version that's installed globally on the host system.

In order to use asdf, follow the official asdf getting started guide.

Install all required asdf plugins from .tool-versions inside the web repository.

cut -d' ' -f1 .tool-versions|xargs -i asdf plugin add  {}

Set up the asdf environment

asdf install