0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 20:29:55 +08:00
discourse/plugins/discourse-workflows/app/serializers/discourse_workflows
Régis Hanol c4bbb9e350
FEATURE: Add user_id to workflow topic payloads (#42232)
Previously, the topic payloads emitted by workflow triggers and nodes
did not include the topic owner, so a condition like "was this post
written by the topic owner?" required an extra `action:topic` lookup
just to fetch `user_id`.

This change adds `user_id` to the topic payload of every trigger and
node — via a plugin-level `TopicListItemSerializer` — so expressions can
compare `$json.topic.user_id` to `$json.post.user_id` directly, and
consolidates the duplicated per-node `topic_data` helpers into a single
`NodeType` helper.
2026-07-31 20:08:25 +02:00
..
credential_serializer.rb FEATURE: discourse-workflows (#40374) 2026-05-28 19:44:50 +02:00
data_table_serializer.rb FEATURE: discourse-workflows (#40374) 2026-05-28 19:44:50 +02:00
execution_list_serializer.rb FEATURE: discourse-workflows (#40374) 2026-05-28 19:44:50 +02:00
execution_serializer.rb FEATURE: Add sub workflow call support (#41019) 2026-06-25 15:01:05 +02:00
post_serializer.rb FEATURE: Support AI agent workflow uploads and runner (#41042) 2026-06-19 18:06:17 +02:00
topic_list_item_serializer.rb FEATURE: Add user_id to workflow topic payloads (#42232) 2026-07-31 20:08:25 +02:00
topic_serializer.rb FEATURE: Add custom fields to workflow topic node (#40544) 2026-06-04 11:04:42 +02:00
user_serializer.rb FEATURE: Add AI authoring to Discourse Workflows (#40504) 2026-06-18 18:32:30 +02:00
variable_serializer.rb FEATURE: discourse-workflows (#40374) 2026-05-28 19:44:50 +02:00
workflow_serializer.rb FEATURE: Add workflow tags (#42056) 2026-07-27 17:22:42 +02:00
workflow_tag_serializer.rb FEATURE: Add workflow tags (#42056) 2026-07-27 17:22:42 +02:00
workflow_version_serializer.rb FEATURE: lists all workflow versions (#40982) 2026-06-17 14:11:18 +02:00