Skip to content

Commit

Permalink
BAAS-32668: shorten snippet expression titles based on product feedba…
Browse files Browse the repository at this point in the history
…ck (#49)
  • Loading branch information
jwongmongodb authored Jul 22, 2024
1 parent b4b7c4d commit 7e5bf28
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 59 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"metadata": "/snippets/triggers/project/manifest.json"
}
],
"version": "d2de28d9e0967f028b5e02fd70359c7d69b87ece"
"version": "8bb1d7311fce8c4c74f97ae0a717fda4be280865"
}
58 changes: 29 additions & 29 deletions snippets/triggers/match/manifest.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"category": "MatchTriggerExpressions",
"categoryId": "ed4b3598-6800-413f-9158-d9b1b2a2a080",
"viewType": "triggerMatch",
"snippets": [
{
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a081",
"title": "Match Expression for Updates",
"snippet": "/update.json",
"description": "This trigger will only execute if the `storeLocation` array has changed to \"East Langley\" and the \"storeItems\" field has been removed."
},
{
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a082",
"title": "Match Expression for Deletes",
"snippet": "/delete.json",
"description": "This trigger will only execute if the document (before deletion) has a userName of \"Alice Smith\""
},
{
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a083",
"title": "Match Expression for Inserts",
"snippet": "/insert.json",
"description": "This trigger will only execute if the document has a userName of \"Alice Smith\" and a department of \"engineering\""
},
{
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a084",
"title": "Match Expression for Replace",
"snippet": "/replace.json",
"description": "This trigger will only execute if the name field was \"Alice Smith\" before the Replace, and \"Alex Smith\" after the Replace."
}
]
"category": "MatchTriggerExpressions",
"categoryId": "ed4b3598-6800-413f-9158-d9b1b2a2a080",
"viewType": "triggerMatch",
"snippets": [
{
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a081",
"title": "Updates",
"snippet": "/update.json",
"description": "This trigger will only execute if the `storeLocation` array has changed to \"East Langley\" and the \"storeItems\" field has been removed."
},
{
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a082",
"title": "Deletes",
"snippet": "/delete.json",
"description": "This trigger will only execute if the document (before deletion) has a userName of \"Alice Smith\""
},
{
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a083",
"title": "Inserts",
"snippet": "/insert.json",
"description": "This trigger will only execute if the document has a userName of \"Alice Smith\" and a department of \"engineering\""
},
{
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a084",
"title": "Replace",
"snippet": "/replace.json",
"description": "This trigger will only execute if the name field was \"Alice Smith\" before the Replace, and \"Alex Smith\" after the Replace."
}
]
}
58 changes: 29 additions & 29 deletions snippets/triggers/project/manifest.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"category": "ProjectTriggerExpressions",
"categoryId": "ee1e471e-72c7-4dc9-b80a-9f745836a254",
"viewType": "triggerProject",
"snippets": [
{
"id": "7dd66555-8efb-4a76-8920-64c0874e0214",
"title": "Project Expression for Updates",
"snippet": "/update.json",
"description": "This trigger will return the \"operationType\" and \"updateDescription.updateFields.storeLocation\" field values."
},
{
"id": "7c9b14f4-30ec-4865-b153-8bd52c6566ad",
"title": "Project Expression for Deletes",
"snippet": "/delete.json",
"description": "This trigger will return the \"documentKey._id\", \"operationType\", and \"wallTime\" field values."
},
{
"id": "e040947b-08a4-4a8f-9f82-1bccd7826892",
"title": "Project Expression for Inserts",
"snippet": "/insert.json",
"description": "This trigger will return the \"baseSalary\", \"department\", \"operationType\", and \"documentKey.userName\" field values."
},
{
"id": "90768f43-3d5a-4746-8ccc-f709cda09eae",
"title": "Project Expression for Replace",
"snippet": "/replace.json",
"description": "This trigger will return the \"operationType\", \"fullDocument.name\", and \"fullDocumentBeforeChange.name\" field values."
}
]
"category": "ProjectTriggerExpressions",
"categoryId": "ee1e471e-72c7-4dc9-b80a-9f745836a254",
"viewType": "triggerProject",
"snippets": [
{
"id": "7dd66555-8efb-4a76-8920-64c0874e0214",
"title": "Updates",
"snippet": "/update.json",
"description": "This trigger will return the \"operationType\" and \"updateDescription.updateFields.storeLocation\" field values."
},
{
"id": "7c9b14f4-30ec-4865-b153-8bd52c6566ad",
"title": "Deletes",
"snippet": "/delete.json",
"description": "This trigger will return the \"documentKey._id\", \"operationType\", and \"wallTime\" field values."
},
{
"id": "e040947b-08a4-4a8f-9f82-1bccd7826892",
"title": "Inserts",
"snippet": "/insert.json",
"description": "This trigger will return the \"baseSalary\", \"department\", \"operationType\", and \"documentKey.userName\" field values."
},
{
"id": "90768f43-3d5a-4746-8ccc-f709cda09eae",
"title": "Replace",
"snippet": "/replace.json",
"description": "This trigger will return the \"operationType\", \"fullDocument.name\", and \"fullDocumentBeforeChange.name\" field values."
}
]
}

0 comments on commit 7e5bf28

Please sign in to comment.