Skip to content

Commit 8bb1d73

Browse files
committed
shorten trigger expression titles based on product feedback
1 parent b4b7c4d commit 8bb1d73

File tree

2 files changed

+58
-58
lines changed

2 files changed

+58
-58
lines changed

snippets/triggers/match/manifest.json

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
{
2-
"category": "MatchTriggerExpressions",
3-
"categoryId": "ed4b3598-6800-413f-9158-d9b1b2a2a080",
4-
"viewType": "triggerMatch",
5-
"snippets": [
6-
{
7-
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a081",
8-
"title": "Match Expression for Updates",
9-
"snippet": "/update.json",
10-
"description": "This trigger will only execute if the `storeLocation` array has changed to \"East Langley\" and the \"storeItems\" field has been removed."
11-
},
12-
{
13-
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a082",
14-
"title": "Match Expression for Deletes",
15-
"snippet": "/delete.json",
16-
"description": "This trigger will only execute if the document (before deletion) has a userName of \"Alice Smith\""
17-
},
18-
{
19-
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a083",
20-
"title": "Match Expression for Inserts",
21-
"snippet": "/insert.json",
22-
"description": "This trigger will only execute if the document has a userName of \"Alice Smith\" and a department of \"engineering\""
23-
},
24-
{
25-
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a084",
26-
"title": "Match Expression for Replace",
27-
"snippet": "/replace.json",
28-
"description": "This trigger will only execute if the name field was \"Alice Smith\" before the Replace, and \"Alex Smith\" after the Replace."
29-
}
30-
]
2+
"category": "MatchTriggerExpressions",
3+
"categoryId": "ed4b3598-6800-413f-9158-d9b1b2a2a080",
4+
"viewType": "triggerMatch",
5+
"snippets": [
6+
{
7+
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a081",
8+
"title": "Updates",
9+
"snippet": "/update.json",
10+
"description": "This trigger will only execute if the `storeLocation` array has changed to \"East Langley\" and the \"storeItems\" field has been removed."
11+
},
12+
{
13+
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a082",
14+
"title": "Deletes",
15+
"snippet": "/delete.json",
16+
"description": "This trigger will only execute if the document (before deletion) has a userName of \"Alice Smith\""
17+
},
18+
{
19+
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a083",
20+
"title": "Inserts",
21+
"snippet": "/insert.json",
22+
"description": "This trigger will only execute if the document has a userName of \"Alice Smith\" and a department of \"engineering\""
23+
},
24+
{
25+
"id": "ed4b3598-6800-413f-9158-d9b1b2a2a084",
26+
"title": "Replace",
27+
"snippet": "/replace.json",
28+
"description": "This trigger will only execute if the name field was \"Alice Smith\" before the Replace, and \"Alex Smith\" after the Replace."
29+
}
30+
]
3131
}
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
{
2-
"category": "ProjectTriggerExpressions",
3-
"categoryId": "ee1e471e-72c7-4dc9-b80a-9f745836a254",
4-
"viewType": "triggerProject",
5-
"snippets": [
6-
{
7-
"id": "7dd66555-8efb-4a76-8920-64c0874e0214",
8-
"title": "Project Expression for Updates",
9-
"snippet": "/update.json",
10-
"description": "This trigger will return the \"operationType\" and \"updateDescription.updateFields.storeLocation\" field values."
11-
},
12-
{
13-
"id": "7c9b14f4-30ec-4865-b153-8bd52c6566ad",
14-
"title": "Project Expression for Deletes",
15-
"snippet": "/delete.json",
16-
"description": "This trigger will return the \"documentKey._id\", \"operationType\", and \"wallTime\" field values."
17-
},
18-
{
19-
"id": "e040947b-08a4-4a8f-9f82-1bccd7826892",
20-
"title": "Project Expression for Inserts",
21-
"snippet": "/insert.json",
22-
"description": "This trigger will return the \"baseSalary\", \"department\", \"operationType\", and \"documentKey.userName\" field values."
23-
},
24-
{
25-
"id": "90768f43-3d5a-4746-8ccc-f709cda09eae",
26-
"title": "Project Expression for Replace",
27-
"snippet": "/replace.json",
28-
"description": "This trigger will return the \"operationType\", \"fullDocument.name\", and \"fullDocumentBeforeChange.name\" field values."
29-
}
30-
]
2+
"category": "ProjectTriggerExpressions",
3+
"categoryId": "ee1e471e-72c7-4dc9-b80a-9f745836a254",
4+
"viewType": "triggerProject",
5+
"snippets": [
6+
{
7+
"id": "7dd66555-8efb-4a76-8920-64c0874e0214",
8+
"title": "Updates",
9+
"snippet": "/update.json",
10+
"description": "This trigger will return the \"operationType\" and \"updateDescription.updateFields.storeLocation\" field values."
11+
},
12+
{
13+
"id": "7c9b14f4-30ec-4865-b153-8bd52c6566ad",
14+
"title": "Deletes",
15+
"snippet": "/delete.json",
16+
"description": "This trigger will return the \"documentKey._id\", \"operationType\", and \"wallTime\" field values."
17+
},
18+
{
19+
"id": "e040947b-08a4-4a8f-9f82-1bccd7826892",
20+
"title": "Inserts",
21+
"snippet": "/insert.json",
22+
"description": "This trigger will return the \"baseSalary\", \"department\", \"operationType\", and \"documentKey.userName\" field values."
23+
},
24+
{
25+
"id": "90768f43-3d5a-4746-8ccc-f709cda09eae",
26+
"title": "Replace",
27+
"snippet": "/replace.json",
28+
"description": "This trigger will return the \"operationType\", \"fullDocument.name\", and \"fullDocumentBeforeChange.name\" field values."
29+
}
30+
]
3131
}

0 commit comments

Comments
 (0)