This enhancement adds the _get_holon_by_id_ dance to the Uniform API. This dance retrieves an existing holon from its HolonId.
Current State:
The holons zome already offers a native get_holon function that retrieves an individual holon (but not any related holons).
HolonId is not currently a recognized ValueType, so we cannot use the RequestBody'sParameters variant to supply the holon_id for the request.
Proposal
Dances Zome
[ ] Introduce a new HolonId variant for RequestBody:
[ ] Introduce a new Holon variant for ResponseBody:
pub enum ResponseBody {
None,
Holon(Holon), // <===== NEW
Holons(Vec<Holon>), // will be replaced by SmartCollection once supported
// SmartCollection(SmartCollection),
Index(StagedIndex),
}
[ ] Add a "get_holon_by_id" dance to the Dancer's dispatch table
Holons Adapter
[ ] Implement the DanceFunction for the "get_holon_by_id" dance:
Summary
This enhancement adds the _get_holon_by_id_ dance to the Uniform API. This dance retrieves an existing holon from its
HolonId
.Current State:
The holons zome already offers a native
get_holon
function that retrieves an individual holon (but not any related holons).HolonId
is not currently a recognizedValueType
, so we cannot use the RequestBody'sParameters
variant to supply the holon_id for the request.Proposal
Dances Zome
Holons Adapter
build_get_holon_by_id_dance_request
function for the above danceTesting
GetHolonById
as a variant in theDanceTestStep
enum definition and add its fmt::Display implementationget_holon_by_id_dance_step" function to the implementation for
DancesTestCase`AddRelatedHolons
step to dance_tests.rssimple_create_test_fixture
test case implementation (test both single target, and multi-target usages).Definition of Done:
add_delete_holons_test_steps
to thesimple_undescribed_create_holon_test
, test case passes