All notable changes to this project will be documented in this file.
get_methods
andget_methods_for_dimension
are added as zome functions.get_methods
takes no parameters, whileget_methods_for_dimension
accepts aGetMethodsForDimensionInput
struct, having onequery: Option<QueryParams>
field. Calling withquery
asnull
returns the same asget_methods
, but providing adimension_type
anddimension_eh
will return all methods created with that input/output dimension entry hash.- All methods are now created with links to a
"methods"
anchor, plus a link from the input/output dimension entry hashes to the method entry hash - and tagged with thedimension_type
("input"/"output").
ResourceDef
fields have been updated:name
is nowresource_name
, and the following three fields have been added to store where the resource entry is stored:installed_app_id
,role_name
andzome_name
.- Because of this change to
ResourceDef
, theresource_defs
field ofAppletConfig
no longer needs to be of typeHappZomeMap<BTreeMap<String, EntryHash>>
and is now justBTreeMap<String, ResourceDef>
. In fact,HappZomeMap
has been removed from the codebase. Additionally, theresource_defs
field inAppletConfigInput
has been reverted toVec<ConfigResourceDef>
. - all
create_
zome functions that create an entry now returnRecord
rather thanEntryHash
. set_assessment_widget_tray_config
andget_assessment_widget_tray_config
zome function for configuring the assessment widget tray defined in the new entry typeAssessmentWidgetBlockConfig
. These are used for binding a widget to a dimension so we know which widget to display when creating an assessment.
Method
andConfigMethod
no longer contains thetarget_resource_def_eh
field.RunMethodInput
now contains aresource_def_eh
field.
get_assessments_for_resources
input typeGetAssessmentsForResourcesInput
now optionally takes a vector of resource hashes. If no resource hashes are provided, all assessments are fetched.get_all_assessments
returnsExternResult<Vec<Assessment>>
instead ofExternResult<Vec<AssessmentWithDimensionAndResource>>
.
AppletConfig
type has been updated. Now theresource_defs
field is of typeHappZomeMap<BTreeMap<String, EntryHash>>
instead ofBTreeMap<String, EntryHash>
so that the resource defs are mapped by the happ role name and zome name. Therole_name
field as removed as this information is now contained in theresource_defs
field.- new type
HappZomeMap<T>
created to represent the dnas (keyed by role name) and their zomes. registerApplet
function takes anAppletConfigInput
as a parameter instead of aCreateAppletConfigInput
.
- context computations now support
Float
when checking against the threshold
dimension_ehs
property ofGetAssessmentsForResourceInput
changed fromDimensionEh[]
toOption<DimensionEh[]>
. If nothing is provided, then all dimensions are used when callingget_assessments_for_resources()
.- Both
Sum
andAverage
method types now supportFloat
.
- whenever an assessment is generated, the agent sends a remote signal to all other peers with a payload containing the newly generated assessment, which is then emitted to the client.
- new zome function
get_all_agents(_: ()) -> ExternResult<Vec<AgentPubKey>>
which returns a list of all other agents in the network.
@neighbourhoods/sensemaker-lite-types
renamed to@neighbourhoods/client
and now includes theSensemakerStore
class.- renamed
get_assessments_for_resource
toget_assessments_for_resources
, which now takes an array of resource hashes as well as dimension hashes and returns all the assessments along each dimension for all resources - add
timestamp
property toAssessment
struct run_method
now returns theAssessment
that was created from the method rather than the entry hashrun_method
can now compute averages forInteger
using theProgram::Average
variant