-
Committer:
Kyle Nitzsche
-
Date:
2015-04-02 19:22:59 UTC
-
Revision ID:
kyle.nitzsche@canonical.com-20150402192259-59wzepw6sabzkiw5
I found that when dismissing hints the query inevitably runs twice (but not
really freshly the second time), which interfered with my new approach to only
register categories after the first result is received. Essentially, the query was
receiving the first result twice and was thus attempting to register the same
categories twice, which caused exceptions and bad behavior. To work around this,
I now check whether each category is already registered, and if so, I register it with
a unique timestamped id. Also, the category ids now encode more info, saying
whether the category is has a link to the child scope, whether it is search
or surface, and whether the renderer template is overridden by our declaration
or is obtained from the incoming result.
example category id:
"com.canonical.scopes.fbphotos_fbphotos+link_nooverride_surface+Thu Apr 2 19:18:44 2015"