Closed Bug 725304 Opened 14 years ago Closed 14 years ago

Move Comments SQL query to a middleware service

Categories

(Socorro Graveyard :: Middleware, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adrian, Assigned: adrian)

References

Details

The SQL query for comments in webapp-php/application/models/common.php needs to be moved to an independent middleware service.
Blocks: 701600
Commit pushed to master at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/5148e1a99d2d7eacb358e3498962d3098f3383b7 Merge pull request #348 from AdrianGaudebert/725304-comments-middleware-service Fixes bug 725304 - Created a new middleware service for comments.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Steps to QA ----------- 1. Go to advanced search and run any query during a week before now. 2. Click on a signature with enough crash reports to make sure it has comments. 3. On report/list, verify that the number of comments is correct (compare with prod and / or with comments listed in the Reports tab). 4. Click a comment's date to go to report/index and verify that you have comments in the Comments tab. That tab is supposed to see comments related to the crash signature for the last 7 days, if you're first search wasn't for a week before now you may not see that comment.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Oh, good catch. By default the number of results sent back by the middleware service is 100. Which means with this new system there can never be more than 100 comments... I was thinking this would be a very unusual thing, but I may have been underestimating the number of comments our users give us! Will fix that next Monday to make the maximum number of comments infinite.
Commit pushed to master at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/0696ac4c9542e54e13e53a9992a599c7d630ad89 Merge pull request #374 from AdrianGaudebert/725304-comments-middleware-service Fixes bug 725304 - Allowed infinite number of results instead of max 100.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Excellent find :austind (comment 4)! lgtm on dev.
QA verified on stage.
Status: RESOLVED → VERIFIED
Commit pushed to stage at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/6b298870b9899cb65314c8ea4aaf26024438a9a1 Fixes bug 725304 - Allowed infinite number of results instead of max 100.
Status: VERIFIED → RESOLVED
Closed: 14 years ago14 years ago
Product: Socorro → Socorro Graveyard
You need to log in before you can comment on or make changes to this bug.