-
Notifications
You must be signed in to change notification settings - Fork 19
link runpod views pipeline #221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -19,6 +19,26 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "5bea9e07-e6f0-41c6-821d-b426dec3427c" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Check Language", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "check_language", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "condition", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 20, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "filter": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "$trigger": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "language": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_eq": "en" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": "9390ed2f-7dc6-4a6a-83da-2d87d478261d", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": "4795cc24-3f3c-4be9-9844-24552da522fa", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "af7a671d-78fa-4d07-adad-c3bfabc4617c" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Check Report Language", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "check_report_language", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -45,6 +65,32 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "d154ee34-0931-43f3-aaca-9168f88fa04b" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Check Report Language", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "check_report_language", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "item-read", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 73, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "query": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "filter": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "project_id": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "id": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_eq": "{{$trigger.payload.project_id.id}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "fields": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "language" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "collection": "project_report" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": "ca1ffbc5-cfce-4fb4-8f15-c128ea407d41", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "c5d2aff3-1a1a-4ea2-8e39-5189409b7dc1" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+68
to
+93
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Same collision for Identical 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Dutch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "dutch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -65,6 +111,26 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "eaeb2c39-32e0-428d-ad03-ff0e6052adcc" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Dutch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "dutch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "condition", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 20, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 20, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "filter": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "$trigger": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "language": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_eq": "nl" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": "ea78ec02-364d-4f18-80f8-ea5ac4c787ed", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": "eb6f8253-647f-4fb1-9010-e93594ba065e", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "4795cc24-3f3c-4be9-9844-24552da522fa" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+114
to
+133
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto for Unique keys or bust – else the NL branch erases itself. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Email Send Operation Failed", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "email_send_operation_failed", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -79,6 +145,20 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "920bd181-b2a2-4f0d-94dc-3b1a08c3f4ef" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Email Send Operation Failed", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "email_send_operation_failed", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "log", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 58, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "message": "An email could not be sent due to some error: {{$last}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "2b24450b-6a2e-4452-aba1-9814d17fef42" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+148
to
+161
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Two You’ll lose one set of 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Email Send Operation Failed Dutch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "email_send_operation_failed_dutch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -93,6 +173,20 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "84c38ea6-5d15-429f-8c24-9485d54ba7be" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Email Send Operation Failed Dutch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "email_send_operation_failed_dutch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "log", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 58, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 20, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "message": "An email could not be sent due to some error: {{$last}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "615a54cd-a72e-41ad-9403-9577c80280d6" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "failed", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "failed", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -107,6 +201,20 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "8d8d787a-dbc4-44f9-9ab4-28e3f3d5f31c" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "failed", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "failed", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "log", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 20, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 39, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "message": "language detection failed" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "eb6f8253-647f-4fb1-9010-e93594ba065e" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+204
to
+217
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Duplicate Same story – key collision, silent overwrite. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Filter Emails", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "filter_emails", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -121,6 +229,47 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "efb3982e-5703-4c07-8982-a6e1b5218e4a" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Filter Emails", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "filter_emails", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "exec", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 91, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "code": "module.exports = async function(data) {\n\n const submissions = data.get_all_participants;\n \n // Filter submissions to only include those where email_opt_in is true\n const filteredSubmissions = submissions.filter(sub => sub.email_opt_in === true);\n\n // Create an array with email, project_id and an email_opt_out token for each submission\n const result = filteredSubmissions.map(sub => ({\n project_name: data.project_data[0].name || '',\n\t\tdefault_conversation_title: data.project_data[0].default_conversation_title || '',\n\t\tconversation_name: sub.conversation_id.participant_name || '',\n email: sub.email,\n project_id: sub.project_id || '',\n token: sub.email_opt_out_token,\n language: data.check_report_language[0].language || 'empty',\n ADMIN_BASE_URL: \"{{ $env.ADMIN_BASE_URL }}\" || \"http://localhost:5173\",\n PARTICIPANT_BASE_URL: \"{{ $env.PARTICIPANT_BASE_URL }}\" || \"http://localhost:5174\", \n }));\n \n return result;\n};" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": "b8144cee-59f6-40d9-a849-dd0c639e4e31", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "ca1ffbc5-cfce-4fb4-8f15-c128ea407d41" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+232
to
+245
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Pick one, or give the clone a new key + updated downstream references. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Get All Participants", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "get_all_participants", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "item-read", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 55, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "query": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "filter": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "project_id": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "id": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_eq": "{{$trigger.payload.project_id}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "fields": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "*", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "conversation_id.participant_name" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "collection": "project_report_notification_participants" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": "c5d2aff3-1a1a-4ea2-8e39-5189409b7dc1", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "47f1463c-3cb6-4420-a50e-92938fed3197" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Get All Participants", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "get_all_participants", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -148,6 +297,20 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "107ebc18-7d2d-4299-9d98-b7d1e7322b7c" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "log environment vars", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "log_environment_vars", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "log", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 127, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "message": "{{data['$env']}} {{data.$env}} {{process.env}} {{$env}} {{$env.PARTICIPANT_BASE_URL}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "7161e52e-b1cc-4c13-bedd-a9d64527026f" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+301
to
+313
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Logging full Dumping every env var to Directus logs is a GDPR/ops nightmare. - "message": "{{data['$env']}} {{data.$env}} {{process.env}} {{$env}} {{$env.PARTICIPANT_BASE_URL}}"
+ "message": "PARTICIPANT_BASE_URL: {{$env.PARTICIPANT_BASE_URL}}"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "log environment vars", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "log_environment_vars", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -184,6 +347,28 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "239c6fea-242d-4b7d-b854-c99d2fe43cf3" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "PROCEED_ONLY_IF \"published\" in payload", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "proceed_only_if_published_in_payload", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "condition", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 19, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "filter": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "$trigger": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "payload": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "status": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_eq": "published" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": "d8554457-95b6-474f-ba67-dfd5f936d575", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": "e8274ad4-5844-42cd-8a6b-d40d08cf83d3", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "2784a141-2ae3-48d1-aedf-57c0be3bcc74" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+350
to
+371
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Second Resolve/reject IDs diverge; post-import you’ll only have one of them, breaking the other branch. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Project Data", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "project_data", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -207,6 +392,43 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "ea051ae4-776f-490b-8b02-eaf4099243ef" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Project Data", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "project_data", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "item-read", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 37, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "collection": "project", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "query": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "filter": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "id": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "id": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_eq": "{{$trigger.payload.project_id}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": "47f1463c-3cb6-4420-a50e-92938fed3197", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "d8554457-95b6-474f-ba67-dfd5f936d575" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+395
to
+417
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Duplicate Same collision pattern – rename or remove. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Report Not Published", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "report_not_published", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "log", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 19, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 19, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "message": "The report is not yet published" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "e8274ad4-5844-42cd-8a6b-d40d08cf83d3" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+419
to
+431
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive)
Minor, but still a key collision; cleanup recommended. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Report Not Published", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "report_not_published", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -221,6 +443,37 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "84852456-3f3a-4906-be94-8b750159883b" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Send Email Dutch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "send_email_dutch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "mail", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 39, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 20, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "to": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "{{$trigger.email}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "template", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "subject": "Er is een rapport klaar met uw inbreng", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "body": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "data": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "PARTICIPANT_BASE_URL": "{{$trigger.PARTICIPANT_BASE_URL}}", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "project_id": "{{$trigger.project_id}}", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "project_name": "{{$trigger.project_name}}", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "default_conversation_title": "{{$trigger.default_conversation_title}}", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "conversation_name": "{{$trigger.conversation_name}}", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "token": "{{$trigger.token}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "template": "report-notification-nl", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "replyTo": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "info@dembrane.com" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": "615a54cd-a72e-41ad-9403-9577c80280d6", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "ea78ec02-364d-4f18-80f8-ea5ac4c787ed" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+447
to
+476
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Two Avoid key overwrites, otherwise NL users may get ghosted. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Send Email Dutch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "send_email_dutch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -252,6 +505,37 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "34fb6ee5-2813-484a-a1cc-f97de097509b" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Send Email English", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "send_email_english", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "mail", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 39, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "to": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "{{$trigger.email}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "subject": "A Report Featuring Your Input is Ready", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "body": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "template", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "template": "report-notification-en", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "data": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "PARTICIPANT_BASE_URL": "{{$trigger.PARTICIPANT_BASE_URL}}", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "project_id": "{{$trigger.project_id}}", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "project_name": "{{$trigger.project_name}}", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "default_conversation_title": "{{$trigger.default_conversation_title}}", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "conversation_name": "{{$trigger.conversation_name}}", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "token": "{{$trigger.token}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "replyTo": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "info@dembrane.com" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": "2b24450b-6a2e-4452-aba1-9814d17fef42", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "9390ed2f-7dc6-4a6a-83da-2d87d478261d" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+509
to
+538
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Two Unique keys or nothing works. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Send Email English", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "send_email_english", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -283,6 +567,22 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "3dbf2ea1-17f8-4bde-aa89-43278fe9a00f" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Trigger Email Flow", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "trigger_email_flow", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "trigger", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_x": 109, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "position_y": 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "17703446-fef0-49e9-bdc4-385db1311137", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "iterationMode": "serial", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "payload": "{{filter_emails}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "resolve": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "reject": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "flow": "ec4e7ea5-72de-4365-b66f-d8f11b549495", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_syncId": "b8144cee-59f6-40d9-a849-dd0c639e4e31" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+570
to
+585
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion
Dedupe to keep the orchestration sane. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "Trigger Email Flow", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "key": "trigger_email_flow", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate
keywill clobber the original operation at import-time.Directus Flow requires
keybe unique per flow. A second"check_language"with the samekeybut a different_syncIdmeans only one of them survives the sync, nuking the other branch and potentially breakingresolve→9390ed2f-….Rename the
keyor delete the clone before shipping.🤖 Prompt for AI Agents