Feed Advanced Search

Apr 9 2018

michaelh added a comment to D11828: Simplify orPostingIterator and make it faster.

:-) Thank you for the lesson.

Apr 9 2018, 5:01 PM · Baloo, Frameworks
michaelh added inline comments to D11452: sanitizer: Improve device listing.
Apr 9 2018, 4:53 PM · Baloo, Frameworks
michaelh updated subscribers of D12045: Clean up existing documentation.
Apr 9 2018, 1:53 PM · Baloo, Frameworks
michaelh updated the diff for D12045: Clean up existing documentation.
  • Apply suggested changes
  • Add KFileMetaData link
  • Correct new bug links
  • Change recommendation text
Apr 9 2018, 1:46 PM · Baloo, Frameworks

Apr 8 2018

michaelh updated the diff for D12045: Clean up existing documentation.
  • Apply suggested changes
Apr 8 2018, 4:09 PM · Baloo, Frameworks
michaelh added a comment to D12027: Fix obscured 'Comment' bug.

so comment is an extracted property, and userComment is the thing that you can set in Dolphin?

Apr 8 2018, 3:48 PM · Baloo
michaelh updated the diff for D12044: baloodb: Improve interface.
  • Apply suggested changes
Apr 8 2018, 3:46 PM · Baloo, Frameworks
michaelh committed R293:2fdbfc7e9a6b: Fix another syntax error on windows build (authored by michaelh).
Fix another syntax error on windows build
Apr 8 2018, 3:24 PM
michaelh committed R293:47f6cb32485a: Fix syntax error on windows build (authored by michaelh).
Fix syntax error on windows build
Apr 8 2018, 3:16 PM
michaelh added a comment to D12029: taglibextractor: Fix empty genre bug.

baloo-widgets become unstable in CI because of this. https://build.kde.org/job/Applications%20baloo-widgets%20kf5-qt5%20SUSEQt5.9/34/testReport/

Apr 8 2018, 2:55 PM · Baloo, Frameworks
michaelh committed R293:b94a91a556b5: Use statbuf consistently (authored by michaelh).
Use statbuf consistently
Apr 8 2018, 2:28 PM
michaelh closed D11982: Use statbuf consistently.
Apr 8 2018, 2:28 PM · Baloo, Frameworks
michaelh added a task to D12045: Clean up existing documentation: T7843: Documentation.
Apr 8 2018, 1:39 PM · Baloo, Frameworks
michaelh added a revision to T7843: Documentation: D12045: Clean up existing documentation.
Apr 8 2018, 1:39 PM · Baloo
michaelh requested review of D12045: Clean up existing documentation.
Apr 8 2018, 1:39 PM · Baloo, Frameworks
michaelh added a comment to D12044: baloodb: Improve interface.

This is the last patch, before I let baloodb rest for some time.

Apr 8 2018, 12:36 PM · Baloo, Frameworks
michaelh added a dependency for D12044: baloodb: Improve interface: D11753: baloodb: Add clean command.
Apr 8 2018, 12:13 PM · Baloo, Frameworks
michaelh added a dependent revision for D11753: baloodb: Add clean command: D12044: baloodb: Improve interface.
Apr 8 2018, 12:13 PM · Baloo, Frameworks
michaelh requested review of D12044: baloodb: Improve interface.
Apr 8 2018, 12:13 PM · Baloo, Frameworks
michaelh accepted D12037: Immediately apply termInConstruction when term is complete.

"Immediately add term to stack when it is complete" as commit message?

Apr 8 2018, 10:43 AM · Baloo, Frameworks
michaelh accepted D11888: Handle adjacent special characters correctly.
Apr 8 2018, 10:07 AM · Baloo, Frameworks
michaelh accepted D11888: Handle adjacent special characters correctly.
Apr 8 2018, 10:07 AM · Baloo, Frameworks
michaelh added a comment to D12007: Add test case for parsing of double opening '(('.

Let the rebasing begin... :-) and thanks.

Apr 8 2018, 9:59 AM · Baloo, Frameworks
michaelh accepted D12007: Add test case for parsing of double opening '(('.
Apr 8 2018, 9:58 AM · Baloo, Frameworks
michaelh added a comment to D11828: Simplify orPostingIterator and make it faster.

