Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Commit

Permalink
Add a warning about missing ordering key fields for data events (#136)
Browse files Browse the repository at this point in the history
* Add a warning about missing ordering key fields for data events

Internal ticket #552

Closes #134
  • Loading branch information
a1exsh authored Mar 10, 2021
1 parent 96c1ff6 commit 7759a2b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions client/Pages/EventTypeCreate/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,30 @@ viewForm model setup =
Help.orderingKeyFields
Optional
Enabled
, if
getValue FieldCategory formModel.values
== categories.data
&& (getValue FieldOrderingKeyFields formModel.values
|> String.trim
|> String.isEmpty
)
then
div [ class "dc-msg dc-msg--error" ]
[ h3 [ class "blinking" ] [ text "Warning!" ]
, p [ class "dc-p" ]
[ text "The 'ordering key' information defines the transactional"
, text " business order that finally leads to the event creation, and"
, text " is used e.g. for analytics change data capture, i.e. keeping"
, text " transactional data in sync as source for analytics. The"
, text " information is recommended for (external) data change events"
, text "\u{00A0}-- see "
, externalLink "API/Event Guidelines" "https://opensource.zalando.com/restful-api-guidelines/#203"
, text "."
]
]

else
none
, selectInput formModel
FieldAudience
OnInput
Expand Down

0 comments on commit 7759a2b

Please sign in to comment.