Merge lp:~knitzsche/scope-aggregator/fixes-fallback-bug-1599948 into lp:scope-aggregator
Proposed by
Kyle Nitzsche
Status: | Merged |
---|---|
Approved by: | Kyle Nitzsche |
Approved revision: | 170 |
Merge reported by: | Kyle Nitzsche |
Merged at revision: | not available |
Proposed branch: | lp:~knitzsche/scope-aggregator/fixes-fallback-bug-1599948 |
Merge into: | lp:scope-aggregator |
Diff against target: |
109 lines (+21/-14) 3 files modified
CMakeLists.txt (+1/-1) src/query.cpp (+19/-13) src/utils.cpp (+1/-0) |
To merge this branch: | bzr merge lp:~knitzsche/scope-aggregator/fixes-fallback-bug-1599948 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zhang Enwei (community) | Approve | ||
Penk Chen | Pending | ||
Gary.Wang | Pending | ||
Review via email: mp+299481@code.launchpad.net |
Description of the change
Fixes the fallback mechanism through which the aggregator scope
can attempt to find, for example, art in other result fields, for
example mascot, or emblem. There was an exception when a result
did not contain the primary field because in some cases the code
tried to access a field that did not exist.
This problem causes exceptions when News scope aggregates El Pais
(which sometimes lacks expected attributes) and Yahoo, which now
always lacks "art", "mascot" and "emblem" -- see:
https:/
To post a comment you must log in.
FYI: I am adding googletest unit tests to scope-aggregator and I will definitely add tests for fallback mechanism.