Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement validation logic for indexing zomes #396

Open
5 tasks
pospi opened this issue Aug 18, 2023 · 0 comments
Open
5 tasks

Implement validation logic for indexing zomes #396

pospi opened this issue Aug 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@pospi
Copy link
Member

pospi commented Aug 18, 2023

There is some base Holochain stuff that needs validation in addition to the callbacks needing to be implemented for #177 #178 #145 #310. Please add to the list below as these constraints become clearer.

hdk_time_indexing

  • Any links of a LinkTypes::TimeIndex can only be created between EntryHash and AgentPubKey nodes.
  • In addition, AgentPubKey nodes may only occupy the leafmost nodes in a time index tree

hdk_semantic_indexing

Agent zome

  • LinkTypes::MyAgent links are only valid from an AgentPubKey to an EntryHash:
    • identifying the hash of an AgentAddress
    • where the referenced Entry of that AgentAddress is a hc_zome_rea_agent_storage::EntryStorage and EntryStorage.entry.agent_type == "Person"
  • There can only be 1 LinkTypes::MyAgent link per Agent.
@pospi pospi added the enhancement New feature or request label Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant