#115: Product-specific settings
-------------------------+-------------------------------------------------
Reporter: olemis | Owner: gjm
Type: | Status: review
enhancement | Milestone:
Priority: major | Version:
Component: | Keywords: multiproduct environment
multiproduct | configuration database bep-0003 db-upgrade
Resolution: | model
-------------------------+-------------------------------------------------
Comment (by jure):
Replying to [comment:7 olemis]:
> [attachment:t115_r1431447_product_envs_bep3_p1.diff Attached patch]
implements a number of enhancements aimed at complying with bep:0003
specification . This includes :
>
> - Type checking in product env initializer
This tests parent against trac.env.Environment. After the hooks are in
place the proper type of the parent environment should be
multiproduct.env.Environment.
> I also spent some time to build [https://bitbucket.org/olemis
/bloodhound-
mq/src/t115_bep3_product_env/t115/t115_r1431447_product_envs_bep3_p1.diff?at=t115_bep3_product_env
another patch] rebasing product environments solution against
`bep_0003_,multiproduct` branch .
>
Great, will try to commit the patch today as tests are passing after
r1432924 (see below).
> {{{
> #!sh
>
> $ python setup.py test -m tests.env
> [...]
> Testing env.get_known_users ... ERROR
> Testing env.get_version ... ERROR
> test_attr_forward_parent (tests.env.ProductEnvApiTestCase) ... ok
> test_typecheck (tests.env.ProductEnvApiTestCase) ... ERROR
>
> [...]
>
> ----------------------------------------------------------------------
> Ran 4 tests in 7.610s
>
> FAILED (errors=3)
>
> }}}
>
> ... so even if solution works it is not quite ready to be committed in
that branch yet .
Tests are now passing after r1432924 ... there was code in Product.insert
that would auto populate product tables (components, milestones, versions,
etc.) upon product insertion. This should actually be performed by a
higher level logic (admin interface for example).
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/115#comment:8>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker