[bug] two event was sended when I comment an work item.
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 59.6k
- Forks
- 5.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 49
Description
I commen "你好", This is the data in webhook_logs table. there are two rows.
{'event': 'issue_comment', 'action': 'created', 'webhook_id': '77035d8a-e800-4fe7-961e-ba7e7f8b9f02', 'workspace_id': 'f9b9a039-6786-41cd-84b4-bfd30533e47a', 'data': {'id': '23ad3e42-ded3-4911-a7e8-63f426a9dba0', 'created_at': '2026-01-12T03:43:05.623494Z', 'updated_at': '2026-01-12T03:43:05.623524Z', 'deleted_at': None, 'comment_stripped': '你好', 'comment_html': '<p class="editor-paragraph-block" data-id="7acaca2c-b527-42ea-8a1c-9b88ede8c9e5">你好</p>', 'attachments': [], 'access': 'INTERNAL', 'external_source': None, 'external_id': None, 'edited_at': None, 'created_by': '6dd926d0-f067-4084-a97b-e34026ffc646', 'updated_by': None, 'project': 'd9cfcdbe-e8fe-4ee1-a509-05c80481239c', 'workspace': 'f9b9a039-6786-41cd-84b4-bfd30533e47a', 'description': '29fac12a-b5a6-43e9-bcf9-4361f4e6327c', 'issue': 'a8669da1-bacc-46e3-ae30-863bb80a9cfb', 'actor': '6dd926d0-f067-4084-a97b-e34026ffc646', 'parent': None}, 'activity':
{'field': 'description', 'new_value': '<p class="editor-paragraph-block" data-id="7acaca2c-b527-42ea-8a1c-9b88ede8c9e5">你好</p>', 'old_value': None,
'actor': {'id': '6dd926d0-f067-4084-a97b-e34026ffc646', 'first_name': '易从', 'last_name': '', 'email': '781574155@qq.com', 'avatar': '', 'avatar_url': '/api/assets/v2/static/d42a0b1f-2c47-4a8e-b9bd-bb0031a4846a/', 'display_name': '易从'}, 'old_identifier': None, 'new_identifier': '23ad3e42-ded3-4911-a7e8-63f426a9dba0'}}
{'event': 'issue_comment', 'action': 'created', 'webhook_id': '77035d8a-e800-4fe7-961e-ba7e7f8b9f02', 'workspace_id': 'f9b9a039-6786-41cd-84b4-bfd30533e47a', 'data': {'id': '23ad3e42-ded3-4911-a7e8-63f426a9dba0', 'created_at': '2026-01-12T03:43:05.623494Z', 'updated_at': '2026-01-12T03:43:05.623524Z', 'deleted_at': None, 'comment_stripped': '你好', 'comment_html': '<p class="editor-paragraph-block" data-id="7acaca2c-b527-42ea-8a1c-9b88ede8c9e5">你好</p>', 'attachments': [], 'access': 'INTERNAL', 'external_source': None, 'external_id': None, 'edited_at': None, 'created_by': '6dd926d0-f067-4084-a97b-e34026ffc646', 'updated_by': None, 'project': 'd9cfcdbe-e8fe-4ee1-a509-05c80481239c', 'workspace': 'f9b9a039-6786-41cd-84b4-bfd30533e47a', 'description': '29fac12a-b5a6-43e9-bcf9-4361f4e6327c', 'issue': 'a8669da1-bacc-46e3-ae30-863bb80a9cfb', 'actor': '6dd926d0-f067-4084-a97b-e34026ffc646', 'parent': None}, 'activity': {'field': None, 'new_value': None, 'old_value': None,
'actor': {'id': '6dd926d0-f067-4084-a97b-e34026ffc646', 'first_name': '易从', 'last_name': '', 'email': '781574155@qq.com', 'avatar': '', 'avatar_url': '/api/assets/v2/static/d42a0b1f-2c47-4a8e-b9bd-bb0031a4846a/', 'display_name': '易从'}, 'old_identifier': None, 'new_identifier': None}}
the difference is the activity part, the first one is 'activity': {'field': None, 'new_value': None, 'old_value': None, , the second one has the data I input.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the issue_comment created event is recorded in webhook_logs, using the two payloads as the reproduction case. Compare the paths that produce the activity data and verify that one comment creates only one webhook row while retaining the expected activity information.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100