[AppStream Runner] Also search when there were errors during Pool::load
ClosedPublic

Authored by bruns on Aug 13 2018, 8:01 PM.

Details

Summary

The return code of the Pool::load() method is somewhat misleading, as it
returns true only if there were no errors at all. The error flag is set on the first
validation error, but the pool will contain meaningful data nevertheless.

BUG: 397531

Test Plan

Searching for "blend"
Unfixed version:
No results are returned under "Software Center"
Fixed version:
Software Center: "Get Blender", "Get Hugin", ...

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Aug 13 2018, 8:01 PM
Restricted Application added a project: Plasma. · View Herald TranscriptAug 13 2018, 8:01 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
bruns requested review of this revision.Aug 13 2018, 8:01 PM
bruns edited the test plan for this revision. (Show Details)
bruns added a reviewer: Plasma.
apol added a subscriber: apol.Aug 15 2018, 10:07 AM

This is outright weird, please send just one patch with the feature and the logging and without the wrong lines.

apol requested changes to this revision.Aug 15 2018, 10:08 AM

Please squash all changes

This revision now requires changes to proceed.Aug 15 2018, 10:08 AM
bruns added a comment.Aug 15 2018, 1:17 PM
In D14807#309460, @apol wrote:

This is outright weird, please send just one patch with the feature and the logging and without the wrong lines.

Which wrong lines?

Why should I squash the commits? Each one:

  • compiles and works on its own
  • addresses a slightly different issue

Citing from https://community.kde.org/Policies/Commit_Policy#Commit_complete_changesets

OTOH, commits should be preferably "atomic" - not splittable. That means that every bugfix, feature, refactoring or reformatting should go into an own commit. This, too, improves the readability of the history.

bruns requested review of this revision.Aug 16 2018, 1:36 PM
bruns edited the summary of this revision. (Show Details)Aug 16 2018, 6:41 PM
bruns edited the test plan for this revision. (Show Details)
bruns updated this revision to Diff 40160.Aug 21 2018, 4:56 PM
bruns edited the test plan for this revision. (Show Details)

Remove from patch stack, apply first

bruns added a subscriber: ngraham.Aug 21 2018, 8:59 PM
bruns edited the summary of this revision. (Show Details)Aug 23 2018, 7:57 PM
bruns added a comment.Aug 25 2018, 6:52 PM

@apol - any reason you are holding this back?

Anyone at home? Not answering a simple question is rude, at best.

bruns removed a reviewer: apol.Aug 31 2018, 12:52 PM
bruns removed a subscriber: apol.
apol added a comment.Aug 31 2018, 1:07 PM

Ugh, like I said, can you please squash them into a commit?
They are good changes in general.

bruns added a comment.Aug 31 2018, 1:10 PM

As I said, that violates https://community.kde.org/Policies/Commit_Policy#Commit_complete_changesets and I prefer to keep these apart.

This one fixes the behaviour, and has a separate bug report.

The other ones change logging and are quite independent.

apol accepted this revision.Aug 31 2018, 1:10 PM

whatever.

This revision is now accepted and ready to land.Aug 31 2018, 1:10 PM
This revision was automatically updated to reflect the committed changes.