Add support for ResultsTtlType in ScopeMetadata
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity-js-scopes |
Fix Released
|
Medium
|
Daniel Lim |
Bug Description
Description
-----------
The unity js scopes package have a minimal set of tests associated with a few of the features exposed in the JS scopes api. Those tests need to be expanded.
This bug targets the binding to the ScopeMetadata class that lacks an explicit support for the ResultsTtlType type enumeration found in C++.
Technical context
-----------------
Scopes are a fundamental piece of the UbuntuTouch user experience. Each scope offers user driven way to interact with one of more sources of either local or remote data displayed in a uniform fashion from the Ubuntu Dash.
https:/
The Unity Scopes API allows developers to create scopes in C++.
https:/
Unity JS scopes is a package that enables the creation of Javascript Scopes by offering bindings of the Unity Scopes API in Javascript.
In order to get started with the unity-js-scopes package, you can have a look at the README file found at the top of the package's sources:
http://
In the context of the API, the ResultsTtlType enumeration type can be found defined as part of the ScopeMetadata class.
This type should be made available to the API users along with the associated ScopeMetadata function using it:
http://
The way to make it available should be similar to other enumerations:
http://
Deliverable
-----------
Add support for the ResultsTtlType enumeration and update the simple.js example to call the results_ttl_type function.
Related branches
- Alexandre Abreu (community): Approve
-
Diff: 55 lines (+11/-2)3 files modifiedexamples/simple/simple.js (+1/-1)
src/bindings/index.js (+8/-0)
src/bindings/src/addon.cc (+2/-1)
tags: | added: googlecodein |
description: | updated |
description: | updated |
Changed in unity-js-scopes: | |
status: | Fix Committed → Fix Released |
Thanks for the fix Daniel!