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

Return future revision metadata with all record responses #348

Open
Tracked by #40
pospi opened this issue Aug 5, 2022 · 2 comments
Open
Tracked by #40

Return future revision metadata with all record responses #348

pospi opened this issue Aug 5, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@pospi
Copy link
Member

pospi commented Aug 5, 2022

RecordMeta.latest_revision should be returned in responses so that the latest live version of a record is easily located. In addition RecordMeta.future_revisions_count should be returned so that applications can easily display revision history summaries adjacent to record data.

This might have some implications regarding #196. There may also be shortcuts involved- for example, if get_* API endpoints are called (which accept an EntryHash as the record ID rather than a revision ID and always attempt to return the latest information available), then it is likely that the returned data can be interpreted as RecordMeta.latest_revision since it will automatically be the most recent information that the local Holochain node knows about.

@pospi pospi added the enhancement New feature or request label Aug 5, 2022
@pospi pospi self-assigned this Aug 5, 2022
@pospi
Copy link
Member Author

pospi commented Aug 5, 2022

see #40 (comment)

@pospi
Copy link
Member Author

pospi commented Jul 31, 2023

This also presents a solution space we need to flesh out regarding the handling of deleted records (see #145).

For the case of deleted records it seems sensible for RecordMeta.latestRevision to return the ActionHash of the deletion action. This could then be used to display a deletion tombstone and links back to previously present versions via RecordMeta.previousRevision for the deletion action's ActionHash.

There should also be some consideration given toward zome configuration attributes which determine whether this archival information is easily accessible by zome APIs. These would be merely enforceable as social contracts with mild technical augmentation- there's no guarantee that malicious actors within a network could not observe deleted data or that such data may be subpoenaed in the event of an investigation into a network.

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