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

Support snapper #1491

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open

Support snapper #1491

wants to merge 40 commits into from

Conversation

sfranzen
Copy link
Contributor

@sfranzen sfranzen commented Oct 18, 2016

Opening this PR early to make it easier to show/review progress on this.

Depends on rockstor/rockstor-jslibs#8 and a future request for Backform.

Fixes #1432.

New Backbone versions no longer automatically set this on the object,
you have to pass it to initialize().
Allows user modifications to persist.
Provides automatic pre/post snapshots for each yum transaction,
just like the official plugin for zypper (SUSE systems).

Related: rockstor#1432
Embeds a Backform form within our standard Bootstrap panel element.
Can be used just like a Backform.Form view, because all constructor
arguments are passed on to the form.
Looks a little cleaner and more appropriate to me.
Newer versions of Backbone no longer implicitly attach these
to the view, so the relevant initialize functions now do so
explicitly.
Allow retrieving individual snapshots as well as full list.
This allows the collections of snapshots to be nested below their
configuration name in the web API.
This is better suited to snapper than the ListCreateAPIView, since
snapper's interface does not return Django models or querysets.
Configured subvolume is already returned by snapper. Return snapshot
userdata as a dict because that's what SetSnapshot accepts.
Necessary to make deletions function appropriately.
@schakrava
Copy link
Member

@sfranzen I am wondering what the status of this is since your last push? Now that 3.8.16 is out, I'd really like to catch up and looks like you put in a lot of work and certainly like to do my part here.

@phillxnet
Copy link
Member

I would like to re-visit this pr once we have our move to openSUSE 'in the can'.
See forum post: Rebasing on to openSUSE?
https://forum.rockstor.com/t/rebasing-on-to-opensuse/5376

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

Successfully merging this pull request may close these issues.

3 participants