Merge lp:~brian-murray/oops-repository/src-version-buckets into lp:~daisy-pluckers/oops-repository/trunk
Proposed by
Brian Murray
Status: | Merged |
---|---|
Merged at revision: | 64 |
Proposed branch: | lp:~brian-murray/oops-repository/src-version-buckets |
Merge into: | lp:~daisy-pluckers/oops-repository/trunk |
Diff against target: |
56 lines (+24/-2) 3 files modified
oopsrepository/oopses.py (+7/-2) oopsrepository/schema.py (+5/-0) oopsrepository/tests/test_oopses.py (+12/-0) |
To merge this branch: | bzr merge lp:~brian-murray/oops-repository/src-version-buckets |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Evan (community) | Approve | ||
Review via email: mp+155628@code.launchpad.net |
Description of the change
This adds in a ColumnFamily that will track source package versions and buckets that affect them.
To post a comment you must log in.
Bucket keys can be UTF8, so the comparator_type will need to be UTF8Type(). Also, you insert using a composite type for the row key, but use an AsciiType() in the definition for it in schema.
All together, this should be something like: uckets' not in cfs: AsciiType( ), AsciiType()) 1779(mgr. create_ column_ family, keyspace, uckets' , key_validation_ class=composite , type=UTF8_ TYPE)
9 + if 'SourceVersionB
30 + composite = CompositeType(
31 + workaround_
32 + 'SourceVersionB
33 + comparator_
Also, can we have a simple test of this new function in oopsrepository/ test/test_ oopses. py?
Thanks!