Closed
Bug 669699
Opened 15 years ago
Closed 13 years ago
Allow the UI to choose what search implementation to use in the mware
Categories
(Socorro :: Webapp, task, P2)
Socorro
Webapp
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: adrian, Assigned: adrian)
Details
Attachments
(2 files, 1 obsolete file)
|
3.14 KB,
patch
|
lonnen
:
review+
|
Details | Diff | Splinter Review |
|
8.39 KB,
patch
|
lonnen
:
review+
|
Details | Diff | Splinter Review |
For testing purpose mainly, it would be useful to allow to choose the implementation used when performing a search in the middleware. It would basically consist in a new parameter in the URL that says to force ElasticSearch or PostgreSQL.
| Assignee | ||
Updated•15 years ago
|
Assignee: nobody → adrian
| Assignee | ||
Updated•15 years ago
|
Target Milestone: --- → 2.2
Version: 2.1 → Trunk
Updated•15 years ago
|
Target Milestone: 2.2 → 2.3
| Assignee | ||
Comment 1•15 years ago
|
||
This patch does a small refactor of the search service class, mainly to add the possibility to force the API implementation to use, secondarily to make it PEP8 compliant.
Attachment #551200 -
Flags: review?(rhelmer)
| Assignee | ||
Comment 2•14 years ago
|
||
Comment on attachment 551200 [details] [diff] [review]
Add an option for choosing the implementation + PEP8
Review of attachment 551200 [details] [diff] [review]:
-----------------------------------------------------------------
rhelmer is out and it's been waiting for review for weeks. lonnen?
Attachment #551200 -
Flags: review?(rhelmer) → review?(chris.lonnen)
| Assignee | ||
Updated•14 years ago
|
Target Milestone: 2.3 → 2.2.2
Comment 3•14 years ago
|
||
Comment on attachment 551200 [details] [diff] [review]
Add an option for choosing the implementation + PEP8
Post patch, line 11 should be a blank line. Fix that and this is good.
Attachment #551200 -
Flags: review?(chris.lonnen) → review+
| Assignee | ||
Comment 4•14 years ago
|
||
I added the missing blank line and removed some uneeded ones. Chris can you review it once again please, I think nothing changed but the patch is very different from the previous one, so I would like to be sure before pushing.
Attachment #551200 -
Attachment is obsolete: true
Attachment #554273 -
Flags: review?(chris.lonnen)
Comment 5•14 years ago
|
||
Comment on attachment 554273 [details] [diff] [review]
Add an option for choosing the implementation + PEP8 v2
The diffs are different but their output differences are exactly what you were expecting. Thanks
Attachment #554273 -
Flags: review?(chris.lonnen) → review+
| Assignee | ||
Comment 6•14 years ago
|
||
Landed on trunk with commit r3472: http://code.google.com/p/socorro/source/detail?r=3472
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 7•14 years ago
|
||
QA verified. Using the forced_api_impl flag "es" and "pg" return the same results:
Each query returns 28 results. Digging down into the results and continuing to use the flag, the results appear the same.
https://crash-stats.allizom.org/query/query?product=Firefox&version=ALL%3AALL&range_value=1&range_unit=weeks&date=08%2F29%2F2011+10%3A27%3A00&query_search=signature&query_type=contains&query=UserCallWinProcCheckWow&reason=&build_id=&process_type=any&hang_type=any&forced_api_impl=es&do_query=1
https://crash-stats.allizom.org/query/query?product=Firefox&version=ALL%3AALL&range_value=1&range_unit=weeks&date=08%2F29%2F2011+10%3A27%3A00&query_search=signature&query_type=contains&query=UserCallWinProcCheckWow&reason=&build_id=&process_type=any&hang_type=any&forced_api_impl=matt&do_query=1
https://crash-stats.allizom.org/query/query?product=Firefox&version=ALL%3AALL&range_value=1&range_unit=weeks&date=08%2F29%2F2011+10%3A27%3A00&query_search=signature&query_type=contains&query=UserCallWinProcCheckWow&reason=&build_id=&process_type=any&hang_type=any&forced_api_impl=pg&do_query=1
https://crash-stats.allizom.org/query/query?product=Firefox&version=ALL%3AALL&range_value=1&range_unit=weeks&date=08%2F29%2F2011+10%3A27%3A00&query_search=signature&query_type=contains&query=UserCallWinProcCheckWow&reason=&build_id=&process_type=any&hang_type=any&forced_api_impl=es&do_query=1
Status: RESOLVED → VERIFIED
| Assignee | ||
Comment 8•14 years ago
|
||
Guess what? Results didn't change because nothing changed in the back end, this forcing option was done for the middleware but is not accessible in the UI... I reopened and will fix this asap.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Target Milestone: 2.2.2 → 2.2.3
Comment 9•14 years ago
|
||
adrian, so I don't make the mistake again. Are there visual indicators in the app that QA can see so I don't mistakenly mark this as verified again?
| Assignee | ||
Comment 10•14 years ago
|
||
Add the option of choosing the implementation from the webapp, and fix the name of the parameter used in the middleware.
To use it, add &force_api_impl=es or &force_api_impl=pg at the end of the url, respectively for ElasticSearch and PostgreSQL.
Attachment #557036 -
Flags: review?(bsavage)
| Assignee | ||
Updated•14 years ago
|
Target Milestone: 2.2.3 → 2.3
| Assignee | ||
Updated•14 years ago
|
Target Milestone: 2.3 → 2.2.3
| Assignee | ||
Comment 11•14 years ago
|
||
Comment on attachment 557036 [details] [diff] [review]
Add an option for choosing the implementation in the UI
Review of attachment 557036 [details] [diff] [review]:
-----------------------------------------------------------------
Given to Chris Lonnen.
Attachment #557036 -
Flags: review?(bsavage) → review?(chris.lonnen)
Comment 12•14 years ago
|
||
Comment on attachment 557036 [details] [diff] [review]
Add an option for choosing the implementation in the UI
Going forward on git, it would be easier to point me to two separate commits: one for the code cleanup, a second for the changes. A patch is fine for this though.
Updated•14 years ago
|
Attachment #557036 -
Flags: review?(chris.lonnen) → review+
Comment 13•14 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 14•14 years ago
|
||
@Matt: To test this, do the exact same you did previously, make sure we have the same result (with some eventual very small differences), and also make sure that with ES you never see more than 1,000 results.
Of course, you can just ask me anything you need.
Comment 15•14 years ago
|
||
After talking to adrian, we're reopening this to track the discussion.
Testing for the return of less than or equal to 1,000 results returns a 500.
https://crash-stats-dev.allizom.org/query/query?product=Firefox&version=ALL%3AALL&range_value=3&range_unit=weeks&date=08%2F29%2F2011+10%3A27%3A00&query_search=signature&query_type=contains&query=&reason=&build_id=&process_type=any&hang_type=any&forced_api_impl=es&do_query=1
Returns:
[11:13:59.541] GET https://crash-stats-dev.allizom.org/query/query?product=Firefox&version=ALL%3AALL&range_value=3&range_unit=weeks&date=08%2F29%2F2011+10%3A27%3A00&query_search=signature&query_type=contains&query=&reason=&build_id=&process_type=any&hang_type=any&forced_api_impl=es&do_query=1 [HTTP/1.1 500 Internal Server Error 31726ms]
And
https://crash-stats.allizom.org/query/query?product=Firefox&version=ALL%3AALL&range_value=3&range_unit=weeks&date=08%2F29%2F2011+10%3A27%3A00&query_search=signature&query_type=contains&query=&reason=&build_id=&process_type=any&hang_type=any&forced_api_impl=es&do_query=1
Results:
[11:33:50.481] GET https://crash-stats.allizom.org/query/query?product=Firefox&version=ALL%3AALL&range_value=3&range_unit=weeks&date=08%2F29%2F2011+10%3A27%3A00&query_search=signature&query_type=contains&query=&reason=&build_id=&process_type=any&hang_type=any&forced_api_impl=es&do_query=1 [HTTP/1.1 500 Internal Server Error 32029ms]
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 16•14 years ago
|
||
Same as bug 682140, it is tested and working on my khan instance, we now are waiting for a link to ES to be opened from dev/stage.
Updated•14 years ago
|
Target Milestone: 2.2.3 → 2.3
Updated•14 years ago
|
Target Milestone: 2.3 → 2.4
Updated•14 years ago
|
Target Milestone: 2.4 → ---
Updated•14 years ago
|
Component: Socorro → General
Product: Webtools → Socorro
Updated•14 years ago
|
Component: General → Webapp
| Assignee | ||
Updated•13 years ago
|
Priority: -- → P3
| Assignee | ||
Updated•13 years ago
|
Priority: P3 → P2
| Assignee | ||
Comment 17•13 years ago
|
||
This was fixed by bug 857055.
Status: REOPENED → RESOLVED
Closed: 14 years ago → 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•