Merge lp:~osomon/webbrowser-app/use-qml-SortFilterModel into lp:webbrowser-app
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Olivier Tilloy on 2015-12-04 | ||||
| Approved revision: | 1154 | ||||
| Merged at revision: | 1294 | ||||
| Proposed branch: | lp:~osomon/webbrowser-app/use-qml-SortFilterModel | ||||
| Merge into: | lp:webbrowser-app | ||||
| Diff against target: |
2429 lines (+242/-1360) 42 files modified
src/app/webbrowser/CMakeLists.txt (+0/-4) src/app/webbrowser/HistoryView.qml (+6/-6) src/app/webbrowser/HistoryViewWide.qml (+12/-7) src/app/webbrowser/NewTabView.qml (+1/-5) src/app/webbrowser/NewTabViewWide.qml (+1/-6) src/app/webbrowser/PreviewManager.qml (+1/-3) src/app/webbrowser/TopSitesModel.qml (+31/-0) src/app/webbrowser/history-domain-model.cpp (+4/-5) src/app/webbrowser/history-domain-model.h (+5/-5) src/app/webbrowser/history-domainlist-chronological-model.cpp (+0/-55) src/app/webbrowser/history-domainlist-chronological-model.h (+0/-46) src/app/webbrowser/history-domainlist-model.cpp (+4/-5) src/app/webbrowser/history-domainlist-model.h (+6/-6) src/app/webbrowser/history-lastvisitdate-model.cpp (+0/-141) src/app/webbrowser/history-lastvisitdate-model.h (+0/-63) src/app/webbrowser/history-lastvisitdatelist-model.cpp (+45/-7) src/app/webbrowser/history-lastvisitdatelist-model.h (+1/-0) src/app/webbrowser/history-model.cpp (+9/-1) src/app/webbrowser/history-model.h (+2/-1) src/app/webbrowser/history-timeframe-model.cpp (+0/-98) src/app/webbrowser/history-timeframe-model.h (+0/-63) src/app/webbrowser/limit-proxy-model.h (+1/-1) src/app/webbrowser/top-sites-model.cpp (+0/-60) src/app/webbrowser/top-sites-model.h (+0/-49) src/app/webbrowser/webbrowser-app.cpp (+0/-8) tests/unittests/CMakeLists.txt (+0/-4) tests/unittests/history-domain-model/tst_HistoryDomainModelTests.cpp (+8/-14) tests/unittests/history-domainlist-chronological-model/CMakeLists.txt (+0/-13) tests/unittests/history-domainlist-chronological-model/tst_HistoryDomainListChronologicalModelTests.cpp (+0/-110) tests/unittests/history-domainlist-model/tst_HistoryDomainListModelTests.cpp (+11/-25) tests/unittests/history-lastvisitdate-model/CMakeLists.txt (+0/-11) tests/unittests/history-lastvisitdate-model/tst_HistoryLastVisitDateModelTests.cpp (+0/-138) tests/unittests/history-lastvisitdatelist-model/tst_HistoryLastVisitDateListModelTests.cpp (+14/-35) tests/unittests/history-model/tst_HistoryModelTests.cpp (+1/-1) tests/unittests/history-timeframe-model/CMakeLists.txt (+0/-13) tests/unittests/history-timeframe-model/tst_HistoryTimeframeModelTests.cpp (+0/-160) tests/unittests/limit-proxy-model/tst_LimitProxyModelTests.cpp (+79/-60) tests/unittests/qml/CMakeLists.txt (+0/-3) tests/unittests/qml/tst_HistoryViewWide.qml (+0/-1) tests/unittests/qml/tst_QmlTests.cpp (+0/-6) tests/unittests/top-sites-model/CMakeLists.txt (+0/-13) tests/unittests/top-sites-model/tst_TopSitesModelTests.cpp (+0/-108) |
||||
| To merge this branch: | bzr merge lp:~osomon/webbrowser-app/use-qml-SortFilterModel | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Approve on 2015-12-03 | |
| Ugo Riboni (community) | 2015-10-02 | Approve on 2015-10-07 | |
|
Review via email:
|
|||
Commit Message
Replace custom models (HistoryDomainL
Remove entirely HistoryTimefram
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1147
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Ugo Riboni (uriboni) wrote : | # |
One of the qml unit tests for NewTabViewWide seems to fail, apparently due to some issues with the history models.
| Olivier Tilloy (osomon) wrote : | # |
Not seeing that here (and CI runs are fine too, if we except bug #1498539). Which test are you seeing fail? Can you paste the detailed log of the failure?
| Ugo Riboni (uriboni) wrote : | # |
Apart of that code-wise all LGTM. Reviews that mostly remove code are always a pleasure. I left a few comments inline, but they are not major things.
Performing functional testing in a minute.
| Ugo Riboni (uriboni) wrote : | # |
> Not seeing that here (and CI runs are fine too, if we except bug #1498539).
> Which test are you seeing fail? Can you paste the detailed log of the failure?
Check the report from Jenkins a few comments up in this MR.
If you look at the failures you can dig down to this one:
FAIL! : QmlTests:
Actual (): 0
Expected (): 1
Loc: [/tmp/buildd/
| Olivier Tilloy (osomon) wrote : | # |
> Wouldn't it be safer and cleaner to add a role that exposes the lastVisit
> as a QString in ISO 8601 standard format and then use that for sorting
> and filtering ? You could do things like anchor the RegExp to the start
> for extra safety.
Agreed, this is safer. Done, I added a 'lastVisitDateS
> Is there any particular reason why you prefer to declare this separately
> instead as directly assigned to the topSitesModel.model ? Same applies
> in other parts of the code. I don't mind but I would like to know if it
> is just a style preference you have or if there are other reasons for it.
Yes, there is a good reason for this structure. See comments 1 and 2 on bug #1495482.
> Maybe in the warning mention that null is allowed too ?
Good idea. Done.
| Ugo Riboni (uriboni) wrote : | # |
> > Is there any particular reason why you prefer to declare this separately
> > instead as directly assigned to the topSitesModel.model ? Same applies
> > in other parts of the code. I don't mind but I would like to know if it
> > is just a style preference you have or if there are other reasons for it.
>
> Yes, there is a good reason for this structure. See comments 1 and 2 on bug
> #1495482.
Ok, let's leave it like this for now, but I am unconvinced by the fact that we can not use the two syntaxes interchangeably. I feel like there is some other bug related to roles in our custom models. Won't be the first time.
Anyway, this MR is good to go regardless of that.
| Olivier Tilloy (osomon) wrote : | # |
QmlTests:
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1149
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 1150. By Olivier Tilloy on 2015-10-15
-
Merge the latest changes from trunk and resolve conflicts.
- 1151. By Olivier Tilloy on 2015-10-15
-
Fix the PreviewManager’s use of TopSitesModel.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1151
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1151
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1151
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 1152. By Olivier Tilloy on 2015-10-28
-
Remove the custom HistoryTimefram
eModel proxy model, as it’s not needed any longer.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1152
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1152
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 1153. By Olivier Tilloy on 2015-11-23
-
Merge the latest changes from trunk.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1153
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 1154. By Olivier Tilloy on 2015-12-03
-
Merge the latest changes from trunk.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1154
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1154
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1154
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1154
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

FAILED: Continuous integration, rev:1147 jenkins. qa.ubuntu. com/job/ webbrowser- app-ci/ 2310/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 4472/console jenkins. qa.ubuntu. com/job/ webbrowser- app-vivid- amd64-ci/ 1064/console jenkins. qa.ubuntu. com/job/ webbrowser- app-vivid- armhf-ci/ 1064 jenkins. qa.ubuntu. com/job/ webbrowser- app-vivid- armhf-ci/ 1064/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ webbrowser- app-vivid- i386-ci/ 1064/console jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 3637/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 4469 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 4469/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 23889
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/webbrowser- app-ci/ 2310/rebuild
http://