Modify

Opened 12 years ago

Last modified 5 years ago

#10929 new enhancement

Allow pastes to be edited

Reported by: ejucovy Owned by:
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 (5)

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

Summary: "Edit Paste"Allow pastes to be edited

comment:5 Changed 5 years ago by Ryan J Ollos

Owner: Ryan J Ollos deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


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

 
Note: See TracTickets for help on using tickets.