Opened 5 years ago

Last modified 14 months ago

#10929 new enhancement

Allow pastes to be edited

Reported by: ejucovy Owned by: Ryan J Ollos
Priority: normal Component: TracPastePlugin
Severity: normal Keywords:
Cc: Trac Release:


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.

Attachments (0)

Change History (4)

comment:1 Changed 5 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 5 years ago by Ryan J Ollos

Replying to ejucovy:

[...] 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 4 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 14 months ago by Ryan J Ollos

Summary: "Edit Paste"Allow pastes to be edited

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Ryan J Ollos.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.