I'm not very familiar with the concept of iterators (yet). To me it looks like auto i = new OrPostingIterator(iters); i->docId(); will return 0 and i->next() returns a valid docId. After that i->docId(); is also valid.
Is this how iterators work? Naively I would expect i->docId(); to be valid after construction or both i->docId(); and i->next() to be invalid.

Apr 8 2018, 9:22 AM · Baloo, Frameworks
michaelh added a comment to D11828: Simplify orPostingIterator and make it faster.

While reading in IDE realized (*it) resolves to PostingIterator** I got a little dizzy at first, then started to play with this code and came up with this.
In Constructor:

for (PostingIterator* it : m_iterators) {
  if (it == nullptr) {
    m_iterators.erase(&it);
   } else {
     auto docId = it->next();
     if (docId && (docId < m_nextId || m_nextId == 0)) {
       m_nextId = docId;
     }
  }
}

In OrPostingIterator::next()

for (PostingIterator* it : m_iterators) {
    auto docId = it->docId();
    if (docId <= m_docId) {
        docId = it->next();
        if (docId == 0) {
            m_iterators.erase(&it);
            continue;
        }
    }
    m_nextId = m_nextId ? qMin(docId , m_nextId) : docId;
}

I'm not 100% sure if this does exactly the same. But if it does, for readers of my skill level this code will be easier to understand, I guess.
BTW, &it also makes me dizzy :-)

Apr 8 2018, 7:37 AM · Baloo, Frameworks
michaelh added a comment to D12027: Fix obscured 'Comment' bug.

Does this change the string that's displayed in the UI? If so, maybe just "Comments" or "Notes"

Apr 8 2018, 6:25 AM · Baloo

Apr 7 2018

michaelh added inline comments to D12027: Fix obscured 'Comment' bug.
Apr 7 2018, 7:13 PM · Baloo
michaelh added a dependent revision for D12028: taglibextractortest: Add test for files with empty metadata: D12029: taglibextractor: Fix empty genre bug.
Apr 7 2018, 7:08 PM · Baloo, Frameworks
michaelh requested review of D12029: taglibextractor: Fix empty genre bug.
Apr 7 2018, 7:08 PM · Baloo, Frameworks
michaelh requested review of D12028: taglibextractortest: Add test for files with empty metadata.
Apr 7 2018, 7:08 PM · Baloo, Frameworks
michaelh updated the summary of D12027: Fix obscured 'Comment' bug.
Apr 7 2018, 6:52 PM · Baloo
michaelh added inline comments to D12027: Fix obscured 'Comment' bug.
Apr 7 2018, 6:50 PM · Baloo
michaelh requested review of D12027: Fix obscured 'Comment' bug.
Apr 7 2018, 6:49 PM · Baloo
michaelh requested review of D12017: taglibextractortest: Test for multiple values.
Apr 7 2018, 11:18 AM · Baloo, Frameworks
michaelh added a comment to D11242: Add choice of date formats.

After the last build filemetadataitemcounttest failed for no obvious reason (40 elements versus 38 expected). Also since then 'Genre' tag is showing up with an empty value for some audio sample files in Info Panel.
It would be helpful if somebody could confirm this. It might be that something is wrong upstream.
EDIT: Fixed in D12029

Apr 7 2018, 7:29 AM · Baloo
michaelh added inline comments to D12007: Add test case for parsing of double opening '(('.
Apr 7 2018, 6:24 AM · Baloo, Frameworks
michaelh updated the diff for D11982: Use statbuf consistently.
  • Correct typo
Apr 7 2018, 6:22 AM · Baloo, Frameworks
michaelh accepted D12006: Make list of subterms in debug output easier to spot.
Apr 7 2018, 6:14 AM · Baloo, Frameworks
michaelh added a comment to D12005: Fix merging of terms in the AdvancedQueryParser.

lgtm. Please rebase (preferrably after landing D11826), so I can run the test.

 Cherry Pick Failed!
 Exception 
Command failed with error #1!
COMMAND
git cherry-pick 'arcpatch-D11907'
Apr 7 2018, 5:53 AM · Baloo, Frameworks
michaelh added a comment to D11826: Simplify Term operator&& and ||.

Couldn't test. This has to rebased first. It doesn't really matter as I had tested this before. Just land it.
Wrt "Test Plan": Most people just write 'make test' otherwise the commit message will be very long.

