From 9f9438b985ea42394507b61c2107623fac3ccb9c Mon Sep 17 00:00:00 2001 From: Gabriel Herbert Date: Tue, 16 May 2023 20:33:02 +0200 Subject: [PATCH] Wrong API preview header, relationship context help --- www/comps/builder/builderApi.js | 2 +- www/comps/builder/builderAttribute.js | 12 ++++++------ www/langs/REPLACE_BY_BUILD/de_de | 7 +++++++ www/langs/REPLACE_BY_BUILD/en_us | 7 +++++++ www/langs/REPLACE_BY_BUILD/it_it | 7 +++++++ www/langs/REPLACE_BY_BUILD/ro_ro | 7 +++++++ 6 files changed, 35 insertions(+), 7 deletions(-) diff --git a/www/comps/builder/builderApi.js b/www/comps/builder/builderApi.js index 48a77fe0..44d6fdbc 100644 --- a/www/comps/builder/builderApi.js +++ b/www/comps/builder/builderApi.js @@ -87,7 +87,7 @@ let MyBuilderApiPreview = { KeyValue - AuthenticationBearer {TOKEN_FROM_AUTH_CALL} + AuthorizationBearer {TOKEN_FROM_AUTH_CALL} diff --git a/www/comps/builder/builderAttribute.js b/www/comps/builder/builderAttribute.js index d424d1ca..f467875a 100644 --- a/www/comps/builder/builderAttribute.js +++ b/www/comps/builder/builderAttribute.js @@ -233,28 +233,28 @@ let MyBuilderAttribute = { - {{ capApp.onUpdate }} + {{ capApp.onDelete }} - - + {{ capApp.option.relationshipActionsHints[values.onDelete] }} - {{ capApp.onDelete }} + {{ capApp.onUpdate }} - - + {{ capApp.option.relationshipActionsHintsOnUpdate }} diff --git a/www/langs/REPLACE_BY_BUILD/de_de b/www/langs/REPLACE_BY_BUILD/de_de index 3a3a39e6..b2b9f54a 100644 --- a/www/langs/REPLACE_BY_BUILD/de_de +++ b/www/langs/REPLACE_BY_BUILD/de_de @@ -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", @@ -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", diff --git a/www/langs/REPLACE_BY_BUILD/en_us b/www/langs/REPLACE_BY_BUILD/en_us index ba3eb18f..96f679b6 100644 --- a/www/langs/REPLACE_BY_BUILD/en_us +++ b/www/langs/REPLACE_BY_BUILD/en_us @@ -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", @@ -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", diff --git a/www/langs/REPLACE_BY_BUILD/it_it b/www/langs/REPLACE_BY_BUILD/it_it index 5498cbf5..18c237e9 100644 --- a/www/langs/REPLACE_BY_BUILD/it_it +++ b/www/langs/REPLACE_BY_BUILD/it_it @@ -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", @@ -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", diff --git a/www/langs/REPLACE_BY_BUILD/ro_ro b/www/langs/REPLACE_BY_BUILD/ro_ro index 603b0801..e040b1a3 100644 --- a/www/langs/REPLACE_BY_BUILD/ro_ro +++ b/www/langs/REPLACE_BY_BUILD/ro_ro @@ -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", @@ -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",