hook.io icon indicating copy to clipboard operation
hook.io copied to clipboard

Add revision history for hook source code

Open Marak opened this issue 9 years ago • 4 comments

Users should be able to go back in history at least 10 versions to see previous saved versions of the hook's source code and settings.

We are already storing the revision history for all Hook services in CouchDB. We'll need to surface these document revisions in the API and build a simple UX for the /admin page.

We'll also need to be mindful of the CouchDB configuration so that we don't accidentally compact / prune the revision history during database cleanup / compaction. RE: #65

Marak avatar May 07 '16 19:05 Marak

Isn't it provided by gist already? And choosing between gist and hookio-local includes this drawback. From my PoV it would be better to implement more hook source providers - like BitBucket's snippets.

pyhedgehog avatar Jun 01 '16 13:06 pyhedgehog

I was wrong - bitbucket's snippets is unusable in this case - alternative to public they has "private" in contrast to "secret" in gist. "Secret" gist can be accessible by anyone who knows url, but "private" snippet can be accessed only by owner.

pyhedgehog avatar Jun 01 '16 13:06 pyhedgehog

@pyhedgehog - Gist is not the only way to give hook source code.

Hook source can also be stored directly on hook.io site without gist.

Still need revision history for non-gist sources.

Marak avatar Jun 01 '16 14:06 Marak

And choosing between gist and hookio-local includes this drawback.

Gist is not the only way to give hook source code.

pyhedgehog avatar Jun 01 '16 14:06 pyhedgehog