Apr 7 2018, 5:48 AM · Baloo, Frameworks
michaelh committed R293:1ea0b94497c3: advancedqueryparsertest: Add more tests (authored by michaelh).
advancedqueryparsertest: Add more tests
Apr 7 2018, 5:30 AM
michaelh closed D11907: advancedqueryparsertest: Add more tests.
Apr 7 2018, 5:30 AM · Baloo, Frameworks
michaelh updated the summary of D12007: Add test case for parsing of double opening '(('.
Apr 7 2018, 5:23 AM · Baloo, Frameworks
michaelh updated the summary of D12007: Add test case for parsing of double opening '(('.
Apr 7 2018, 5:23 AM · Baloo, Frameworks

Apr 6 2018

michaelh updated the diff for D11907: advancedqueryparsertest: Add more tests.
  • Distinguish tests
Apr 6 2018, 8:27 PM · Baloo, Frameworks
michaelh added a comment to T8452: Add support for fuse filesystems to Solid.

@bruns Considering the fast pace baloo currently has, I'd like to have a go at this. I think I'd learn a thing or two while trying. Will you watch, please?

Apr 6 2018, 8:18 PM · Baloo, Frameworks
michaelh added a comment to D11907: advancedqueryparsertest: Add more tests.
$ ctest -R advanced -V 

Apr 6 2018, 8:11 PM · Baloo, Frameworks
michaelh updated the diff for D11907: advancedqueryparsertest: Add more tests.
  • Add 'fallback' test
Apr 6 2018, 8:10 PM · Baloo, Frameworks
michaelh updated the diff for D11982: Use statbuf consistently.
  • Apply suggested changes
Apr 6 2018, 7:28 PM · Baloo, Frameworks
michaelh added inline comments to D11907: advancedqueryparsertest: Add more tests.
Apr 6 2018, 7:15 PM · Baloo, Frameworks
michaelh updated the diff for D11907: advancedqueryparsertest: Add more tests.
  • Apply suggested changes
Apr 6 2018, 7:13 PM · Baloo, Frameworks
michaelh updated the diff for D11242: Add choice of date formats.
  • Internally use QLocale:FormatType
Apr 6 2018, 5:39 PM · Baloo
michaelh added a comment to T7877: Add bash completion for cli tools.

First draft:

Apr 6 2018, 4:59 PM · Baloo
michaelh added a comment to D11242: Add choice of date formats.

What is puzzling me even more: The locale seems to change with the file. ???



Apr 6 2018, 4:30 PM · Baloo
michaelh added a comment to D11242: Add choice of date formats.

Is it normal behaviour that arc diff has to be forced with --update Dxxxxx after a rebase?

Apr 6 2018, 4:18 PM · Baloo
michaelh added a comment to D11242: Add choice of date formats.

In testing this out along with the UI to enable it, I found that it only affected the date shown under "Creation Date" in my PDFs, and not the date shown under "Modified".

Apr 6 2018, 4:13 PM · Baloo
michaelh updated the diff for D11242: Add choice of date formats.
  • filemetadatadatedisplaytest: Use en_US locale
Apr 6 2018, 4:10 PM · Baloo
michaelh requested review of D11982: Use statbuf consistently.
Apr 6 2018, 11:41 AM · Baloo, Frameworks

Apr 5 2018

michaelh added inline comments to D11452: sanitizer: Improve device listing.
Apr 5 2018, 11:35 PM · Baloo, Frameworks
michaelh retitled D11907: advancedqueryparsertest: Add more tests from advancedqueryparsertest: Add more test to advancedqueryparsertest: Add more tests.
Apr 5 2018, 11:22 PM · Baloo, Frameworks
michaelh updated the diff for D11452: sanitizer: Improve device listing.
  • Apply some sugested changes
Apr 5 2018, 11:14 PM · Baloo, Frameworks
michaelh added inline comments to D11452: sanitizer: Improve device listing.
Apr 5 2018, 11:14 PM · Baloo, Frameworks
michaelh added a comment to D11826: Simplify Term operator&& and ||.

Oops, accepted it too quickly, forgot about the failmessages.

Apr 5 2018, 9:41 PM · Baloo, Frameworks
michaelh accepted D11826: Simplify Term operator&& and ||.
Apr 5 2018, 9:38 PM · Baloo, Frameworks
michaelh updated the diff for D11242: Add choice of date formats.
  • Remove obsolete comments
