D29826: [KMainWindow] Invoke QIcon::setFallbackThemeName (later)

2020-06-04 Thread Igor Poboiko
poboiko added a comment. In D29826#674634 , @aacid wrote: > oh i think i'm too late :D Whoops, sorry :S Actually, I thought that if this piece of code is executed with Qt >= 5.15.1 (or whenever the proper fix is landed), it

D29826: [KMainWindow] Invoke QIcon::setFallbackThemeName (later)

2020-06-04 Thread Igor Poboiko
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit R263:899c0f7fa457: [KMainWindow] Invoke QIcon::setFallbackThemeName (later) (authored by poboiko). REPOSITORY R263

D29826: [KMainWindow] Invoke QIcon::setFallbackThemeName (later)

2020-06-04 Thread Igor Poboiko
poboiko updated this revision to Diff 83215. poboiko added a comment. Right, 5.15.1. REPOSITORY R263 KXmlGui CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D29826?vs=83212=83215 BRANCH icon-load (branched from master) REVISION DETAIL https://phabricator.kde.org/D29826

D29826: [KMainWindow] Invoke QIcon::setFallbackThemeName (later)

2020-06-04 Thread Igor Poboiko
poboiko updated this revision to Diff 83212. poboiko added a comment. Seems like the Qt fix was landed ... another one (https://codereview.qt-project.org/c/qt/qtbase/+/302341), but whatever. So I've removed link to the old one and added note to remove this after we depend on Qt 5.15.

D29826: [KMainWindow] Invoke QIcon::setFallbackThemeName (later)

2020-05-24 Thread Igor Poboiko
poboiko updated this revision to Diff 83141. poboiko added a comment. Sure, it's a temporary workaround anyways :) Update comment: add TODO mark and link to @aacid Qt patch REPOSITORY R263 KXmlGui CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D29826?vs=83129=83141 BRANCH

D29826: [KMainWindow] Invoke QIcon::setFallbackThemeName (later)

2020-05-23 Thread Igor Poboiko
poboiko added a comment. In D29826#673585 , @aacid wrote: > What about discover for example? Good point... REPOSITORY R263 KXmlGui REVISION DETAIL https://phabricator.kde.org/D29826 To: poboiko, aacid, mart, broulik Cc: mart,

D29826: [KMainWindow] Invoke QIcon::setFallbackThemeName (later)

2020-05-23 Thread Igor Poboiko
poboiko updated this revision to Diff 83129. poboiko added a comment. Don't override if fallbackThemeName is already set REPOSITORY R263 KXmlGui CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D29826?vs=83109=83129 BRANCH icon-load (branched from master) REVISION DETAIL

D22488: invoke QIcon::setFallbackThemeName a bit later

2020-05-23 Thread Igor Poboiko
poboiko added a comment. In D22488#673544 , @aacid wrote: > Wouldn't it make more sense to fix in Qt? It would make more sense. I thought as a temporary solution it would be nice to fix it in KF as well, since KF releases go out more

D29826: [KMainWindow] Invoke QIcon::setFallbackThemeName (later)

2020-05-23 Thread Igor Poboiko
poboiko added a comment. Thanks for looking into it! :) In D29826#673543 , @aacid wrote: > I don't think moving this code from KIconThemes to kmainwindow makes sense, what about all the apps that use KIconThemes but no KMainWindow?

D29826: [KMainWindow] Invoke QIcon::setFallbackThemeName (later)

2020-05-22 Thread Igor Poboiko
poboiko added a comment. My main motivation here is following: https://gerrit.libreoffice.org/c/core/+/94691. If it gets accepted, it would fix long-standing issue that people aren't able to use Libreoffice with KF5 integration plugin together with dark color scheme (and "breeze-dark"

D29826: [KMainWindow] Invoke QIcon::setFallbackThemeName (later)

2020-05-22 Thread Igor Poboiko
poboiko edited the summary of this revision. REPOSITORY R263 KXmlGui REVISION DETAIL https://phabricator.kde.org/D29826 To: poboiko, aacid, mart, broulik Cc: mart, kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns

D29826: [KMainWindow] Invoke QIcon::setFallbackThemeName (later)

2020-05-22 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: aacid, mart, broulik. Herald added a project: Frameworks. poboiko requested review of this revision. REVISION SUMMARY This is alternative approach to D22488: invoke QIcon::setFallbackThemeName a bit later

D29210: [NestedListHelper] Fix indentation of selection, add tests

