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

Offer storage-independent versioning #36

Open
karger opened this issue Feb 11, 2019 · 4 comments
Open

Offer storage-independent versioning #36

karger opened this issue Feb 11, 2019 · 4 comments

Comments

@karger
Copy link
Collaborator

karger commented Feb 11, 2019

As an author I would like to have an mv-versioning attribute on the mv-app element, to specify that mavo should keep and provide access to multiple versions of my data. We get versioning for free on github, though there isn't a particularly elegant way to access the old version.

For access, it might be nice to trigger, via a url parameter or a config of the toolbar, access to a versions list; selecting from the versions list would load the data from that version. Having done so, there should be a way to reset the data to that currently-viewed version.

As for storage, since Mavo's target is small apps, I think it would be fine to just take periodic snapshot backups and store them under separate names in the specified storage. Periodicity, and the total number to keep, could be specified in the attribute, e.g. mv-versions="7 daily" to keep one a day for the past 7 days.

Related but separate, since Mavo is already keeping a history for undo purposes, it would seem theoretically possible to store the entire (again small) history for some period of time, which would allow undo to persist across multiple sessions.

@LeaVerou
Copy link
Member

since Mavo is already keeping a history for undo purposes

It is not. The only thing you can undo is the last deleted item(s). We are tracking Undo functionality in #10 (wow, haven't seen a such a small issue number for a while!).

@joyously
Copy link

This seems like something a plugin would add on to Mavo, not as part of the base.

@LeaVerou
Copy link
Member

Yeah, I agree with @joyously.

@karger
Copy link
Collaborator Author

karger commented Feb 12, 2019

Architecting via a plugin seems fine, so long as the functionality is accessible....

@LeaVerou LeaVerou transferred this issue from mavoweb/mavo Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants