Thanks to visit codestin.com
Credit goes to github.com

Skip to content

New Question Notification Message not get new tag #1383

@light-white

Description

@light-white

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:

  1. Access the question creation form
  2. Create a new tag in the tags field
  3. Submit the question with the new tag
  4. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions