Skip to content

Commit

Permalink
Wrong API preview header, relationship context help
Browse files Browse the repository at this point in the history
  • Loading branch information
r3-gabriel committed May 16, 2023
1 parent ed940f3 commit 9f9438b
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 7 deletions.
2 changes: 1 addition & 1 deletion www/comps/builder/builderApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ let MyBuilderApiPreview = {
<tr><th>Key</th><th>Value</th></tr>
</thead>
<tbody>
<tr><th>Authentication</th><th>Bearer {TOKEN_FROM_AUTH_CALL}</th></tr>
<tr><th>Authorization</th><th>Bearer {TOKEN_FROM_AUTH_CALL}</th></tr>
</tbody>
</table>
</td>
Expand Down
12 changes: 6 additions & 6 deletions www/comps/builder/builderAttribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,28 +233,28 @@ let MyBuilderAttribute = {
<td></td>
</tr>
<tr>
<td>{{ capApp.onUpdate }}</td>
<td>{{ capApp.onDelete }}</td>
<td>
<select v-model="values.onUpdate" :disabled="readonly">
<select v-model="values.onDelete" :disabled="readonly">
<option value="NO ACTION">NO ACTION</option>
<option value="CASCADE">CASCADE</option>
<option value="SET NULL">SET NULL</option>
<option value="RESTRICT">RESTRICT</option>
</select>
</td>
<td></td>
<td>{{ capApp.option.relationshipActionsHints[values.onDelete] }}</td>
</tr>
<tr>
<td>{{ capApp.onDelete }}</td>
<td>{{ capApp.onUpdate }}</td>
<td>
<select v-model="values.onDelete" :disabled="readonly">
<select v-model="values.onUpdate" :disabled="readonly">
<option value="NO ACTION">NO ACTION</option>
<option value="CASCADE">CASCADE</option>
<option value="SET NULL">SET NULL</option>
<option value="RESTRICT">RESTRICT</option>
</select>
</td>
<td></td>
<td>{{ capApp.option.relationshipActionsHintsOnUpdate }}</td>
</tr>
</template>
Expand Down
7 changes: 7 additions & 0 deletions www/langs/REPLACE_BY_BUILD/de_de
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,12 @@
"fixed":"Benutzerdefinierter Wert",
"uuid":"Neue UUID"
},
"relationshipActionsHints":{
"CASCADE":"Kaskadiert die Löschung, wenn ein Datensatz gelöscht wird, auf den dieses Beziehungsattribut verweist. Dies bedeutet, dass alle Datensätze, die über dieses Attribut in einer Beziehung stehen, automatisch gelöscht werden, wenn der referenzierte Datensatz gelöscht wird. Nützlich für Eltern-Kind-Beziehungen, wobei die untergeordneten Elemente zusammen mit dem Hauptelement gelöscht werden.",
"NO ACTION":"Blockiert die Löschung, wenn ein Datensatz, auf den dieses Beziehungsattribut verweist, gelöscht wird. Der referenzierte Datensatz kann erst gelöscht werden, nachdem er aus der Beziehung entfernt wurde.",
"RESTRICT":"Ähnlich wie NO ACTION, aber normalerweise nur für spezielle Anwendungsfälle relevant. Wie NO ACTION blockiert es die Aktion, wenn ein referenzierter Datensatz gelöscht wird. Im Gegensatz zu NO ACTION geschieht dies jedoch sofort und nicht erst am Ende einer Datenbanktransaktion.",
"SET NULL":"Entfernt die Referenz, wenn ein durch dieses Beziehungsattribut referenzierter Datensatz gelöscht wird. Dies ist nur möglich, wenn dieses Attribut einen leeren Wert haben darf (kann nicht auf \"muss einen Wert haben\" gesetzt sein)."
},
"boolean":"Ja/nein",
"color":"Farbe",
"date":"Datum",
Expand All @@ -621,6 +627,7 @@
"number":"Nummer, ganzzahl",
"relationship11":"Beziehung, eins-zu-eins (1:1)",
"relationshipN1":"Beziehung, viele-zu-eins (n:1)",
"relationshipActionsHintsOnUpdate":"Funktioniert genauso wie die Einstellung für \"Aktion bei Löschung\". Im Gegensatz zur Löschung wirkt diese Einstellung wenn der Primärschlüssel (\"id\") eines Datensatzes, auf den dieses Beziehungsattribut referenziert, geändert wird. Wird selten verwendet, da es nur wenige Gründe gibt, Primärschlüssel zu aktualisieren.",
"richtext":"Text, mit Formattierung",
"text":"Text",
"textarea":"Text, mehrere Zeilen",
Expand Down
7 changes: 7 additions & 0 deletions www/langs/REPLACE_BY_BUILD/en_us
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,12 @@
"fixed":"Custom value",
"uuid":"New UUID"
},
"relationshipActionsHints":{
"CASCADE":"Cascade the deletion, if a record referenced by this relationship attribute is being deleted. This means that all records that are in a relationship via this attribute are automatically deleted when the referenced record is being deleted. Very useful for parent-child relationships, deleting the child elements together with the main element.",
"NO ACTION":"Block the deletion, if a record referenced by this relationship attribute is being deleted. The referenced record can only be deleted after it has been removed from the relationship.",
"RESTRICT":"Similar to NO ACTION but usually only relevant for special use cases. Like NO ACTION, it blocks the action if a referenced record is being deleted. But in contrast to NO ACTION, this is done immediately and not at the end of a database transaction.",
"SET NULL":"Removes the reference, if a record referenced by this relationship attribute is being deleted. This is only possible if this attribute can be empty (not set to 'must have a value')."
},
"boolean":"Yes/no",
"color":"Color",
"date":"Date",
Expand All @@ -621,6 +627,7 @@
"number":"Number, whole",
"relationship11":"Relationship, one-to-one (1:1)",
"relationshipN1":"Relationship, many-to-one (n:1)",
"relationshipActionsHintsOnUpdate":"Works identical to the setting for 'Action when deleted'. In contrast to deletion, this setting affects what happens when the primary key ('id') of a record that is referenced by this relationship attribute is changed. Seldom used, as there are few reasons to update primary keys.",
"richtext":"Text, with formatting",
"text":"Text",
"textarea":"Text, multiple lines",
Expand Down
7 changes: 7 additions & 0 deletions www/langs/REPLACE_BY_BUILD/it_it
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,12 @@
"fixed":"Custom value",
"uuid":"New UUID"
},
"relationshipActionsHints":{
"CASCADE":"Cascade the deletion, if a record referenced by this relationship attribute is being deleted. This means that all records that are in a relationship via this attribute are automatically deleted when the referenced record is being deleted. Very useful for parent-child relationships, deleting the child elements together with the main element.",
"NO ACTION":"Block the deletion, if a record referenced by this relationship attribute is being deleted. The referenced record can only be deleted after it has been removed from the relationship.",
"RESTRICT":"Similar to NO ACTION but usually only relevant for special use cases. Like NO ACTION, it blocks the action if a referenced record is being deleted. But in contrast to NO ACTION, this is done immediately and not at the end of a database transaction.",
"SET NULL":"Removes the reference, if a record referenced by this relationship attribute is being deleted. This is only possible if this attribute can be empty (not set to 'must have a value')."
},
"boolean":"Yes/no",
"color":"Color",
"date":"Date",
Expand All @@ -621,6 +627,7 @@
"number":"Number, whole",
"relationship11":"Relationship, one-to-one (1:1)",
"relationshipN1":"Relationship, many-to-one (n:1)",
"relationshipActionsHintsOnUpdate":"Works identical to the setting for 'Action when deleted'. In contrast to deletion, this setting affects what happens when the primary key ('id') of a record that is referenced by this relationship attribute is changed. Seldom used, as there are few reasons to update primary keys.",
"richtext":"Text, with formatting",
"text":"Text",
"textarea":"Text, multiple lines",
Expand Down
7 changes: 7 additions & 0 deletions www/langs/REPLACE_BY_BUILD/ro_ro
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,12 @@
"fixed":"Custom value",
"uuid":"New UUID"
},
"relationshipActionsHints":{
"CASCADE":"Cascade the deletion, if a record referenced by this relationship attribute is being deleted. This means that all records that are in a relationship via this attribute are automatically deleted when the referenced record is being deleted. Very useful for parent-child relationships, deleting the child elements together with the main element.",
"NO ACTION":"Block the deletion, if a record referenced by this relationship attribute is being deleted. The referenced record can only be deleted after it has been removed from the relationship.",
"RESTRICT":"Similar to NO ACTION but usually only relevant for special use cases. Like NO ACTION, it blocks the action if a referenced record is being deleted. But in contrast to NO ACTION, this is done immediately and not at the end of a database transaction.",
"SET NULL":"Removes the reference, if a record referenced by this relationship attribute is being deleted. This is only possible if this attribute can be empty (not set to 'must have a value')."
},
"boolean":"Yes/no",
"color":"Color",
"date":"Date",
Expand All @@ -621,6 +627,7 @@
"number":"Number, whole",
"relationship11":"Relationship, one-to-one (1:1)",
"relationshipN1":"Relationship, many-to-one (n:1)",
"relationshipActionsHintsOnUpdate":"Works identical to the setting for 'Action when deleted'. In contrast to deletion, this setting affects what happens when the primary key ('id') of a record that is referenced by this relationship attribute is changed. Seldom used, as there are few reasons to update primary keys.",
"richtext":"Text, with formatting",
"text":"Text",
"textarea":"Text, multiple lines",
Expand Down

0 comments on commit 9f9438b

Please sign in to comment.