Skip to content

feat(user feedback): update default title for tickets created from user feedback #94889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jas-kas
Copy link
Member

@jas-kas jas-kas commented Jul 3, 2025

This PR outlines a plan to enhance the default title for tickets created from Sentry's User Feedback.

Why: The current default title "User Feedback" is generic and lacks context when integrated with external systems like JIRA, GitHub, or Linear.
What: The goal is to update the default title to be more descriptive, following the format "User Feedback:

- Replace hardcoded 'User Feedback' title with dynamic generation
- Add generate_feedback_title() function that creates titles like 'User Feedback: [first few words]...'
- Handle edge cases: empty messages, long messages, special characters
- Add comprehensive tests for title generation functionality
- Maintain backwards compatibility - only affects new feedback issues
- Supports external integrations (JIRA, GitHub, Linear) with better context
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 3, 2025
Copy link

codecov bot commented Jul 3, 2025

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
27182 2 27180 251
View the top 2 failed test(s) by shortest run time
tests.sentry.feedback.usecases.test_create_feedback::test_generate_feedback_title
Stack Traces | 0.069s run time
#x1B[1m#x1B[.../feedback/usecases/test_create_feedback.py#x1B[0m:1163: in test_generate_feedback_title
    assert generate_feedback_title(long_message) == expected
#x1B[1m#x1B[31mE   AssertionError: assert 'User Feedbac...at goes on...' == 'User Feedbac...oes on and...'#x1B[0m
#x1B[1m#x1B[31mE     #x1B[0m
#x1B[1m#x1B[31mE     Skipping 54 identical leading characters in diff, use -v to show#x1B[0m
#x1B[1m#x1B[31mE     - at goes on and...#x1B[0m
#x1B[1m#x1B[31mE     ?           ----#x1B[0m
#x1B[1m#x1B[31mE     + at goes on...#x1B[0m
tests.sentry.feedback.usecases.test_create_feedback::test_create_feedback_issue_title_with_long_message
Stack Traces | 2.47s run time
#x1B[1m#x1B[.../feedback/usecases/test_create_feedback.py#x1B[0m:1242: in test_create_feedback_issue_title_with_long_message
    assert occurrence.issue_title == expected_title
#x1B[1m#x1B[31mE   AssertionError: assert 'User Feedbac...s multiple...' == 'User Feedbac...ple issues...'#x1B[0m
#x1B[1m#x1B[31mE     #x1B[0m
#x1B[1m#x1B[31mE     Skipping 65 identical leading characters in diff, use -v to show#x1B[0m
#x1B[1m#x1B[31mE     - s multiple issues...#x1B[0m
#x1B[1m#x1B[31mE     ?           -------#x1B[0m
#x1B[1m#x1B[31mE     + s multiple...#x1B[0m

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants