-
-
Notifications
You must be signed in to change notification settings - Fork 62
feat(search-issues): Add message column to search issues #4385
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
Conversation
This PR has a migration; here is the generated SQL -- start migrations
-- forward migration search_issues : 0009_add_message
Local op: ALTER TABLE search_issues_local_v2 ADD COLUMN IF NOT EXISTS message String AFTER replay_id;
Distributed op: ALTER TABLE search_issues_dist_v2 ADD COLUMN IF NOT EXISTS message String AFTER replay_id;
-- end forward migration search_issues : 0009_add_message
-- backward migration search_issues : 0009_add_message
Distributed op: ALTER TABLE search_issues_dist_v2 DROP COLUMN IF EXISTS message;
Local op: ALTER TABLE search_issues_local_v2 DROP COLUMN IF EXISTS message;
-- end backward migration search_issues : 0009_add_message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, damn I missed this column ..
The code looks ok, but I think we'll need to split this PR up into two following steps:
- PR1: Add the migration and include it in
group_loader.py
- Merge PR1 and have someone from the SNS team manually run the migration against prod.
- PR2: Start extracting the field in
search_issues_processor
, and exposing the field in the storage and entity. - Merge PR2 and deploy snuba.
For completeness, you probably also wanna add a processor and api test:
snuba/tests/test_search_issues_api.py Line 264 in 173925b
|
…nce titles works as expected This validates that searching for an issue platform issue via text in the title works as expected. Relies on #51325 and getsentry/snuba#4385 Related to #50345
…d it initially.. Related to getsentry/sentry#50345
e251234
to
f11cd2d
Compare
Tbh I think I missed it in the initial design. Thanks for the feedback, splitting this up now |
This allows the message column on search issues to be queried, and stops using `issue_title`. We won't merge this until we've dual written data for a week or two. Relies on #4385, #4387 Related to getsentry/sentry#50345
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #4385 +/- ##
=======================================
Coverage 90.34% 90.34%
=======================================
Files 802 803 +1
Lines 39375 39388 +13
Branches 245 245
=======================================
+ Hits 35573 35585 +12
- Misses 3770 3771 +1
Partials 32 32
☔ View full report in Codecov by Sentry. |
…nce titles works as expected This validates that searching for an issue platform issue via text in the title works as expected. Relies on #51325 and getsentry/snuba#4385 Related to #50345
This allows the message column on search issues to be queried, and stops using `issue_title`. We won't merge this until we've dual written data for a week or two. Relies on #4385, #4387 Related to getsentry/sentry#50345
This allows the message column on search issues to be queried, and stops using `issue_title`. We won't merge this until we've dual written data for a week or two. Relies on #4385, #4387 Related to getsentry/sentry#50345
) This allows the message column on search issues to be queried, and stops using `issue_title`. We won't merge this until we've dual written data for a week or two. Relies on #4385, #4387 Related to getsentry/sentry#50345
This adds the
message
column to search issues, since we missed including it a column initially.Related to getsentry/sentry#50345