Apr 5 2018, 9:32 PM · Baloo
michaelh updated the diff for D11907: advancedqueryparsertest: Add more tests.
  • Apply suggested changes
Apr 5 2018, 9:25 PM · Baloo, Frameworks
michaelh updated the diff for D11971: Use same keyword separator for read and write.
  • Add semicolons
Apr 5 2018, 8:35 PM · Calligra: 3.0
michaelh added a comment to D11971: Use same keyword separator for read and write.

Hi!
Regard this as a bug report, please. I did not test, not even built it, because calligra is too large for my little machine.
Hope this is useful.

Apr 5 2018, 8:25 PM · Calligra: 3.0
michaelh requested review of D11971: Use same keyword separator for read and write.
Apr 5 2018, 8:23 PM · Calligra: 3.0
michaelh added a comment to D7700: Show list of tags in PlacesView.

Citing myself

Just as an idea: Implement user defineable groups. That way users could drop their most important tags/searches/whatever into it and expand and collapse as they wish.

Apr 5 2018, 2:14 PM · Frameworks, Dolphin
michaelh added a comment to D7700: Show list of tags in PlacesView.

@nicolasfella Beware tags:/ currently is a little broken.

$ kioclient5 ls "tags:/Watched"
Log Horizon?/home/otto/Videos/Log Horizon
Apr 5 2018, 2:14 PM · Frameworks, Dolphin
michaelh added a comment to T8349: Improve Places panel usability and presentation.

In general a agree with you. But what is panels supposed to be? Optimally one should not have to scroll it at all, imho.
Just as an idea: Implement user defineable groups. That way users could drop their most important tags/searches/whatever into it and expand and collapse as they wish.

Apr 5 2018, 1:36 PM · VDG, Dolphin
michaelh added a comment to T8349: Improve Places panel usability and presentation.

Wrt tags in panel

$ kioclient5 ls tags:/ | wc -l
353

How is places supposed to cope? (Ok, I should do some clean up, but ~50-100 tags will probably remain.)

Apr 5 2018, 1:09 PM · VDG, Dolphin
michaelh added a comment to T8349: Improve Places panel usability and presentation.

I got hold of the wrong end of the stick, we're talking about icons in places here. I change my opinion to the opposite. Colored icons there

  1. won't bother me as I rarely use it
  2. would in fact help to know which panel is in front (tree or places).
  3. The "overlay argument" is probably not valid in this context.

Sorry for the noise.

Apr 5 2018, 1:00 PM · VDG, Dolphin
michaelh added inline comments to D11753: baloodb: Add clean command.
Apr 5 2018, 12:40 PM · Baloo, Frameworks
michaelh added inline comments to D11907: advancedqueryparsertest: Add more tests.
Apr 5 2018, 12:23 PM · Baloo, Frameworks
michaelh updated the diff for D11907: advancedqueryparsertest: Add more tests.
  • Remove duplicated data again
Apr 5 2018, 12:21 PM · Baloo, Frameworks
michaelh added a comment to D11907: advancedqueryparsertest: Add more tests.

With this D11826 makes a difference. In terms of comprehension I'm also almost there.
testNestedParentheses still has some value as it tests nested parentheses more extensively than the one already there.

Apr 5 2018, 12:14 PM · Baloo, Frameworks
michaelh added a comment to D11826: Simplify Term operator&& and ||.

Regard this as accepted, but please see D11907 for landing sequence.

