| 33 | Seems to be addressed now (`_check_for_resolution` / `_remove_resolution_if_not_closed`) |
| 34 | |
| 35 | |
| 36 | == Integration in Trac |
| 37 | |
| 38 | While not all of the above requirements are yet dealt with in the plugin, the user interface from version 0.7 looks good enough to me to be a worthwhile addition to the core (cboos). |
| 39 | |
| 40 | Further improvements can be done later on that basis. I'd like to see a 0.13 branch of Trac (use our git or hg [SubversionRepository#Mirrors mirrors]), with the batchmod plugin integrated in the trac/ticket subsystem (perhaps directly inside query.py). |
| 41 | |
| 42 | A few ideas: |
| 43 | - looks like there are tabs in the .css and .html files; other "usual" [TracDev/CodingStyle coding style] cleanups are needed in the .py code as well |
| 44 | - seems there are lots of duplication in batchmod.js (from query.js); |
| 45 | - the `ITemplateProvider`, `IRequestFilter`, `ITemplateStreamFilter` methods will no longer be needed |
| 46 | - I don't see a real need for a separate `BatchModifier` class, this can be merged in the `BatchModifyModule` (it's still interesting to keep that individual module, though, so one can choose to disable it completely) |
| 47 | - For the form processing, why not target a new URL (e.g. "/batchmodify"), so that you could have the `BatchModifyModule` be a real `IRequestHandler` (merge the current `BatchModifyModule.pre_process_request` and `BatchModifier.process_request` into a new `BatchModifyModule.process_request`) |
| 48 | - there should be **one** transaction for all the ticket modifications, not one per ticket change! |
| 49 | - For preparing the form data (the bits currently in `BatchModifyModule._generate_form`), this could be done in the `QueryModule` if the `BatchModifyModule` component is enabled |
| 50 | - same thing for the conditional inclusion of the `batchmod.html` template from the `query.html` one |