Changes between Version 7 and Version 8 of About

Show
Ignore:
Timestamp:
08/07/10 14:50:05 (3 years ago)
Author:
matthijs
Comment:

Add a mass-ticket-delete command

Legend:

Unmodified
Added
Removed
Modified
  • About

    v7 v8  
    2424The version of the plugin used on this trac has four patches applied, those from [http://trac-hacks.org/ticket/7174 TracHacks#7174], [http://trac-hacks.org/ticket/7177 TracHacks#7177], [http://trac-hacks.org/ticket/7185 TracHacks#7185] and [http://trac-hacks.org/ticket/7186 TracHacks#7186]. 
    2525 
     26To delete a series of tickets (for longer spam runs that weren't filtered, for example), you can use the following bash command: 
     27{{{ 
     28for ticket in {871..1023}; do wget --no-cookies --header "Accept-Language: en-us,en;q=0.5" --header "Cookie: trac_form_token=812e1fe19363c2b277750348; trac_auth=c146290e778e919de054c842ccf67535" --post-data="__FORM_TOKEN=812e1fe19363c2b277750348&ticketid=$ticket" http://trac.fonosfera.org/fon-ng/admin/ticket/delete -O /dev/null; done 
     29}}} 
     30 
     31Here, {{{871..1023}}} is the range of tickets to delete (inclusive). You'll have to get the {{{trac_form_token}}} and {{{trac_auth}}} values from your browser cookies after logging in. Note that there's two places in the above command where you should put the form token. 
     32 
    2633=== [http://trac-hacks.org/wiki/CustomFieldAdminPlugin CustomFieldAdminPlugin] === 
    2734This plugin allows editing custom fields through the web admin interface.