#437: While working on product environments , models should be automatically
constrained to using product prefix
--------------------------+---------------
Reporter: olemis | Owner:
Type: enhancement | Status: new
Priority: major | Version:
Resolution: |
--------------------------+---------------
IOW given that `isinstance(env, ProductEnvironment)` and
`env.product.prefix == PREFIX` then `Ticket(env).insert()` will already
have `product=PREFIX` preloaded by default . This should work similar to
`default_*` config options for built-in ticket fields but in a sense of
''Default ticket product value will be inherited from its parent
environment'' . Hence maybe the right place to introduce this sort of
behaviors is to patch `Ticket._init_defaults` in core .
This is also related to the duality in using both product prefix column as
well as custom field for tickets .
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/437>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker