Opened 6 years ago

Closed 15 months ago

Last modified 15 months ago

#7511 closed enhancement (fixed)

Hack deletion

Reported by: otaku42 Owned by: rjollos
Priority: normal Component: TracHacksPlugin
Severity: normal Keywords:
Cc: rjollos, otaku42, osimons, jun66j5 Trac Release: 0.12


Add something that allows to delete hacks when necessary. This should reverse all changes that had been done when the hack has been registered. See also #5785.

Attachments (0)

Change History (11)

comment:1 Changed 6 years ago by otaku42

  • Owner changed from athomas to otaku42

comment:2 Changed 6 years ago by otaku42

  • Status changed from new to assigned

comment:3 Changed 6 years ago by rjollos

  • Cc rjollos added; anonymous removed

comment:4 follow-up: Changed 4 years ago by hasienda

  • Cc otaku42 osimons added

I'm not entirely sure, if one should be allowed to delete even its own hack.

Deleting the hack branch in the repository is likely possible for the hack author/maintainer even now. Note though, this is more like moving documents to the recycle bin than a true deletion. The reason behind is, that in general a changeset cannot be withdrawn from a repository as well, at least not without altering history. While this leads to seemingly religious discussions, I feel, that it is common sense to not do that at least for public repositories.

Deleting wiki pages is reserved to admin for good reasons. I'd strongly suggest to not go for a more liberal approach, because it works without problems AFAICS.

To summarize, there are strong arguments against making hack deletion as easy as deleting user accounts. I suggest to leave it to the admin group. Thoughts?

comment:5 in reply to: ↑ 4 Changed 4 years ago by rjollos

Replying to hasienda:

I suggest to leave it to the admin group. Thoughts?

Yes, I think it is best to leave it to the admin group. When I read this a while back, I assumed that is what otaku42 had in mind when creating this ticket.

For admins, it would provide a convenient way to clean up after spam hack creations. I've only seen a few of those so far, but I can see an advantage to making it a one-step process: remove the wiki page, component, tickets for component and repository with one command.

comment:6 Changed 3 years ago by rjollos

  • Cc jun66j5 added

The manual steps to remove a hack are:

  • Delete the Component.
  • Close tickets associated with the Component.
  • Remove entries from the svn authz file.
  • Delete the wiki page.
  • Delete the directory from the repository.

It should be fairly straightforward to execute those operations from a Delete Hack button on an admin page.

comment:7 Changed 19 months ago by rjollos

  • Owner changed from otaku42 to rjollos

comment:8 Changed 19 months ago by rjollos

  • Status changed from assigned to new

comment:9 Changed 15 months ago by rjollos

In 14957:

3.0.0dev: Delete hack assets when Component deleted.

When a component is deleted from the Component Admin page (/admin/ticket/components), the following are deleted:

  • Wiki page.
  • Entry in SVN authz file.
  • Repository path.

Refs #7511.

comment:10 Changed 15 months ago by rjollos

  • Resolution set to fixed
  • Status changed from new to closed

Note that I didn't address the issue of deleting tickets associated with a hack. If the tickets are spam they should be deleted as part of the normal spam removal process. If the tickets are not spam, such as the case of removing an obsolete plugin, then I think it's better to just close all the tickets.

comment:11 Changed 15 months ago by rjollos

In 14970:

3.0.0dev: Default to binary on system path.

This revises changeset [14957].

Refs #7511.

Add Comment

Modify Ticket

as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.