41 | | == Possible implementation == |
| 41 | == Possible implementations == |
| 42 | |
| 43 | === Using a project field === |
| 44 | |
| 45 | Within one database, a {{{project}}} scope could be added |
| 46 | to the Trac objects, in addition to their {{{type}}} and {{{id}}}. |
| 47 | |
| 48 | See [http://lists.edgewall.com/archive/trac/2005-May/002932.html this mail] |
| 49 | for some additional explanations. |
| 50 | |
| 51 | === Using Component objects === |
47 | | cboos explained in ticket #586 (although that ticket belongs to the |
48 | | other multiple component support ''family'') how this could |
49 | | be implemented using the experimental relationship facility introduced |
50 | | in the source:branches/cboos-dev/trac-obj-branch branch. |
| 57 | But currently, a ''component'' is nothing more than an enumeration, |
| 58 | and even if one could attach more information to a component |
| 59 | in the {{{trac.ini}}} (as #1135 does), this would not be very flexible. |
| 73 | a follow-up idea would be to have ''User'' Trac objects, |
| 74 | corresponding to each developer in the team. |
| 75 | Those objects could have relations like __owns__, or __works-on__ |
| 76 | to the Component objects. |
| 77 | |
| 78 | The default set of components used for filtering could be those |
| 79 | associated to the user by the way of its user page. |
| 80 | |
| 81 | Of course, at this point, there are a lots of missing pieces in this |
| 82 | picture: |
| 83 | * the relations and the trac objects are only in their infancy in the |
| 84 | [source:branches/cboos-dev/xref-branch xref-branch] |
| 85 | and the [source:branches/cboos-dev/trac-obj-branch trac-obj-branch] |
| 86 | * some additional design is described in the TracObjectModelProposal, |
| 87 | * and a few things are yet to be invented, but you get the idea (I hope!) |
| 88 | |
| 89 | This approach was initially introduced in ticket #586 |
| 90 | (although that ticket belongs to the other multiple component support |
| 91 | ''family''). |