2020-05-02 Thread Igor Poboiko
This revision was automatically updated to reflect the committed changes. Closed by commit R310:7012493410ae: [NestedListHelper] Fix indentation of selection, add tests (authored by poboiko). Herald added a project: Frameworks. REPOSITORY R310 KTextWidgets CHANGES SINCE LAST UPDATE

D29208: [NestedListHelper] Improve indentation code

2020-05-02 Thread Igor Poboiko
This revision was automatically updated to reflect the committed changes. Closed by commit R310:18a2371fe394: [NestedListHelper] Improve indentation code (authored by poboiko). REPOSITORY R310 KTextWidgets CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D29208?vs=81738=81743 REVISION

D29208: [NestedListHelper] Improve indentation code

2020-05-02 Thread Igor Poboiko
poboiko updated this revision to Diff 81738. poboiko added a comment. Improve readability as suggested, also const'ify REPOSITORY R310 KTextWidgets CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D29208?vs=81256=81738 BRANCH unused (branched from master) REVISION DETAIL

D29210: [NestedListHelper] Fix indentation of selection, add tests

2020-04-30 Thread Igor Poboiko
poboiko added inline comments. INLINE COMMENTS > dfaure wrote in nestedlisthelper.cpp:225 > should the opposite happen? delete the list when decreasing indentation? > > Or is that what the blkFmt.setObjectIndex(-1); is about? > A comment there would be useful... > > To me setObjectIndex(-1)

D29210: [NestedListHelper] Fix indentation of selection, add tests

2020-04-30 Thread Igor Poboiko
poboiko updated this revision to Diff 81585. poboiko added a comment. Make the code that removes the block from the list more obvious (without `setObjectIndex` magic) CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D29210?vs=81267=81585 BRANCH change-indent (branched from master)

D29208: [NestedListHelper] Improve indentation code

2020-04-30 Thread Igor Poboiko
poboiko added inline comments. INLINE COMMENTS > dfaure wrote in nestedlisthelper.cpp:87 > So the last block cannot be unindented? How come? That's the current block being checked, not the next one. I've just checked to be sure, last block can be unindented :) TBH, I don't really know if it's

D29210: [NestedListHelper] Fix indentation of selection, add tests

2020-04-26 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Frameworks, dfaure, mlaurent. poboiko requested review of this revision. REVISION SUMMARY When we try to increase / decrease an indentation level of a selection, just change indentation level of each block in the selection, and then

D29208: [NestedListHelper] Improve indentation code

2020-04-26 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Frameworks, dfaure, mlaurent. Herald added a project: Frameworks. poboiko requested review of this revision. REVISION SUMMARY The patch includes following improvements: 1. `handleAfterKeyPressEvent` was only used to adjust margins. We

D28967: [KRichTextEditor] Add support for headings

2020-04-19 Thread Igor Poboiko
This revision was automatically updated to reflect the committed changes. Closed by commit R263:2f86040cab5b: [KRichTextEditor] Add support for headings (authored by poboiko). REPOSITORY R263 KXmlGui CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D28967?vs=80524=80530 REVISION

D28968: [KRichTextEdit] Make sure headings don't mess with undo stack

2020-04-19 Thread Igor Poboiko
This revision was automatically updated to reflect the committed changes. Closed by commit R310:7d3a1386bee2: [KRichTextEdit] Make sure headings dont mess with undo stack (authored by poboiko). REPOSITORY R310 KTextWidgets CHANGES SINCE LAST UPDATE

D28968: [KRichTextEdit] Make sure headings don't mess with undo stack