Apr 5 2018, 12:10 PM · Baloo, Frameworks
michaelh updated the diff for D11907: advancedqueryparsertest: Add more tests.
  • Add (a AND b) AND (c OR d) can be merged as (a AND b AND (c OR D)
Apr 5 2018, 12:00 PM · Baloo, Frameworks
michaelh updated the diff for D11907: advancedqueryparsertest: Add more tests.
  • Remove duplicated data
Apr 5 2018, 11:27 AM · Baloo, Frameworks
michaelh retitled D11907: advancedqueryparsertest: Add more tests from advancedqueryparsertest: Add optimization test to advancedqueryparsertest: Add more test.
Apr 5 2018, 11:12 AM · Baloo, Frameworks
michaelh updated the diff for D11907: advancedqueryparsertest: Add more tests.
  • Rename testOptimizedLogic
  • Add a different testOptimizedLogic
Apr 5 2018, 11:11 AM · Baloo, Frameworks
michaelh added a comment to D11888: Handle adjacent special characters correctly.

Apart from QLatin1Char and token.isEmpty() we're done, I think.
I asked on IRC about the importance of QLatin1Char the answer was "it depends", QLatin1Char is conservative the code as-is more concise. So, change it or leave it, your decision.

Apr 5 2018, 9:41 AM · Baloo, Frameworks
michaelh updated the diff for D11745: databasesanitizer: Use flags for filtering.
  • Correct typo(?)
Apr 5 2018, 8:35 AM · Baloo, Frameworks
michaelh updated subscribers of D11913: Change property selection to opt-in.

On third thought:
Sooner or later the info sets for tooltips and info panel have to be configured separately. When we see the need for that this will have to change anyway.
I'm thinking of something like the application (dolphin) telling baloo-widgets which properties it wants and how to display them. I think such an approach is more reasonable as baloo-widgets is actually a service provider and as such should make as few decisions as possible. Currently dolphin is baloo-widgets only customer, but I think it could and should be used by other applications too.

The real question is, why Baloo Widgets is not part of Frameworks :P

Apr 5 2018, 8:27 AM · Baloo
michaelh added a comment to D11913: Change property selection to opt-in.

On second thought:
~/.config/baloofileinformationrc only records properties different from the default (=true).
As a consequence for a configured account we would have to

  • Iterate over every possible property of kfilemetadata and
    • check if it set to false,
      • assume true if not.

This somewhat foils our intention of "code clean-up and more explicitness" as it adds computation ( sort of ) to the (purely) declarative approach we see here.
In the end the code as is will be more clear and expressive.

Apr 5 2018, 8:11 AM · Baloo
michaelh added inline comments to D11745: databasesanitizer: Use flags for filtering.
Apr 5 2018, 7:22 AM · Baloo, Frameworks

Apr 4 2018

michaelh added a comment to D11913: Change property selection to opt-in.

I think there's definite value in code clean-up and more explicitness, and I'm willing to work with you to make sure we don't regress anything. But it doesn't seem like a super high priority.

Apr 4 2018, 6:03 PM · Baloo
michaelh accepted D11897: Expose group information to Dolphin's Information panel, tooltips, etc.
Apr 4 2018, 4:10 PM · Baloo
michaelh added a comment to D11913: Change property selection to opt-in.

Let's make sure we don't regress anything in this transition. We're missing "originUrl" a whole bunch of audio-, video-, ePub-, and PDF-related properties that are currently visible by default.

Apr 4 2018, 4:07 PM · Baloo
michaelh added a comment to D11767: Remove Recently Saved This Month and Recently Saved Last Month entries by default.

Let me announce that I'm willing to take all the heat from any potential issues, so feel free to offer formal acceptance, folks! :-)

Can I have this as a signature?

Apr 4 2018, 2:19 PM · Frameworks
michaelh added a comment to T8349: Improve Places panel usability and presentation.

For me @16x16: less color == better icon. I like my DE to visually calm.
Also please consider overlays from e.g. dolphin's git plugin they would become less distinct with a colored base icon.

Apr 4 2018, 12:56 PM · VDG, Dolphin
michaelh retitled D11882: autotests: Use built executable instead of installed from extractortest: Use built executable instead of installed to autotests: Use built executable instead of installed.
Apr 4 2018, 12:29 PM · Baloo
michaelh added a comment to D11242: Add choice of date formats.

Ping

Apr 4 2018, 11:46 AM · Baloo
michaelh added a comment to D11882: autotests: Use built executable instead of installed.

Code looks fine, but I did not test if it actually works. ;)

Apr 4 2018, 11:41 AM · Baloo
michaelh updated the diff for D11882: autotests: Use built executable instead of installed.
  • Move excess space to line 58
Apr 4 2018, 11:38 AM · Baloo
michaelh added a comment to D11767: Remove Recently Saved This Month and Recently Saved Last Month entries by default.

Why is sum(+1) == +3 but noone accepted this? Is there social convention I miss?
(It's scaring me off from simply accepting this.)
+1

Apr 4 2018, 11:31 AM · Frameworks
michaelh added a comment to D11897: Expose group information to Dolphin's Information panel, tooltips, etc.

Forgot that there actually already is a method to ensure that existing users don't get the change: increase the version number of the file. Now the upgrade case works just fine. This is ready for review.

Apr 4 2018, 10:18 AM · Baloo