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)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adrian, Assigned: adrian)

Details

Attachments

(2 files, 1 obsolete file)

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: nobody → adrian
Target Milestone: --- → 2.2
Version: 2.1 → Trunk
Target Milestone: 2.2 → 2.3
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)
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)
Target Milestone: 2.3 → 2.2.2
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+
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 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+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
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
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?
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)
Target Milestone: 2.2.3 → 2.3
Target Milestone: 2.3 → 2.2.3
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 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.
Attachment #557036 - Flags: review?(chris.lonnen) → review+
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
@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.
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.
Target Milestone: 2.2.3 → 2.3
Target Milestone: 2.3 → 2.4
Target Milestone: 2.4 → ---
Component: Socorro → General
Product: Webtools → Socorro
Component: General → Webapp
Priority: -- → P3
Priority: P3 → P2
This was fixed by bug 857055.
Status: REOPENED → RESOLVED
Closed: 14 years ago13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: