aptly-web-ui icon indicating copy to clipboard operation
aptly-web-ui copied to clipboard

Question Snapshots

Open starflighter opened this issue 8 years ago • 12 comments

Hi, is it possible to take and edit aptly-snapshots in this web-ui? That would be great :-)

Thanks Yvonne

starflighter avatar Aug 09 '17 08:08 starflighter

Nope. This UI is currently not snapshot-aware. It's definitely something I'd like to add though.

sdumetz avatar Aug 09 '17 12:08 sdumetz

That would be awsome! If I can help, just say it. But I can't write Java Script, only HTML and Shell.

starflighter avatar Aug 09 '17 13:08 starflighter

Right now, I'm at the "define how it would work and how it would look" step, so you can definitely help with no JS knowledge.

What would be for you the minimal function set for this feature to be usable and to know how it maps in aptly API calls?

sdumetz avatar Aug 09 '17 14:08 sdumetz

I haven't worked long with aptly yet. I need some time to look at the api and some use-cases for the snapshots. So I hope I can tell you the next 2 weeks more....

starflighter avatar Aug 10 '17 07:08 starflighter

Sorry for the delay. I need more time, a lot of other stuff to do at work :-)... The minimal set is to get, add and delete the snapshots. Is it possible to get a list of all the packages in a repo and you can choose which you like in the new snapshot? That would be a lot of packages... the performance would be probably horrible.

starflighter avatar Aug 29 '17 11:08 starflighter

I implemented getting the snapshots in the latest commits. Deleting them should also be straightforward.

However I'm not yet sure about how snapshot creation should be handled? Maybe a simple button Create snapshot from "reponame" in /ui/snapshots would do for most use cases?

sdumetz avatar Aug 30 '17 08:08 sdumetz

That would be enough I think.

starflighter avatar Sep 01 '17 08:09 starflighter

I tried the new version of the web-ui. It looks good. grafik

But can you change the date of the snapshot to format yyyy-mm-dd-hh-mm-ss? That is more readable.

starflighter avatar Sep 08 '17 09:09 starflighter

Will do. Thanks for testing.

sdumetz avatar Sep 08 '17 10:09 sdumetz

I've added a (crude) snapshot creation tool in v0.2.2 that should work.

It's useless as long as there is no way to restore/delete snapshots but hey, it's a start ;-)

sdumetz avatar Sep 14 '17 14:09 sdumetz

Hi, I tried the version 02.2 today - it looks good... grafik

Just for your information I set it up on a Ubuntu 16.04.3 LTS with nginx/1.10.3 (Ubuntu). No problems here :-) Next step is the action "delete snapshot" ?

starflighter avatar Sep 22 '17 11:09 starflighter

I've an important rework on the publish API that's needed to support this. As soon as it's done (next minor version), I'll be able to handle snapshot removal and publication easily.

sdumetz avatar Sep 22 '17 13:09 sdumetz