-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
New Question Notification Message not get new tag
When a new tag is created during issue submission, the tag does not appear in the generated notification messages. This prevents recipients from identifying the new tag, potentially leading to confusion about issue categorization.
To Reproduce
Steps to reproduce the behavior:
- Access the question creation form
- Create a new tag in the tags field
- Submit the question with the new tag
- Check the notification content – the new tag is missing
Expected behavior
The notification message should include all tags (including newly created ones) associated with the issue for transparency and proper tracking.
Bug Question Code
The tags passed in the notification are only those created previously, not those created for this question.
https://github.com/apache/answer/blob/main/internal/service/content/question_service.go#L315
https://github.com/apache/answer/blob/main/internal/service/content/question_service.go#L416
Screenshots
notification/new_question_notification.go:230 pluginNotificationMsg: &{Type: ReceiverUserID: ReceiverLang:zh_CN ReceiverExternalID: TriggerUserID: TriggerUserDisplayName: TriggerUserUrl: QuestionTitle:test notice QuestionUrl:http://localhost/questions/10010000000000038 QuestionTags: AnswerUrl: CommentUrl:}
Platform
- Device: Desktop
- OS: macOS
- Browser and version: Chrome
- Version: v1.6.0
Fix
I tried to do some repairs
This issue is related to pull request #1382