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

Version tracking #11

Open
kirillt opened this issue Nov 23, 2022 · 3 comments
Open

Version tracking #11

kirillt opened this issue Nov 23, 2022 · 3 comments
Assignees
Labels

Comments

@kirillt
Copy link
Member

kirillt commented Nov 23, 2022

When we modify a note, its ResourceId changes as well. This is expected since we use content-addressing. In order to provide proper UX, we need to track versions of the same note and present them to user as a single note. We also need UI elements to present older versions to user ("timeback machine"). User should be able to view or remove unwanted versions. Forking older versions into another note is separate feature.

Version storage must be stored in .ark/versions file and should look approximately like this:

3155416 -> 7705444
5839051 -> 8921986
9279849 -> 1558729
3155416 -> 9763586
2128401 -> 19145158

Each entry of the file is a pair of ResourceIds, left id is parent and right id is child.

This feature needs a button to invoke list of versions, or "timeback machine", for any note. Each version must have a button to see its content (read-only mode), to remove it and to fork it (separate issue).

When we remove a version, we must keep the history unbroken.
Suppose, we have entries like this in storage:

3155416 -> 7705444
7705444 -> 8921986

If we want to remove 7705444 version, then we must replace these 2 entries with new entry:

3155416 -> 8921986
@kirillt
Copy link
Member Author

kirillt commented Nov 23, 2022

Here is similar issue in Navigator: ARK-Builders/ARK-Navigator#40

@kirillt
Copy link
Member Author

kirillt commented Dec 5, 2022

Attached bounty: https://gitcoin.co/issue/29633

@kirillt
Copy link
Member Author

kirillt commented Jan 16, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

3 participants