Opened 5 years ago
Closed 5 years ago
#13613 closed defect (wontfix)
Breaks trac due to deprecated templating engine
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | BlackMagicTicketTweaksPlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 1.4 |
Description
Super useful plugin (used it for years), but unfortunately no longer compatible since the switch to the new templating engine. You'll see the following message during load:
Trac[chrome] WARNING: Component BlackMagicTicketTweaks relies on deprecated Genshi stream filtering
And it will break the functionality of other plugins. First saw this due to the MasterTicketsPlugin no longer displaying click-through links, and confirmed via log messages.
Attachments (0)
Change History (7)
comment:1 Changed 5 years ago by
comment:2 follow-up: 3 Changed 5 years ago by
Thanks for the quick reply! The plugin you suggested was a good start. In the end I settled on 3 pieces to suit my needs (replacing both BlackMagic and TicketValidator plugins which both don't play nice with v1.4). Listing below in case others find this helpful:
- DynamicFieldsPlugin - for client-side validation / auto-complete of ticket forms on edit
- KeepInterfaceSimplePlugin - for server-side validation / auto-fill on ticket state change
/p-env/templates/site-footer.html
- placing custom jQuery in here to disable editing of fields we set via an algorithm, implemented as a server script that runs on a crond schedule. Like this:
<script> // used to disable editing of fields set by the priority algorithm $('input#field-rank').attr('disabled', 'disabled'); $('select#field-priority').attr('disabled', 'disabled'); </script>
All good now :).
comment:3 follow-up: 4 Changed 5 years ago by
Replying to ralph.phd@…:
Thanks for the quick reply! The plugin you suggested was a good start. In the end I settled on 3 pieces to suit my needs (replacing both BlackMagic and TicketValidator plugins which both don't play nice with v1.4).
Were you using TracTicketValidatorPlugin or TicketValidatorPlugin?
Neither uses ITemplateStreamFilter
, so they should work with Trac 1.4, though there could be other issues that need to be fixed. Do you recall the error?
comment:4 Changed 5 years ago by
Were you using TracTicketValidatorPlugin or TicketValidatorPlugin?
Neither uses
ITemplateStreamFilter
, so they should work with Trac 1.4, though there could be other issues that need to be fixed. Do you recall the error?
TicketValidatorPlugin, looking at my notes you're right there was no error; it just listed as abandoned / unmaintained, so I decided to go with the replacement instead.
comment:7 Changed 5 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
This plugin is deprecated in Trac 1.4 and later. See migration tips on BlackMagicTicketTweaksPlugin page.
This plugin will likely need to be deprecated because it depends on
ITemplateStreamFilter
for nearly all of the features. For an alternative, take a look at DynamicFieldsPlugin, and let us know if there are behaviors that can't be replicated with that plugin.