Opened 4 years ago

# Allow pastes to be edited

Reported by: Owned by: ejucovy Ryan J Ollos normal TracPastePlugin normal

### Description

It's sometimes useful to be able to edit a paste -- either its title or its contents. The TracPastePlugin doesn't currently provide this feature.

It would probably make sense to have a separate PASTEBIN_EDIT permission for this, and perhaps (inspired in part by trac:ticket:10909#comment:18) an even finer-grained PASTEBIN_EDIT_OWN permission so that a configuration could allow paste authors to edit their own pastes but no others.

### comment:1 follow-up:  2 Changed 4 years ago by ejucovy

On the other hand, making pastes editable might raise broader questions. Should editable pastes have visible version history? If so, perhaps pastes should actually be implemented and stored in the wiki engine, or (as gist.github does) with a web frontend to a version control backend. But then it becomes a little unclear what the TracPastePlugin would actually be providing.

In the long term, this might actually be a use case for trac:wiki:TracDev/Proposals/WikiNamespaces -- if that feature ever gets into core, I could imagine the TracPastePlugin sort of evolving into a wiki namespace/backend configuration with a custom UI on top of it.

### comment:2 in reply to:  1 Changed 4 years ago by Ryan J Ollos

[...] But then it becomes a little unclear what the TracPastePlugin would actually be providing.

Yeah, I guess it would sort of just be a front-end that adds a few more capabilities that you don't have when creating wiki pages, such as the ability to specify a title through a create pastes page. t:TracObjectModelProposal ties in here to I suppose.

For now, I'm fine with adding a PASTEBIN_EDIT permission, though I don't know when I'll have time to work on it.

### comment:3 Changed 3 years ago by roland kohn

i'd like to upvote that one.

currently seems unhandy to have to delete and re-add a paste if something needs to be changed. we wouldn't really need a version history, edit_own permission or anything too complicated

### comment:4 Changed 2 months ago by Ryan J Ollos

Summary: "Edit Paste" → Allow pastes to be edited

### Modify Ticket

Change Properties