Internal comment prefix shows [D-comment] instead of correct label (SZ-146)
rk@tigase.net opened 23 hours ago

Problem Internal comments are prefixed with [D-comment] in the issue history. Expected prefix is either [A-comment] for admin or a label reflecting the actual comment visibility (e.g. [Internal]). To investigate Trace where the comment prefix is generated in the backend — likely in the comment creation service or the audit log writer. The "D" may be deriving from the DEVELOPER role rather than the comment type or user type.

  • rk@tigase.net changed fields 23 hours ago
    Name Previous Value Current Value
    Priority
    Minor
    Normal
  • rk@tigase.net commented 13 hours ago

    Amend wolsonsc directly - this is a minor change.

  • rk@tigase.net changed state to 'In Progress' 13 hours ago
    Previous Value Current Value
    Open
    In Progress
  • rk@tigase.net commented 13 hours ago

    IssueEditModal.tsx was hardcoding [D-comments] for all state changes. Changed it to use a map:

     if (result.comment) {
                if (result.comment) {
                    const prefixMap: Record<string, string> = {
                        ASSIGN:           '[A-comment]',
                        START:            '[O-comment]',
                        DUPLICATE:        '[D-comment]',
                        JUNK:             '[J-comment]',
                        CLOSE:            '[C-comment]',
                        RESOLVE:          '[R-comment]',
                        VERIFY:           '[V-comment]',
                        REOPEN:           '[N-comment]',
                        NEED_INFORMATION: '[I-comment]',
                    };
                    const prefix = prefixMap[result.action] ?? '[I-comment]';
                    await addIssueComment(issue.id, `${prefix} ${result.comment}`, 'INTERNAL');
                }
            }
    
    
  • rk@tigase.net commented 13 hours ago
    rksuma@Ramakrishnans-MacBook-Pro sztab % git add frontend/src/components/issues/IssueEditModal.tsx
    git commit -m "SZ-146: Fix workflow comment prefixes - A/O/D/J/C/R/V/N/I-comments"
    git push origin wolnosc
    [wolnosc 5f208c1] SZ-146: Fix workflow comment prefixes - A/O/D/J/C/R/V/N/I-comments
     1 file changed, 15 insertions(+), 1 deletion(-)
    Enumerating objects: 13, done.
    Counting objects: 100% (13/13), done.
    Delta compression using up to 12 threads
    Compressing objects: 100% (7/7), done.
    Writing objects: 100% (7/7), 843 bytes | 843.00 KiB/s, done.
    Total 7 (delta 6), reused 0 (delta 0), pack-reused 0 (from 0)
    To https://tigase.dev/sztab.git
       072ed2f..5f208c1  wolnosc -> wolnosc
    rksuma@Ramakrishnans-MacBook-Pro sztab % 
    
    
  • rk@tigase.net changed state to 'Closed' 13 hours ago
    Previous Value Current Value
    In Progress
    Closed
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
1.10.1
Sprints
n/a
Customer
n/a
Issue Votes (0)
Watchers (2)
Reference
SZ-146
Please wait...
Page is in error, reload to recover