Closed Bug 697304 Opened 13 years ago Closed 13 years ago

Remove sql from common_model in webapp

Categories

(Socorro :: Webapp, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: lonnen, Assigned: adrian)

References

Details

webapp-php/application/models/common.php contains quite a bit of sql interacting with the reports table. Lets get that moved into the services layer. The model could potentially be refactored to be report_model, since its functionality is not really common. It's used in three files, really two, and could be cleaned up a bit. * controllers/feed.php instantiates it directly to call `queryReports` twice. * libraries/MY_Controller.php instantiates it to store it as a var * controllers/report.php uses the MY_Controller local instance to call every method but `queryTopSignatures`, which is dead code.
Component: Socorro → General
Product: Webtools → Socorro
Blocks: 704477
Blocks: 701600
No longer blocks: 704477
Depends on: 734120
Assignee: nobody → adrian
Component: General → Webapp
QA Contact: socorro → webapp
Target Milestone: --- → 7
Version: 2.4 → Trunk
Commits pushed to master at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/e0c8e7e7bb644e5d36aba9ab2cc4b1f5718f72e0 Fixes bug 697304 - Removed the obsolete common model. https://github.com/mozilla/socorro/commit/244dca541bc8548a2d71c654ed9e38d74fd52d6c Merge pull request #504 from AdrianGaudebert/697304-remove-common-model Fixes bug 697304 - Removed the obsolete common model.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Steps to QA ----------- 1. Verify nothing is broken. 2. Enjoy the rest of your day.
Thanks adrian, QA verified on stage - automation run and passes.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.