You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by Apache Bloodhound <bl...@incubator.apache.org> on 2013/01/03 06:04:12 UTC
[Apache Bloodhound] #333: Rely on ModelBase._get_schema to populate
MultiProductSystem.SCHEMA - after #314
#333: Rely on ModelBase._get_schema to populate MultiProductSystem.SCHEMA - after
#314
------------------------+---------------------------
Reporter: olemis | Owner: nobody
Type: enhancement | Status: new
Priority: major | Component: multiproduct
Version: | Resolution:
------------------------+---------------------------
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/333>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker
Re: [Apache Bloodhound] #333: Rely on ModelBase._get_schema to
populate MultiProductSystem.SCHEMA - after #314
Posted by Apache Bloodhound <bl...@incubator.apache.org>.
#333: Rely on ModelBase._get_schema to populate MultiProductSystem.SCHEMA - after
#314
---------------------------+-----------------------
Reporter: olemis | Owner: gjm
Type: enhancement | Status: closed
Priority: major | Milestone: Release 4
Component: multiproduct | Version:
Resolution: fixed | Keywords: database
---------------------------+-----------------------
Comment (by gjm):
Note in particular that I decided to use
{{{cls._meta['auto_inc_fields']}}} for consistency with other field
specifications.
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/333#comment:5>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker
Re: [Apache Bloodhound] #333: Rely on ModelBase._get_schema to
populate MultiProductSystem.SCHEMA - after #314
Posted by Apache Bloodhound <bl...@incubator.apache.org>.
#333: Rely on ModelBase._get_schema to populate MultiProductSystem.SCHEMA - after
#314
---------------------------+-----------------------
Reporter: olemis | Owner: olemis
Type: enhancement | Status: accepted
Priority: major | Milestone: Release 4
Component: multiproduct | Version:
Resolution: | Keywords: database
---------------------------+-----------------------
Description changed by olemis:
Old description:
> In r1424271 there is a way `to output schema to ModelBase in terms of
> trac's Table and Column for consistency of dump generation across trac
> and bh schema` . However this has not been applied to multi-product
> system schema.
New description:
Since r1424271 there is a way
to output schema to ModelBase in terms of trac's Table and Column for
consistency of dump generation across trac and bh schema
However this has not been applied to multi-product system schema.
--
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/333#comment:2>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker
Re: [Apache Bloodhound] #333: Rely on ModelBase._get_schema to
populate MultiProductSystem.SCHEMA - after #314
Posted by Apache Bloodhound <bl...@incubator.apache.org>.
#333: Rely on ModelBase._get_schema to populate MultiProductSystem.SCHEMA - after
#314
---------------------------+-----------------------
Reporter: olemis | Owner: gjm
Type: enhancement | Status: closed
Priority: major | Milestone: Release 4
Component: multiproduct | Version:
Resolution: fixed | Keywords: database
---------------------------+-----------------------
Changes (by gjm):
* status: review => closed
* resolution: => fixed
Comment:
I made a few changes to make it all a bit more compact and add in a
docstring that I forgot but otherwise the ideas are fine.
r1429859 fixes the tests to run from running the file directly
r1429875 adds the ability to specify auto increment fields in schema
generated from model metadata
r1429877 adds the auto increment field specification to the
{{{ProductResourceMap}}} model
r1429886 saves the {{{MultiProductSystem}}} from repeating the
specification of the schema when it is already defined within the models
and extracted with the {{{_get_schema}}} method
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/333#comment:4>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker
Re: [Apache Bloodhound] #333: Rely on ModelBase._get_schema to
populate MultiProductSystem.SCHEMA - after #314
Posted by Apache Bloodhound <bl...@incubator.apache.org>.
#333: Rely on ModelBase._get_schema to populate MultiProductSystem.SCHEMA - after
#314
---------------------------+-----------------------
Reporter: olemis | Owner: olemis
Type: enhancement | Status: accepted
Priority: major | Milestone: Release 4
Component: multiproduct | Version:
Resolution: | Keywords: database
---------------------------+-----------------------
Changes (by olemis):
* keywords: => database
* status: new => accepted
* owner: nobody => olemis
* milestone: => Release 4
Old description:
New description:
In r1424271 there is a way `to output schema to ModelBase in terms of
trac's Table and Column for consistency of dump generation across trac and
bh schema` . However this has not been applied to multi-product system
schema.
--
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/333#comment:1>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker
Re: [Apache Bloodhound] #333: Rely on ModelBase._get_schema to
populate MultiProductSystem.SCHEMA - after #314
Posted by Apache Bloodhound <bl...@incubator.apache.org>.
#333: Rely on ModelBase._get_schema to populate MultiProductSystem.SCHEMA - after
#314
---------------------------+-----------------------
Reporter: olemis | Owner: gjm
Type: enhancement | Status: review
Priority: major | Milestone: Release 4
Component: multiproduct | Version:
Resolution: | Keywords: database
---------------------------+-----------------------
Changes (by olemis):
* status: accepted => review
* owner: olemis => gjm
Comment:
Two patches are needed to implement this feature . The
[https://bitbucket.org/olemis/bloodhound-
mq/raw/t333_mp_gen_schema/t333/t333_r1427886_schema_autoinc.diff first
one] deals with auto incremented (key) columns while generating table
schema from model meta-data . The [https://bitbucket.org/olemis
/bloodhound-
mq/raw/t333_mp_gen_schema/t333/t333_r1427886_mp_gen_schema.diff second
one] reuses `_get_schema` to calculate `SCHEMA` as stated in ticket
summary and description . Patches have to be applied in
[https://bitbucket.org/olemis/bloodhound-mq/raw/t333_mp_gen_schema/series
this order] .
After applying these tests behave as follows :
{{{
#!sh
$ python /path/to/bh/bloodhound_multiproduct/tests/model.py
.........
----------------------------------------------------------------------
Ran 9 tests in 0.138s
OK
}}}
Hence I'm forwarding this ticket for review .
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/333#comment:3>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker