Closed
Bug 697304
Opened 13 years ago
Closed 13 years ago
Remove sql from common_model in webapp
Categories
(Socorro :: Webapp, task)
Socorro
Webapp
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.
Updated•13 years ago
|
Component: Socorro → General
Product: Webtools → Socorro
Assignee | ||
Updated•13 years ago
|
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → adrian
Component: General → Webapp
QA Contact: socorro → webapp
Target Milestone: --- → 7
Version: 2.4 → Trunk
Comment 1•13 years ago
|
||
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.
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 2•13 years ago
|
||
Steps to QA
-----------
1. Verify nothing is broken.
2. Enjoy the rest of your day.
Comment 3•13 years ago
|
||
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.
Description
•