D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-02-07 Thread Michael Heidelbach
This revision was automatically updated to reflect the committed changes. Closed by commit R824:5e4203cd323a: baloo-widgets: Emit metaDataRequestFinished once per request (authored by michaelh). REPOSITORY R824 Baloo Widgets CHANGES SINCE LAST UPDATE

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-02-03 Thread Nathaniel Graham
ngraham accepted this revision. REPOSITORY R824 Baloo Widgets BRANCH signalavailable (branched from master) REVISION DETAIL https://phabricator.kde.org/D10113 To: michaelh, elvisangelaccio, smithjd, vhanda, ngraham, #dolphin, #frameworks Cc: dhaumann

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-02-03 Thread Elvis Angelaccio
elvisangelaccio accepted this revision as: elvisangelaccio. This revision is now accepted and ready to land. REPOSITORY R824 Baloo Widgets BRANCH signalavailable (branched from master) REVISION DETAIL https://phabricator.kde.org/D10113 To: michaelh, elvisangelaccio, smithjd, vhanda,

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-30 Thread Michael Heidelbach
michaelh marked 3 inline comments as done. REPOSITORY R824 Baloo Widgets REVISION DETAIL https://phabricator.kde.org/D10113 To: michaelh, elvisangelaccio, smithjd, vhanda, ngraham, #dolphin, #frameworks Cc: dhaumann

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-30 Thread Michael Heidelbach
michaelh added inline comments. INLINE COMMENTS > filemetadatawidget.cpp:119 > +slotDataAvailable(); > +emit q->metaDataRequestFinished(m_provider->items()); > +} test with empty `items()`: This code is reached, but the `moc` doesn't signal. REPOSITORY R824 Baloo Widgets REVISION

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-30 Thread Michael Heidelbach
michaelh updated this revision to Diff 26222. michaelh added a comment. Change commit message REPOSITORY R824 Baloo Widgets CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D10113?vs=26218=26222 BRANCH signalavailable (branched from master) REVISION DETAIL

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-30 Thread Michael Heidelbach
michaelh added a comment. Both test for empty failed because the spy timed out! IMO they should not, because consumers rely on the `metaDataRequestFinished` signal. Please tell me if you disagree. I don't know why they fail, yet. Because line 371 is reached in

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-30 Thread Michael Heidelbach
michaelh updated this revision to Diff 26218. michaelh added a comment. Added test for empty file list Added test for file list with empty url Simplified path construction REPOSITORY R824 Baloo Widgets CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D10113?vs=26183=26218

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-30 Thread Michael Heidelbach
michaelh added a comment. Changed description Or did you mean the commit messages of 1e3aa22d15d8 and 0f362a3e0de0? Also, I've committed the accepted revisions to master not Applications/17.1. Correct? REPOSITORY R824 Baloo Widgets REVISION DETAIL https://phabricator.kde.org/D10113

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-30 Thread Michael Heidelbach
michaelh edited the summary of this revision. REPOSITORY R824 Baloo Widgets REVISION DETAIL https://phabricator.kde.org/D10113 To: michaelh, elvisangelaccio, smithjd, vhanda, ngraham, #dolphin, #frameworks Cc: dhaumann

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-29 Thread Elvis Angelaccio
elvisangelaccio added inline comments. INLINE COMMENTS > michaelh wrote in filemetadataprovider.cpp:323 > In that case it might be safer to do > > IndexedDataRetriever *ret = new IndexedDataRetriever(filePath, this); > ​connect(ret, SIGNAL(finished(KJob*)), this, >

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-29 Thread Michael Heidelbach
michaelh updated this revision to Diff 26183. michaelh added a comment. Merge branch 'master' of git://anongit.kde.org/baloo-widgets Change execution order in setFileItems REPOSITORY R824 Baloo Widgets CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D10113?vs=26149=26183 BRANCH

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-29 Thread Michael Heidelbach
michaelh planned changes to this revision. michaelh added a comment. Needs rebasing REPOSITORY R824 Baloo Widgets REVISION DETAIL https://phabricator.kde.org/D10113 To: michaelh, elvisangelaccio, smithjd, vhanda, ngraham, #dolphin, #frameworks Cc: dhaumann

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-28 Thread Michael Heidelbach
michaelh updated this revision to Diff 26149. michaelh added a comment. Change execution order in setFileItem REPOSITORY R824 Baloo Widgets CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D10113?vs=26135=26149 BRANCH dataavail REVISION DETAIL

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-28 Thread Michael Heidelbach
michaelh updated this revision to Diff 26135. michaelh added a comment. Correct yet another update error REPOSITORY R824 Baloo Widgets CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D10113?vs=26131=26135 BRANCH dataavail REVISION DETAIL https://phabricator.kde.org/D10113

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-28 Thread Michael Heidelbach
michaelh updated this revision to Diff 26131. REPOSITORY R824 Baloo Widgets CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D10113?vs=26129=26131 BRANCH dataavail REVISION DETAIL https://phabricator.kde.org/D10113 AFFECTED FILES src/filemetadataprovider.cpp

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-28 Thread Michael Heidelbach
michaelh updated this revision to Diff 26129. michaelh added a comment. Add Q_ASSERT REPOSITORY R824 Baloo Widgets CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D10113?vs=26120=26129 BRANCH dataavail REVISION DETAIL https://phabricator.kde.org/D10113 AFFECTED FILES

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-28 Thread Michael Heidelbach
michaelh updated this revision to Diff 26120. michaelh added a comment. Revert incorrect diff update REPOSITORY R824 Baloo Widgets CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D10113?vs=26117=26120 BRANCH dataavail REVISION DETAIL https://phabricator.kde.org/D10113

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-28 Thread Michael Heidelbach
michaelh updated this revision to Diff 26117. michaelh added a comment. Apply suggested changes REPOSITORY R824 Baloo Widgets CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D10113?vs=26071=26117 BRANCH unittest REVISION DETAIL https://phabricator.kde.org/D10113 AFFECTED

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-27 Thread Michael Heidelbach
michaelh added inline comments. INLINE COMMENTS > elvisangelaccio wrote in filemetadataprovider.cpp:323 > I don't think so, because `IndexedDataRetriever::start()` does not block. In that case it might be safer to do IndexedDataRetriever *ret = new IndexedDataRetriever(filePath,

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-27 Thread Elvis Angelaccio
elvisangelaccio added a comment. +1, looks good to me. INLINE COMMENTS > michaelh wrote in filemetadataprovider.cpp:323 > Is it guaranteed, that this is emitted before IndexedDataRetriever job is > finished? I don't think so, because `IndexedDataRetriever::start()` does not block.

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-27 Thread Michael Heidelbach
michaelh marked an inline comment as done. michaelh added inline comments. INLINE COMMENTS > filemetadataprovider.cpp:323 > +emit dataAvailable(); > > } else { Is it guaranteed, that this is emitted before IndexedDataRetriever job is finished? REPOSITORY R824 Baloo

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-27 Thread Michael Heidelbach
michaelh updated this revision to Diff 26071. michaelh added a comment. Update signal descriptions REPOSITORY R824 Baloo Widgets CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D10113?vs=25962=26071 BRANCH dataavail REVISION DETAIL https://phabricator.kde.org/D10113 AFFECTED

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-27 Thread Dominik Haumann
dhaumann added inline comments. INLINE COMMENTS > filemetadataprovider.h:114 > void loadingFinished(); > +void dataAvailable(); > Could you add API documentation there what this signal indicates and when to use it? Typically, if you find code that is documented it is good practice

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-26 Thread Michael Heidelbach
michaelh retitled this revision from "Emit metaDataRequestFinished once per request" to "baloo-widgets: Emit metaDataRequestFinished once per request". REPOSITORY R824 Baloo Widgets REVISION DETAIL https://phabricator.kde.org/D10113 To: michaelh, elvisangelaccio, smithjd, vhanda, ngraham,

D10113: baloo-widgets: Emit metaDataRequestFinished once per request

2018-01-26 Thread Michael Heidelbach
michaelh added a dependent revision: D10119: Create test to assert metaDataRequestFinished is emitted once only. REPOSITORY R824 Baloo Widgets REVISION DETAIL https://phabricator.kde.org/D10113 To: michaelh, elvisangelaccio, smithjd, vhanda, ngraham, #dolphin, #frameworks