2020-04-19 Thread Igor Poboiko
poboiko added inline comments. INLINE COMMENTS > dfaure wrote in krichtextedit.cpp:572 > Where is the corresponding beginEditBlock()? `joinPreviousEditBlock` in a way acts as `beginEditBlock` (see https://doc.qt.io/qt-5/qtextcursor.html#joinPreviousEditBlock). The intent here was following:

D28966: [KRichTextEdit] Fix scroll jumping around when horizontal rule is added

2020-04-19 Thread Igor Poboiko
This revision was automatically updated to reflect the committed changes. Closed by commit R310:0e14353610fa: [KRichTextEdit] Fix scroll jumping around when horizontal rule is added (authored by poboiko). REPOSITORY R310 KTextWidgets CHANGES SINCE LAST UPDATE

D28967: [KRichTextEditor] Add support for headings

2020-04-19 Thread Igor Poboiko
poboiko updated this revision to Diff 80524. poboiko added a comment. Update version REPOSITORY R263 KXmlGui CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D28967?vs=80507=80524 BRANCH heading (branched from master) REVISION DETAIL https://phabricator.kde.org/D28967

D28968: [KRichTextEdit] Make sure headings don't mess with undo stack

2020-04-18 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Frameworks, dfaure. Herald added a project: Frameworks. poboiko requested review of this revision. REVISION SUMMARY This patch ensures that everything related to headings is undoable with a single `Ctrl+Z`. It also adds tests for the

D28967: [KRichTextEditor] Add support for headings

2020-04-18 Thread Igor Poboiko
poboiko created this revision. poboiko added a reviewer: Frameworks. Herald added a project: Frameworks. poboiko requested review of this revision. REVISION SUMMARY Add new actions introduced in D28854: [KRichTextWidget] Add support for headings to the

D28966: [KRichTextEdit] Fix scroll jumping around when horizontal rule is added

2020-04-18 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Frameworks, dfaure. Herald added a project: Frameworks. poboiko requested review of this revision. REVISION SUMMARY Due to Qt bug 83605, it's not a good idea to `setTextCursor` while the cursor is inside `beginEditBlock / endEditBlock`

D28964: [KRichTextWidget] Remove ancient workaround and fix regression (commit 1d1eb6f)

2020-04-18 Thread Igor Poboiko
This revision was automatically updated to reflect the committed changes. Closed by commit R310:0494fc4a2838: [KRichTextWidget] Remove ancient workaround and fix regression (commit 1d1eb6f) (authored by poboiko). REPOSITORY R310 KTextWidgets CHANGES SINCE LAST UPDATE

D28964: [KRichTextWidget] Remove ancient workaround and fix regression (commit 1d1eb6f)

2020-04-18 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Frameworks, dfaure, ahmadsamir. Herald added a project: Frameworks. poboiko requested review of this revision. REVISION SUMMARY This patch removes the workaround, which (according to comment) comes from Qt4 times. Although I wasn't even

D28819: [KRichTextEdit] Always treat key press as single modification in undo stack

2020-04-18 Thread Igor Poboiko
poboiko added a comment. In D28819#651007 , @dfaure wrote: > The *ideal* way of proceeding is to submit a Qt bug report with your testcase (after searching for an existing Qt bug report for the same issue), then turn it into a Qt autotest and

D28854: [KRichTextWidget] Add support for headings

2020-04-18 Thread Igor Poboiko
poboiko closed this revision. REPOSITORY R310 KTextWidgets REVISION DETAIL https://phabricator.kde.org/D28854 To: poboiko, #frameworks, mlaurent, ahmadsamir, dfaure Cc: abstractdevelop, kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns

D28819: [KRichTextEdit] Always treat key press as single modification in undo stack

2020-04-16 Thread Igor Poboiko
poboiko added a comment. @dfaure There seem to be a regression caused by this patch: if I reach the end of current view, and then press Enter so it has to scroll down, it scrolls to the very beginning of the document instead. This is the same issue as in ancient bug 195828

D28854: [KRichTextWidget] Add support for headings

2020-04-16 Thread Igor Poboiko
poboiko marked 3 inline comments as done. poboiko added a comment. In D28854#649189 , @abstractdevelop wrote: > Hey, thanks for this @poboiko I used to have to implement this myself, so this will be very useful in my app, O20.Word. ;)

D28854: [KRichTextWidget] Add support for headings

2020-04-15 Thread Igor Poboiko
poboiko updated this revision to Diff 80202. poboiko added a comment. Added a unit-test testing for everything I could come up with (at least 4 "behavior nuances" from the commit message) Address other feedback as well (const'ify, @since version) REPOSITORY R310 KTextWidgets

D28854: [KRichTextWidget] Add support for headings

2020-04-15 Thread Igor Poboiko
poboiko edited the test plan for this revision. REPOSITORY R310 KTextWidgets REVISION DETAIL https://phabricator.kde.org/D28854 To: poboiko, #frameworks, mlaurent, ahmadsamir, dfaure Cc: kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns

D28854: [KRichTextWidget] Add support for headings

2020-04-15 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Frameworks, mlaurent, ahmadsamir, dfaure. Herald added a project: Frameworks. poboiko requested review of this revision. REVISION SUMMARY This patch adds support of different headings (essentially, HTML h1..h6 tags). Those might be

D28819: [KRichTextEdit] Always treat key press as single modification in undo stack

2020-04-14 Thread Igor Poboiko
This revision was automatically updated to reflect the committed changes. Closed by commit R310:1d1eb6feb7f8: [KRichTextEdit] Always treat key press as single modification in undo stack (authored by poboiko). REPOSITORY R310 KTextWidgets CHANGES SINCE LAST UPDATE

D28819: [KRichTextEdit] Always treat key press as single modification in undo stack

2020-04-14 Thread Igor Poboiko
poboiko edited the summary of this revision. REPOSITORY R310 KTextWidgets REVISION DETAIL https://phabricator.kde.org/D28819 To: poboiko, #frameworks, mlaurent Cc: kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns

D28819: [KRichTextEdit] Always treat key press as single modification in undo stack

2020-04-14 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Frameworks, mlaurent. Herald added a project: Frameworks. poboiko requested review of this revision. REVISION SUMMARY If my cursor is on a bullet list, and I press Enter to create a new element, it registers as 5-7 actions in an undo

D23787: [baloo_file_extractor] Improve handling of large plain-text files

2019-11-13 Thread Igor Poboiko
poboiko edited the summary of this revision. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D23787 To: poboiko, #baloo, bruns, ngraham Cc: davidedmundson, broulik, kde-frameworks-devel, #baloo, hurikhan77, lots0logs, LeGast00n, fbampaloukas, GB_2, domson, ashaposhnikov,

D23787: [baloo_file_extractor] Improve handling of large plain-text files

2019-11-13 Thread Igor Poboiko
poboiko added a comment. @bruns: I've missed D16593: [ExtractorCollection] Use only best matching extractor plugin , and had in mind previous situation where we've matched all extractors based on inheritance. In that case, "Secondly" part indeed does not

D23787: [baloo_file_extractor] Improve handling of large plain-text files

2019-11-13 Thread Igor Poboiko
poboiko added a comment. Ping? REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D23787 To: poboiko, #baloo, bruns, ngraham Cc: davidedmundson, broulik, kde-frameworks-devel, #baloo, hurikhan77, lots0logs, LeGast00n, fbampaloukas, GB_2, domson, ashaposhnikov, michaelh,

D23787: [baloo_file_extractor] Improve handling of large plain-text files

2019-10-04 Thread Igor Poboiko
poboiko updated this revision to Diff 67318. poboiko added a comment. Minor optimization: change check order (filesize / extractor property) Also, it should be better check by "Id" instead of "Name" REPOSITORY R293 Baloo CHANGES SINCE LAST UPDATE

D23787: [baloo_file_extractor] Improve handling of large plain-text files

2019-10-04 Thread Igor Poboiko
poboiko marked an inline comment as done. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D23787 To: poboiko, #baloo, bruns, ngraham Cc: davidedmundson, broulik, kde-frameworks-devel, #baloo, lots0logs, LeGast00n, fbampaloukas, GB_2, domson, ashaposhnikov, michaelh,

D23787: [baloo_file_extractor] Improve handling of large plain-text files

2019-10-04 Thread Igor Poboiko
poboiko added inline comments. INLINE COMMENTS > bruns wrote in app.cpp:185 > Users will love us for spammig the logs ... I though users might actually want to know if file was excluded (and the reasoning behind it). I can make its severity less, i.e. `qCDebug`. Or you think it should be

D23787: [baloo_file_extractor] Improve handling of large plain-text files

2019-10-04 Thread Igor Poboiko
poboiko added a comment. In D23787#537891 , @bruns wrote: > Can you please provide an example which: > > - is currently indexed though it should be skipped due to size > - is skipped after this change Sure. Any mimetype inherited

D23787: [baloo_file_extractor] Improve handling of large plain-text files

2019-09-25 Thread Igor Poboiko
poboiko marked an inline comment as done. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D23787 To: poboiko, #baloo, bruns, ngraham Cc: broulik, kde-frameworks-devel, #baloo, lots0logs, LeGast00n, fbampaloukas, GB_2, domson, ashaposhnikov, michaelh, astippich, spoorun,

D23787: [baloo_file_extractor] Improve handling of large plain-text files

2019-09-25 Thread Igor Poboiko
poboiko updated this revision to Diff 66805. poboiko added a comment. Address raised issue: fetch file size only once REPOSITORY R293 Baloo CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D23787?vs=65646=66805 BRANCH improve-large-text-files (branched from master) REVISION

D23787: [baloo_file_extractor] Improve handling of large plain-text files

2019-09-08 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Baloo, bruns, ngraham. Herald added projects: Frameworks, Baloo. poboiko requested review of this revision. REVISION SUMMARY First of all, not all plain text-based mimetypes starts with `text/`: i.e. `application/sql` for SQL dumps

D23200: Fixes a crash in Peruse triggered by baloo

2019-08-18 Thread Igor Poboiko
poboiko added a comment. AFAIK `canonicalFilePath()` cannot return path without slash. The result is either empty (if path does not exist; this is covered by first `if`), or a proper path. The second check is redundant. REPOSITORY R293 Baloo BRANCH fixCrashWithEmptyFolder REVISION

D23008: [baloo_file_extractor] Be more resistant to multiple QSocketNotifier events

2019-08-08 Thread Igor Poboiko
poboiko added a comment. In D23008#508782 , @bruns wrote: > @poboiko - is the problem you describe purely theoretical, or did you actually see it happen? > > Multiple triggers of `slotNewInput` are **not** a problem, the code flow reaches

D23008: [baloo_file_extractor] Be more resistant to multiple QSocketNotifier events

2019-08-08 Thread Igor Poboiko
poboiko added inline comments. INLINE COMMENTS > anthonyfieroni wrote in app.cpp:76-81 > processNextFile should be called till m_ids ends, why it does not happen, > probably that's why @bruns reject your patch Well, if that happens, something went wrong, and we have to do something. As far as

D22942: [kded/baloosearchmodule] Remove useless qDebug messages

2019-08-07 Thread Igor Poboiko
poboiko closed this revision. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D22942 To: poboiko, #baloo, bruns, ngraham Cc: kde-frameworks-devel, LeGast00n, fbampaloukas, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams

D23008: [baloo_file_extractor] Be more resistant to multiple QSocketNotifier events

2019-08-07 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Baloo, bruns, ngraham. Herald added projects: Frameworks, Baloo. poboiko requested review of this revision. REVISION SUMMARY When a new batch arrives at stdin (as notified by QSocketNotifier), extractor creates a new transaction. If

D22942: [kded/baloosearchmodule] Remove useless qDebug messages

2019-08-05 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Baloo, bruns, ngraham. Herald added projects: Frameworks, Baloo. poboiko requested review of this revision. REVISION SUMMARY Those messages are not informative anyway; they are categorized as "kdeinit5"; and they tend to spam logs during

D22557: [IndexCleaner] ignore non-existent entries inside config

2019-07-22 Thread Igor Poboiko
poboiko closed this revision. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D22557 To: poboiko, #baloo, bruns, ngraham Cc: kde-frameworks-devel, LeGast00n, sbergeron, fbampaloukas, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams

D22502: [FileIndexerConfig] skip invalid entries from included/excludedFolders

2019-07-19 Thread Igor Poboiko
poboiko edited the summary of this revision. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D22502 To: poboiko, #baloo, bruns, ngraham Cc: kde-frameworks-devel, LeGast00n, sbergeron, fbampaloukas, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns,

D22557: [IndexCleaner] ignore non-existent entries inside config

2019-07-19 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Baloo, bruns, ngraham. Herald added projects: Frameworks, Baloo. poboiko requested review of this revision. REVISION SUMMARY If a folder was added to include/excludeFolders and then removed, there will be a stale entry in the config, for

D22502: [FileIndexerConfig] skip invalid entries from included/excludedFolders

2019-07-17 Thread Igor Poboiko
poboiko added a comment. In D22502#496812 , @bruns wrote: > The correct fix is to check the returned/calculated ID in the IndexCleaner, otherwise its racy. I think both can be implemented. I had in mind the case when folder was

D22502: [FileIndexerConfig] skip invalid entries from included/excludedFolders

2019-07-17 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Baloo, bruns, ngraham. Herald added projects: Frameworks, Baloo. poboiko requested review of this revision. REVISION SUMMARY It is possible to create an invalid entry inside includedFolders, for example: by creating some folder, adding

D21427: Always skip trailing slashes in FilderedDirIterator

2019-07-14 Thread Igor Poboiko
poboiko added a comment. In D21427#494174 , @bruns wrote: > In D21427#494010 , @poboiko wrote: > > > Ping! > > > > Apparently, it does fix bug 409257, which is pretty serious one (db

D22392: [balooctl/baloo_file_extractor] Consolidate code that performs actual indexing

2019-07-11 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Baloo, bruns, ngraham. Herald added projects: Frameworks, Baloo. poboiko requested review of this revision. REVISION SUMMARY The file contents can be indexed in two ways: either by `baloo_file_extractor` after being added to

D21427: Always skip trailing slashes in FilderedDirIterator

2019-07-11 Thread Igor Poboiko
poboiko added a comment. Ping! Apparently, it does fix bug 409257, which is pretty serious one (db corruption, after all). REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D21427 To: poboiko, #frameworks, #baloo, bruns, ngraham Cc: kde-frameworks-devel, LeGast00n,

D21427: Always skip trailing slashes in FilderedDirIterator

2019-07-11 Thread Igor Poboiko
poboiko edited the summary of this revision. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D21427 To: poboiko, #frameworks, #baloo, bruns, ngraham Cc: kde-frameworks-devel, LeGast00n, fbampaloukas, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns,

D22166: [AdvancedQueryParser] Introduce support for phrase queries

2019-06-30 Thread Igor Poboiko
poboiko added a comment. Note that it somewhat duplicates work done inside `QueryParser`. Which is //almost// not used anywhere - most of the parsing is done by `AdvancedQueryParser`. I feel somewhat weird having two separate parsers, as well as two different entities which store

D22166: [AdvancedQueryParser] Introduce support for phrase queries

2019-06-30 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Baloo, ngraham, bruns. Herald added projects: Frameworks, Baloo. poboiko requested review of this revision. REVISION SUMMARY AdvancedQueryParser's lexxer can actually handle double quotes: for query `a "b c" d`, it returns three tokens

D21427: Always skip trailing slashes in FilderedDirIterator

2019-06-30 Thread Igor Poboiko
poboiko edited the summary of this revision. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D21427 To: poboiko, #frameworks, #baloo, bruns, ngraham Cc: kde-frameworks-devel, LeGast00n, fbampaloukas, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns,

D21427: Always skip trailing slashes in FilderedDirIterator

2019-06-30 Thread Igor Poboiko
poboiko added a reviewer: ngraham. poboiko added a comment. Not entirely sure, but bug 409257 might be caused by that (at least in my case, it looked the same). REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D21427 To:

D21427: Always skip trailing slashes in FilderedDirIterator

2019-06-28 Thread Igor Poboiko
poboiko added a comment. Ping. I've found a way to reproduce a related issue: $ mkdir ~/test $ balooctl config add includeFolders ~/test $ balooctl stop $ balooctl start This prints an error: replace called with invalid arguments, docId: url: "~/test/"

D21509: [UnIndexedFileIteratorTest] Add tests

2019-06-16 Thread Igor Poboiko
poboiko retitled this revision from "[baloo_file] Index renamed folders inside UnindexedFileIndexer" to "[UnIndexedFileIteratorTest] Add tests". poboiko edited the summary of this revision. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D21509 To: poboiko, #frameworks,

D21509: [baloo_file] Index renamed folders inside UnindexedFileIndexer

2019-06-16 Thread Igor Poboiko
poboiko updated this revision to Diff 59951. poboiko added a comment. Rebase on master. Since we now reindex folder always when cTime changes, revert `nameChanged()` routine Cover the case when we feed `UnIndexedFileIterator` with path that ends with `/` REPOSITORY R293 Baloo

D21839: [TermGenerator] Use UTF-8 ByteArray for termList

2019-06-16 Thread Igor Poboiko
poboiko added a comment. > As the limit is somewhat arbitrary, maybe we can just limit the QString? I don't think this has any serious side effects. Yep, that's what I've suggested (if I understood you correctly). I guess, we can put the trimming part right to `termList()`, it will

D21839: [TermGenerator] Use UTF-8 ByteArray for termList

2019-06-16 Thread Igor Poboiko
poboiko added a comment. Actually, there is an issue with that code right now, which I wanted to fix, but forgot. The trimming part `finalArr = finalArr.mid(0, maxTermSize);` actually should be performed on `QString` instead of `QByteArray` - unicode symbols inside term can consist of two

D21673: [FileIndexScheduler] Ensure indexer is not run in suspended state

2019-06-10 Thread Igor Poboiko
poboiko accepted this revision. poboiko added a comment. This revision is now accepted and ready to land. Apart from small nitpick, I think it's fine. INLINE COMMENTS > fileindexscheduler.h:131 > bool m_isGoingIdle; > +bool m_isSuspended = false; > }; I think it's inconvenient to

D21705: [NewFileIndexer] Use correct mimetype for folders, check excludeFolders

2019-06-10 Thread Igor Poboiko
poboiko accepted this revision. poboiko added a comment. This revision is now accepted and ready to land. Can we also cover this case with tests? REPOSITORY R293 Baloo BRANCH cleanup REVISION DETAIL https://phabricator.kde.org/D21705 To: bruns, #baloo, ngraham, astippich, poboiko Cc:

D21671: [FileIndexScheduler] Stop the indexer when quit() is called via DBus

2019-06-10 Thread Igor Poboiko
poboiko accepted this revision. poboiko added a comment. This revision is now accepted and ready to land. That's a nice catch! REPOSITORY R293 Baloo BRANCH scheduler REVISION DETAIL https://phabricator.kde.org/D21671 To: bruns, #baloo, ngraham, astippich, poboiko Cc:

D21697: [BasicIndexingJob] Skip lookup of baloo document type for directories

2019-06-10 Thread Igor Poboiko
poboiko accepted this revision. This revision is now accepted and ready to land. REPOSITORY R293 Baloo BRANCH basicindexingjob REVISION DETAIL https://phabricator.kde.org/D21697 To: bruns, #baloo, ngraham, astippich, poboiko Cc: kde-frameworks-devel, LeGast00n, domson, ashaposhnikov,

D21704: [FirstRunIndexer] Use correct mimetype for folders

2019-06-10 Thread Igor Poboiko
poboiko accepted this revision. This revision is now accepted and ready to land. REPOSITORY R293 Baloo BRANCH cleanup REVISION DETAIL https://phabricator.kde.org/D21704 To: bruns, #baloo, ngraham, astippich, poboiko Cc: kde-frameworks-devel, LeGast00n, domson, ashaposhnikov, michaelh,

D21698: Move invariant IndexingLevel out of the loop

2019-06-10 Thread Igor Poboiko
poboiko accepted this revision. This revision is now accepted and ready to land. REPOSITORY R293 Baloo BRANCH invariants REVISION DETAIL https://phabricator.kde.org/D21698 To: bruns, #baloo, ngraham, astippich, poboiko Cc: kde-frameworks-devel, LeGast00n, domson, ashaposhnikov, michaelh,

D21706: [ModifiedFileIndexer] Use correct mimetype for folders, delay until needed

2019-06-10 Thread Igor Poboiko
poboiko added inline comments. INLINE COMMENTS > modifiedfileindexer.cpp:68 > QFileInfo fileInfo(filePath); > - > -// A folders mtime is updated when a new file is added / removed / > renamed > -// we don't really need to reindex a folder when that happens > -//

D21703: [Transaction] Replace template for functor with std::function

2019-06-10 Thread Igor Poboiko
poboiko added a comment. I thought about it myself. I googled it a bit (i.e. here ) and saw that there might be some quite unwanted runtime overhead because of using `std::function`. It might be negligible (since we're

D21672: [PowerStateMonitor] Be conservative when determining power state

2019-06-10 Thread Igor Poboiko
poboiko accepted this revision. poboiko added a comment. This revision is now accepted and ready to land. Makes sense to me REPOSITORY R293 Baloo BRANCH scheduler REVISION DETAIL https://phabricator.kde.org/D21672 To: bruns, #baloo, ngraham, astippich, poboiko Cc:

D21579: [FilteredDirIterator] Avoid RegExp overhead for exact matches

2019-06-04 Thread Igor Poboiko
poboiko added inline comments. INLINE COMMENTS > regexpcache.cpp:60 > +} > f.replace(QLatin1Char('.'), QStringLiteral("\\.")); > f.replace(QLatin1Char('?'), QLatin1Char('.')); A quick note for future. There is `QRegularExpression::wildcardToRegularExpression()`, which

D21578: [UnindexedFileIterator] Delay mimetype determination until it is needed

2019-06-04 Thread Igor Poboiko
poboiko accepted this revision. This revision is now accepted and ready to land. REPOSITORY R293 Baloo BRANCH submit_unindexed REVISION DETAIL https://phabricator.kde.org/D21578 To: bruns, #baloo, ngraham, astippich, poboiko Cc: kde-frameworks-devel, LeGast00n, domson, ashaposhnikov,

D21577: [UnindexedFileIndexer] Skip filetime checks for new files

2019-06-04 Thread Igor Poboiko
poboiko added a comment. I didn't know `QFileInfo` fetches information on demand (and caches it). That is the reason for this change, right? I think it would be nice to elaborate on that in summary, or maybe as a brief comment in the code. INLINE COMMENTS > unindexedfileiterator.cpp:109

D21576: [UnindexedFileIndexer] Do not try to add nonexistant file to index

2019-06-04 Thread Igor Poboiko
poboiko accepted this revision. This revision is now accepted and ready to land. REPOSITORY R293 Baloo BRANCH submit_unindexed REVISION DETAIL https://phabricator.kde.org/D21576 To: bruns, #baloo, ngraham, astippich, poboiko Cc: kde-frameworks-devel, LeGast00n, domson, ashaposhnikov,

D21509: [baloo_file] Index renamed folders inside UnindexedFileIndexer

2019-06-03 Thread Igor Poboiko
poboiko added inline comments. INLINE COMMENTS > bruns wrote in unindexedfileiteratortest.cpp:100 > Make this plain members, not pointers. > Also, one temporary dir is enough, you can put the db and the test tree > side-by-side. I wanted both DB and directory tree to be recreated from scratch

D21509: [baloo_file] Index renamed folders inside UnindexedFileIndexer

2019-06-03 Thread Igor Poboiko
poboiko updated this revision to Diff 59099. poboiko marked 5 inline comments as done. poboiko added a comment. Use single temp dir Fixed `mTime -> cTime` REPOSITORY R293 Baloo CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D21509?vs=59071=59099 BRANCH unindexed-renamed

D21509: [baloo_file] Index renamed folders inside UnindexedFileIndexer

2019-06-03 Thread Igor Poboiko
poboiko updated this revision to Diff 59071. poboiko added a comment. Fixed comment with directory structure REPOSITORY R293 Baloo CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D21509?vs=59070=59071 BRANCH unindexed-renamed REVISION DETAIL https://phabricator.kde.org/D21509

D21509: [baloo_file] Index renamed folders inside UnindexedFileIndexer

2019-06-03 Thread Igor Poboiko
poboiko added inline comments. INLINE COMMENTS > bruns wrote in unindexedfileiterator.cpp:126 > This whole block belongs into a separate block, executed `if > (m_cTimeChanged)`. Did you mean `m_mTimeChanged`? REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D21509 To:

D21509: [baloo_file] Index renamed folders inside UnindexedFileIndexer

2019-06-03 Thread Igor Poboiko
poboiko updated this revision to Diff 59070. poboiko marked 3 inline comments as done. poboiko added a comment. Moved `m_nameChanged` check inside separate block REPOSITORY R293 Baloo CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D21509?vs=59068=59070 BRANCH unindexed-renamed

D21509: [baloo_file] Index renamed folders inside UnindexedFileIndexer

2019-06-03 Thread Igor Poboiko
poboiko updated this revision to Diff 59068. poboiko added a comment. Split test to three separate test functions, which cover different test cases. Renamed folders to something more meaningful; put all the names as static consts in the very beginning, for further reuse inside test

D21509: [baloo_file] Index renamed folders inside UnindexedFileIndexer

2019-05-31 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Frameworks, Baloo, bruns. Herald added projects: Frameworks, Baloo. Herald added a subscriber: kde-frameworks-devel. poboiko requested review of this revision. REVISION SUMMARY If some folder was renamed while `baloo_file` was not running,

D21440: Start baloo_file later

2019-05-29 Thread Igor Poboiko
poboiko added a comment. In D21440#471144 , @broulik wrote: > The idle tracking is only in the extractor process, not in baloo_file itself. On startup it runs the `UnindexedFileIndexer` and iterates all the folders looking for files to

D21427: Always skip trailing slashes in FilderedDirIterator

2019-05-27 Thread Igor Poboiko
poboiko edited the summary of this revision. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D21427 To: poboiko, #frameworks, #baloo, bruns Cc: kde-frameworks-devel, gennad, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams

D21427: Always skip trailing slashes in FilderedDirIterator

2019-05-27 Thread Igor Poboiko
poboiko edited the summary of this revision. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D21427 To: poboiko, #frameworks, #baloo, bruns Cc: kde-frameworks-devel, gennad, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams

D21427: Always skip trailing slashes in FilderedDirIterator

2019-05-27 Thread Igor Poboiko
poboiko created this revision. poboiko added reviewers: Frameworks, Baloo, bruns. Herald added projects: Frameworks, Baloo. Herald added a subscriber: kde-frameworks-devel. poboiko requested review of this revision. REVISION SUMMARY I've encountered weird regression. Here is the description:

D15983: React to config updates inside indexer

2019-03-20 Thread Igor Poboiko
poboiko closed this revision. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D15983 To: poboiko, #baloo, #frameworks, bruns, ngraham Cc: kde-frameworks-devel, bruns, gennad, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, abrahams

D15983: React to config updates inside indexer

2019-03-19 Thread Igor Poboiko
poboiko added a comment. In D15983#434247 , @ngraham wrote: > Can you rebase this on master again? Sorry for the radio silence. :( Nevermind, I also kinda forgot about this :) Seems like this patch still applies to current master:

  1   2   3   >