~sircmpwn/paste.sr.ht#1: 
Add editing & revision history

  • Add a "parent" column to the paste table which links to the last version
  • Walk the history of the paste
  • Add a diff view
Status
REPORTED
Submitter
~sircmpwn
Assigned to
No-one
Submitted
5 years ago
Updated
3 years ago
Labels
No labels applied.

~liamcottam 5 years ago

I've been working on this, and the URLs will change as the SHA changes so either we need stable ID's for each paste or the specific version pasted will be the only version they see, intentional?

The way I've implemented it requires a parent and child column, so we can filter out past revisions of the paste, I don't know if that'll fly with you or not.

I haven't got around to editing yet, I'm just manually fiddling with the database as I try to solidify the history strategy.

Just wondering if I'm going about this the wrong way or you have another idea in mind.

~sircmpwn 5 years ago

I've been working on this, and the URLs will change as the SHA changes so either we need stable ID's for each paste or the specific version pasted will be the only version they see, intentional?

What if visiting the first version redirects you to the latest version unless you have a special query string parameter set - which we can set when browsing the history? ?old=1 or so.

~liamcottam 5 years ago

Sounds good to me! I'll keep working on it and let you know once I have something.

~gotmax23 3 years ago

This is a crucial pastebin feature for me. Are there any plans to implement it?

Thanks for your hard work,

Maxwell

Register here or Log in to comment, or comment via email.