lp:~michihenning/unity-scopes-api/location-data

Created by Michi Henning and last modified
Get this branch:
bzr branch lp:~michihenning/unity-scopes-api/location-data
Only Michi Henning can upload to this branch. If you are Michi Henning please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Michi Henning
Project:
unity-scopes-api
Status:
Merged

Recent revisions

537. By Michi Henning

Re-instated original internal.location setting.

536. By Michi Henning

Forcing commit because Jenkins won't give me rebuild button after a builder died.

535. By Michi Henning

Removed previous internal.location setting.

534. By Michi Henning

Fixes for bug #1393438: "Enable location data" string displays untranslated.
Added internal.location.precision settings metadata with possible values
None, Approximate, and Precise. This allows the shell to treat this setting
as "special" and to supply the correct localized strings for the display name
and the possible display values for the setting. I left the original
internal.location setting in place, to allow for a smooth transition from
the old hack (boolean), to the new hack (enum). Eventually, we need to
back out the hacks altogether because, ideally, the shell should only
pay attention to the LocationDataNeeded metadata attribute.

While fixing this, I found another bug: for setting schemas parsed from
an .ini file, the enumerator choices were in a dictionary entry called
"displayValues" but, when parsing from an equivalent JSON string, the
dictionary entry was called "values". "displayNames" is correct, so that's
what the code now does, regardless of whether the schema is written in
JSON or as a .ini file. The only affected part of the code is the
smartscopes proxy, which is the only part of the system that gets JSON
settings definitions.

533. By Paweł Stołowski

Pass lat/lon to smart scopes server (if enabled in scope settings and available). Fixes: https://bugs.launchpad.net/bugs/1386709.

Approved by PS Jenkins bot, Facundo Batista, Michi Henning.

532. By Michi Henning

Added app_directory() method to ScopeBase. It returns the directory that is shared if an app and a scope are installed from a single click packages. The directory is writable to the app, but only readable to the scope, so the app can pass information to the scope, but not vice versa.

Updated doc accordingly and added new section to the tutorial for this.

Renamed DataDir config item in Runtime.ini to CacheDir, for consistency with the public API naming.

Added tests and tightened a few existing tests.

Added missing directory set methods to TypedScopeFixture. Fixes: https://bugs.launchpad.net/bugs/1384286.

Approved by Pawel Stolowski, PS Jenkins bot.

531. By Marcus Tomlinson

Improved information provided by some exceptions. Client-side invocation logic now reports the operation name when a TimeoutException is thrown. . Fixes: https://bugs.launchpad.net/bugs/1351477.

Approved by Michi Henning, PS Jenkins bot.

530. By Michi Henning

Changed registry to use different exception when adding a watch for file exists, file does not exist, and all other errors. The previous approach of using ResourceException for everything conflated expected errors with surprising errors, so we never found out when inotify_add_watch() return ENOSPC, which seems to be happening on Vivid, as well as (sporadically) for Arm on Jenkins.

Also reduced linger time for twoway invocations to 100 ms (from 500 ms). Previous linger was too long and could cause spurious messages about the zmq context being slow to shut down.

Approved by Pawel Stolowski, PS Jenkins bot.

529. By Michi Henning

Added version attribute to metadata received from remote scopes.

Approved by PS Jenkins bot, Marcus Tomlinson.

528. By Michi Henning

Added Version attribute to Scope.ini and scope metadata.

Approved by Pawel Stolowski, PS Jenkins bot.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:unity-scopes-api
This branch contains Public information 
Everyone can see this information.

Subscribers