Modify

Opened 14 months ago

Last modified 3 months ago

#10929 new enhancement

"Edit Paste"

Reported by: ejucovy Owned by: rjollos
Priority: normal Component: TracPastePlugin
Severity: normal Keywords:
Cc: Trac Release:

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.

Attachments (0)

Change History (3)

comment:1 follow-up: Changed 14 months 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 13 months ago by rjollos

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 3 months 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

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.