Closed Bug 678642 Opened 15 years ago Closed 14 years ago

move report/list/ queries to middleware

Categories

(Socorro Graveyard :: Middleware, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rhelmer, Assigned: adrian)

References

Details

With 2.2, the query that the PHP app does to do /report/list has become even more complex. The PHP app should not know about new tcbs versus old tcbs, we can have the middleware make that decision.
(In reply to Robert Helmer [:rhelmer] from comment #0) > With 2.2, the query that the PHP app does to do /report/list has become even > more complex. See bug 678205
Blocks: 679360
Target Milestone: 2.3 → 2.3.1
This fits into middleware refactoring -> adrian
Assignee: nobody → adrian
Target Milestone: 2.3.1 → 2.3.2
Target Milestone: 2.3.2 → 2.4
Blocks: 701600
Along with this rewrite of report/list, I found inconsistencies between search, report/list and tcbs. Full explanations can be found in bug 711233. Regarding report/list, once bug 537003 is solved, and in parallel with bug 712586, I will add a way to detect how the source was filtering by dates. Search for example is precise and will have timezones, TCBS is UTC only and uses full days range. We need to know this in order to return consistent results regarding where the user comes from.
Depends on: 537003
Component: Socorro → General
Product: Webtools → Socorro
Component: General → Middleware
QA Contact: socorro → middleware
Target Milestone: 2.4 → 2.4.1
I'm moving this back to 2.4 as we will need to fix the PHP version if I don't. I'd better accelerate this than make another painful change on that old code. The new middleware version doesn't do date conversion. It will instead accept a boolean parameter that can force to use full days. This way, when coming from TCBS users will have filtering on full days, and coming from search they will see filtering on precise datetime. No more inconsistencies in numbers, yay!
Target Milestone: 2.4.1 → 2.4
After a suggestion from jberkus, and to make QA of 2.4 easier, I'll move that to 2.4.1 once again. The needed change in report/list is small enough that we can afford doing it in PHP.
Target Milestone: 2.4 → 2.4.1
Blocks: 716750
Blocks: 717755
Depends on: 720242
Blocks: 719348
Commits pushed to master at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/57076b743a3a151bf8c2ec4a23d872be9ca3f9e0 Bug 678642 - Move report/list to middleware. https://github.com/mozilla/socorro/commit/7622e417d1a0f59f594f9939b48cfe8f0d250d35 Merge pull request #294 from AdrianGaudebert/678642-report-list-middleware Bug 678642 - Move report/list to middleware.
Steps to QA ----------- 1. Go to advanced search 2. Perform a search with various parameters 3. Click on a signature either with more than 250 results or less than 10 (easier to count :) ) 4. Check that the Reports tab of report/list shows the same number of results as search 5. Go back to 2 and use different parameters until you are satisfied or you died of testing too much.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
QA verified on dev. The counts look good for results ranging from 1 to 37. Adrian thank you for the excellent steps to qa and no .. test is not dead.
Status: RESOLVED → VERIFIED
Product: Socorro → Socorro Graveyard
You need to log in before you can comment on or make changes to this bug.