Merge lp:~dkessel/ubuntu-qa-website/fix-date-filtering into lp:ubuntu-qa-website
Proposed by
Daniel Kessel
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 403 | ||||
Proposed branch: | lp:~dkessel/ubuntu-qa-website/fix-date-filtering | ||||
Merge into: | lp:ubuntu-qa-website | ||||
Diff against target: |
75 lines (+26/-13) 2 files modified
modules/qatracker/qatracker.functions.php (+14/-9) modules/qatracker/user/qatracker.user.builds.php (+12/-4) |
||||
To merge this branch: | bzr merge lp:~dkessel/ubuntu-qa-website/fix-date-filtering | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nicholas Skaggs (community) | Approve | ||
Daniel Kessel (community) | Needs Resubmitting | ||
Review via email: mp+240175@code.launchpad.net |
Description of the change
This branch fixes two issues:
1. It fixes the currently broken SQL query that is generated when entering anything into the date range text fields. The current code refers to a non-existing database field...
2. It sets the default date range in all date filters in the website to be "from today minus 31 days until today", so those expensive queries are no longer performed by default.
To post a comment you must log in.
This is ready for a new review.
I fixed the following issues that came up yesterday:
- usage of a mix of single and double quotes => I now use single quotes throughout the modified code
- inconsistent naming - the existing code used 'date_to', I used 'to_date' => I changed those variable names to match the existing code
I also noticed the rest of the code was using space instead of tabs, so I fixed that too and converted all of my tabs to spaces.