Ticket #10841 (closed defect: invalid)

Opened 4 months ago

Last modified 3 months ago

Exact position of link Delete Ticket and Delete Changes.

Reported by: lborz@opera21.it Assigned to: rjollos
Priority: normal Component: TicketDeletePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description (Last modified by rjollos)

Hi,

I'm an user of Trac. My Trac version is 0.12.5dev-r11463. Plugin installed are:

  • BlackMagicTicketTweaks 0.11r1
  • privatereports 0.3
  • TicketReminderPlugin 0.1.1
  • TracAccountManager 0.3.2
  • TracTicketChainedFields 0.1

I enabled the component adding in the trac.ini file at the end of section [components] the line: tracopt.ticket.deleter = enabled
To be sure that the modification is active, I gave the command: /etc/init.d/apache2 restart
Maybe I didn't understand very well where the links Delete Ticket and Delete Changes will appear. After reading your help page of plugin, I suppose that when I open the Admin page, that links will appear in the Administration left menu. That's doesn't happen. I'm looking in the wrong place or what?

Thank you in advance for your reply, Luca.

Attachments

DeleteButton.png (15.7 kB) - added by anonymous on 02/08/13 01:10:40.
TracoptTicketDeleterDocumentation.png (21.6 kB) - added by anonymous on 02/08/13 01:16:31.

Change History

02/07/13 00:55:32 changed by rjollos

  • status changed from new to closed.
  • resolution set to invalid.

Hi, The tracopt.ticket.deleter is part of the Trac core and different from this plugin. The plugin here is obsolete for Trac >= 0.12.

The documentation for tracopt.ticket.deleter can be found on the WebAdmin panel, IIRC. There might be a TICKET_DELETE permission you need to grant. You might also want to try as a user with TICKET_ADMIN. I can't recall the details.

02/07/13 10:46:58 changed by anonymous

  • status changed from closed to reopened.
  • resolution deleted.

02/07/13 10:58:45 changed by lborz@opera21.it

I use the default admin user of Trac, that has the permission TICKET_ADMIN. From Trac help I see that the permission TICKET_DELETE is not available.
What I got when I open the Admin section of Trac is this menu:

Administration

  • General
  • Basic settings
  • Logging
  • Permissions
  • Plugins

Accounts

  • Configuration
  • Users

PrivateReports

  • PrivateReports

Ticket System

  • Chained Fields

Ticket system

  • Components
  • Milestones
  • Priorities
  • Resolutions
  • Severities
  • Ticket types
  • Versions

Version control

  • Repositories

I suppose that the link "Ticket delete" will be available in this menu, but there isn't. To be sure, is this menĂ¹ that you mean when you wrote "WebAdmin panel, IIRC"?

Cheers, Luca.

02/07/13 21:59:38 changed by rjollos

  • status changed from reopened to closed.
  • resolution set to invalid.

I'm happy to help you work to resolve the issue, but it is not an issue with the plugin, so let's keep the ticket closed. I'll do some investigation and report back shortly.

02/08/13 01:07:37 changed by rjollos

  • description changed.

02/08/13 01:10:40 changed by anonymous

  • attachment DeleteButton.png added.

02/08/13 01:13:11 changed by rjollos

Unless you have a typo in this ticket description, then the issue is most likely that you need to specifiy tracopt.ticket.deleter.* = enabled. You have claimed to specify tracopt.ticket.deleter = enabled, omitting the trailing .*.

Here is what you should see:

The ticket deleter component that Trac provides does not appear to have an admin panel for deleting tickets. I'm fairly sure the component in Trac was rewritten and has nothing to do with the TicketDeletePlugin.

02/08/13 01:16:31 changed by anonymous

  • attachment TracoptTicketDeleterDocumentation.png added.

02/08/13 01:17:20 changed by rjollos

The following screen capture of the tracopt.ticket.deleter documentation from the Admin > Plugins panel may be helpful:

02/08/13 10:47:02 changed by anonymous

I suggest to you to modify the homepage of the plugin on Trac Hacks site. Especially this line:
Note: The functionality of this plugin has been incorporated into Trac 0.12 t:#3641. There is no need to follow the installation steps below if you are using Trac 0.12. Just edit your trac.ini: [components] tracopt.ticket.deleter = enabled

02/08/13 10:47:41 changed by lborz@opera21.it

Thank for the help any way.

02/11/13 15:54:17 changed by rjollos

I modified the TicketDeletePlugin page to try and be more clear. Please let me know if you think it is an improvement, or if you have any other suggestions for improving it.

(follow-up: ↓ 13 ) 02/14/13 17:42:53 changed by lborz@opera21.it

Sorry to be silly, but I still see in the red square this line: tracopt.ticket.deleter = enabled. In the Installation paragraph it's correct.

02/14/13 17:53:45 changed by rjollos

What is wrong with that? It is instructing you how to enable the new component in Trac.

(in reply to: ↑ 11 ) 02/14/13 18:06:43 changed by rjollos

Replying to lborz@opera21.it:

Sorry to be silly, but I still see in the red square this line: tracopt.ticket.deleter = enabled. In the Installation paragraph it's correct.

It seems like we still have a disconnect here. The red square is telling you to not install TicketDeletePlugin for Trac 0.12 and later. Instead, enable tracopt.ticket.deleter = enabled to obtain equivalent functionality provided in Trac 0.12 and later. The installation section is telling you how to install TicketDeletePlugin for Trac < 0.12.

I've added some more clarifications:

Note: TicketDeletePlugin is deprecated for Trac 0.12 and later, and will no longer be supported except for critical fixes. Trac 0.12 (t:#3641) added a ticket deleter component, so there is no need to install TicketDeletePlugin if you are using Trac 0.12+. To enable functionality equivalent to TicketDeletePlugin in Trac 0.12 and later, just edit your trac.ini:

[components]
tracopt.ticket.deleter = enabled

The tracopt.ticket.deleter component was written by the Trac team and has essentially the same functionality as TicketDeletePlugin, but the implementation has no direct relation to TicketDeletePlugin. One major difference is that there is no WebAdmin component for the Trac ticket deleter as there was for TicketDeletePlugin.


Add/Change #10841 (Exact position of link Delete Ticket and Delete Changes.)




Change Properties
Action