Opened 11 years ago
Last modified 2 years ago
#11469 new enhancement
Add a custom field admin panel
Reported by: | Ryan J Ollos | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 1.7.1 |
Component: | ticket system | Version: | |
Severity: | normal | Keywords: | custom fields |
Cc: | ethan.jucovy@…, olemis+trac@…, leho@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
The th:CustomFieldAdminPlugin seems to be a reasonable start for integrating a custom field admin panel to the Trac core. Here is an outline of the changes:
- Rework the template for minor enhancements (e.g. #11027 and #11056), improved styling and to make the markup more consistent with the other ticket
admin_*
templates. - Add a
CustomField
class totrac.ticket.model
that wraps the configuration. Later on, the storage can be changes from trac.ini to the database without changing the interface. - Modify the
CustomFieldAdminPanel
class to inherit fromTicketAdminPanel
and refactor. - Add functional test cases.
Proposed changes will be posted within the next few days.
Attachments (0)
Change History (28)
comment:1 by , 11 years ago
Cc: | added |
---|
comment:2 by , 11 years ago
Cc: | added |
---|
follow-up: 4 comment:3 by , 10 years ago
follow-ups: 5 23 comment:4 by , 10 years ago
Replying to rjollos:
- th:#7156 - API for defining new types of custom fields?
Previously, I've worked it in https://github.com/jun66j5/trac-customfieldadminplugin/commit/8532c814 by reference to FieldRefactoring. In the branch, it added ICustomFieldTypeProvider
interface which allows to define new types.
The modified customfieldadminplugin is actually used with Trac 0.12 in our company.
follow-up: 6 comment:5 by , 10 years ago
Replying to jomae:
Replying to rjollos:
- th:#7156 - API for defining new types of custom fields?
Previously, I've worked it in https://github.com/jun66j5/trac-customfieldadminplugin/commit/8532c814 by reference to FieldRefactoring. In the branch, it added
ICustomFieldTypeProvider
interface which allows to define new types.
Is this only for extending the admin panel or does this allow implementing the new ticket field types itself?
(When working with the new datetime fields I wondered if this was possible, but there seemed to be too many places in Trac that needed slightly different special support. I also found old discussions of a ITicketFieldTypeProvider
apparently once implemented in Workflow sandbox.)
comment:6 by , 10 years ago
Replying to psuter:
Replying to jomae:
Previously, I've worked it in https://github.com/jun66j5/trac-customfieldadminplugin/commit/8532c814 by reference to FieldRefactoring. In the branch, it added
ICustomFieldTypeProvider
interface which allows to define new types.Is this only for extending the admin panel or does this allow implementing the new ticket field types itself?
The latter. The changes allow to add new field types. Of course, the new types can be selected in custom field admin panel.
(When working with the new datetime fields I wondered if this was possible, but there seemed to be too many places in Trac that needed slightly different special support. I also found old discussions of a
ITicketFieldTypeProvider
apparently once implemented in Workflow sandbox.)
Oh, thanks. I didn't notice that. I'll read the discussion later. But I cannot find the interfaces in log:sandbox/workflow@4456. (The branch has been removed in [4457]).
comment:7 by , 10 years ago
Looks like the branch was deleted once before in [3872], so from log:sandbox/workflow@3871 you can find the interface is added in [3052].
comment:8 by , 10 years ago
Cc: | added |
---|
comment:9 by , 10 years ago
Status: | new → assigned |
---|
comment:10 by , 10 years ago
Milestone: | 1.1.3 → next-dev-1.1.x |
---|---|
Owner: | removed |
Status: | assigned → new |
comment:11 by , 10 years ago
Milestone: | next-dev-1.1.x → 1.1.4 |
---|
comment:12 by , 10 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:15 by , 10 years ago
Milestone: | 1.1.5 → 1.2 |
---|
comment:17 by , 10 years ago
Milestone: | 1.1.6 → next-dev-1.1.x |
---|---|
Owner: | removed |
Status: | assigned → new |
comment:19 by , 9 years ago
Milestone: | next-dev-1.1.x → next-dev-1.3.x |
---|
comment:21 by , 7 years ago
Milestone: | next-dev-1.3.x → 1.5.1 |
---|---|
Owner: | set to |
Status: | new → assigned |
comment:23 by , 5 years ago
Replying to Jun Omae:
Replying to rjollos:
- th:#7156 - API for defining new types of custom fields?
Previously, I've worked it in https://github.com/jun66j5/trac-customfieldadminplugin/commit/8532c814 by reference to FieldRefactoring. In the branch, it added
ICustomFieldTypeProvider
interface which allows to define new types.
Created #13206.
comment:24 by , 5 years ago
Milestone: | 1.5.1 → 1.5.3 |
---|
comment:25 by , 4 years ago
Milestone: | 1.5.3 → 1.7 |
---|
comment:27 by , 4 years ago
Milestone: | 1.7.1 |
---|---|
Owner: | removed |
Status: | assigned → new |
comment:28 by , 4 years ago
Milestone: | → 1.7.1 |
---|
Work in progress in log:rjollos.git:t11469.1, but there is still a lot of work to do. It is based on the latest, r13733 of CustomFieldAdminPlugin.
The following open ticket should probably be addressed in the course of this work:
th:#11826 will be fixed implicitly by inheriting from
TicketAdminPanel
and th:#11855 was reported after fixing on the branch. However, hopefully th:#11855 gets committed ad it should address an issue with CustomFieldAdminPlugin that will be seen after [12512].