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
Browse files Browse the repository at this point in the history
Internal ticket #552

Closes #134
  • Loading branch information
a1exsh committed Mar 9, 2021
1 parent 96c1ff6 commit 055d069
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions client/Pages/EventTypeCreate/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,24 @@ 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 " -- 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 055d069

Please sign in to comment.