[Jifty-commit] r4315 - Jifty-DBI/trunk

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Oct 26 12:50:49 EDT 2007


Author: jesse
Date: Fri Oct 26 12:50:48 2007
New Revision: 4315

Modified:
   Jifty-DBI/trunk/   (props changed)
   Jifty-DBI/trunk/Changes
   Jifty-DBI/trunk/MANIFEST
   Jifty-DBI/trunk/SIGNATURE

Log:
 r68510 at pinglin:  jesse | 2007-10-26 12:47:33 -0400
 * 0.45
 


Modified: Jifty-DBI/trunk/Changes
==============================================================================
--- Jifty-DBI/trunk/Changes	(original)
+++ Jifty-DBI/trunk/Changes	Fri Oct 26 12:50:48 2007
@@ -1,6 +1,100 @@
 Revision history for Perl extension Jifty::DBI.
 
 
+0.45
+
+Add a warning for mandatory+till until we fix it
+
+Fix the mandatory/inactive tests
+
+We don't need to check that a column is mandatory if it's not active
+
+Add failing tests for mandatory columns that aren't active, they shouldn't have the not null constraint
+
+Bump to 0.45 because of the JDBI::Filter::DateTime functionality fixes
+
+Improve the decode doc, which was mostly just a copy of encode
+More needless warnings gone
+
+Better error message when trying to use load_by_cols on a column that doesn't exist
+Two fixes for timezones:
+
+    Coerce input and output to be UTC (or Floating, if JDBI::Filter::Date)
+    I think we were depending on DT:F:Strptime being saner than it is
+
+    Use set_time_zone, not time_zone which is only a getter
+    defined is not what you check to see if there is a hash entry. this will stop bogus extra sql calls that slowed down your app
+
+Allow the specification of functions as 'column' on sql search criteria.
+
+When we fail to load a related model class for a good reason, actually die, rather than burying the error
+
+mysql doesn't handle bare varchar's
+
+TODO a test that needs us to force mysql to be case sensitive
+
+typo fix in docs
+
+We can have 0-valued columns, again
+
+New column attribute: is case_sensitive
+
+Make load_by_cols respect column case sensitivity.
+
+NOTE this is a behaviour change as columns are by default
+case-insensitive, and the call was doing a case sensitive
+search, which is different from Collection searching.
+
+To make Jifty::DBI load_by_cols work in the old behaviour:
+
+Use $rec->load_by_cols( name => { value => 'foobar',
+case_sensitive => 0,
+operator => '=' });
+
+unreadable and immutable are now in attributes.
+
+Refactor Jifty::DBI::Column to split attributes into two groups.
+Actual column-related (in jifty::dbi layer) ones, such as type,
+remains as accesssors.  The rest goes into the attributes hash.
+This allows us to declare higher level meta data without having to
+change Jifty::DBI::Column in the future.
+
+Note that if you are accessing the column object's ->{label} directly
+this will now fail.  Use ->label instead.
+
+*Test updates for case issues 
+
+* Add support for non-lowercase column names
+
+Make sure limit() does not modify arrays passed in to the "value" parameter.
+
+* Allow is_distinct when joining collections, hinting the
+resulting collection is still distinct.
+
+* If table2 is given as a Jifty::DBI::Collection object,
+detect if the join is still distinct.
+
+Added documentation for using @EXPORT with mixins.
+
+Fix the call to the after_set trigger.
+
+Added a new accessor, RECORD_MIXINS, for tracking which mixins have been attached to a model.
+
+Adding basic documentation for before_set and after_set triggers.
+
+Adding before_set and after_set triggers and tests for them.
+
+Moved Jifty::DBI to use Class::Trigger instead of its own fork of Class::Trigger.
+
+Added tests and debugged register_triggers_for_column on record plugins.
+
+Improvements to the trigger documentation for after_create and before_create.
+
+Fix the documentation of the after_create trigger to match the actual behavior (and only that, this time).
+
+Removed register_triggers_late() in favor of register_triggers_for_column(), which is nearly the same thing but with clearer semantics.
+
+Updated documentation to discuss the register_triggers_late() method.
 0.43 Fri Aug 24 00:13:20 EDT 2007
 
 

Modified: Jifty-DBI/trunk/MANIFEST
==============================================================================
--- Jifty-DBI/trunk/MANIFEST	(original)
+++ Jifty-DBI/trunk/MANIFEST	Fri Oct 26 12:50:48 2007
@@ -81,6 +81,7 @@
 t/15types.t
 t/16inheritance.t
 t/17virtualtypes.t
+t/18triggers.t
 t/case_sensitivity.t
 t/metadata.t
 t/pod-coverage.t

Modified: Jifty-DBI/trunk/SIGNATURE
==============================================================================
--- Jifty-DBI/trunk/SIGNATURE	(original)
+++ Jifty-DBI/trunk/SIGNATURE	Fri Oct 26 12:50:48 2007
@@ -14,10 +14,10 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-SHA1 ae74145a1dd46e6f5c118b81ddc1443ac2e76e0f Changes
-SHA1 41a44fa4e9e9eaadaa9ea321c40e386e5f791b07 MANIFEST
-SHA1 ca3bbf7038e9beb3f3db984e86458fda2f999820 META.yml
-SHA1 f4a94d35d6a481cc5bcefce4bd47aa93de702533 Makefile.PL
+SHA1 76adcc71a9ba7c24dd9d7fb9476c69d1c676faf3 Changes
+SHA1 fd34f72e662621963856904103782878cbdea4f0 MANIFEST
+SHA1 0553f41676954ee8ef9449bacbfad66a95aa5b9e META.yml
+SHA1 1e748530883277156c87f2ec864746ee8780d745 Makefile.PL
 SHA1 d0943ab047f543c92405564ab77ba008052544e6 README
 SHA1 82d6ac3f6def48558d09f8b6e3b53ed4194d8c81 ROADMAP
 SHA1 9d304f35438f847863969f6a069598379f5a9db2 debian/README
@@ -40,15 +40,14 @@
 SHA1 5d6189b2cad15cf9932a28faafd55130c8247e83 inc/Module/Install/Metadata.pm
 SHA1 02af973fae2ac3531fa6b704574b2b8cb2a08148 inc/Module/Install/Win32.pm
 SHA1 3a2eab96e91cca8d99938cda7791759ae9d97b3a inc/Module/Install/WriteAll.pm
-SHA1 bb15186ea6704cb313996943a4889c865c4d87fc lib/Jifty/DBI.pm
-SHA1 bf4dc8746897c7c589385237a1f563ed7eec8677 lib/Jifty/DBI/Class/Trigger.pm
-SHA1 6bb7675326e0d85c654732edc0bcdcdef6fa8de5 lib/Jifty/DBI/Collection.pm
+SHA1 36c7b64a3a72edbdf8d95e95e88a965424a4ef68 lib/Jifty/DBI.pm
+SHA1 ca037d1843c3c0fdaa89a4fffcba8fa8a7bcd122 lib/Jifty/DBI/Collection.pm
 SHA1 639ef9c81f03fb084b312a5f9a6f6a3ff63b36b7 lib/Jifty/DBI/Collection/Union.pm
 SHA1 bcba77fd2bacf0475aea1de97f57365c8de92ca6 lib/Jifty/DBI/Collection/Unique.pm
-SHA1 6dd2e880007d6a32927d37be904cc77bbd8a9d49 lib/Jifty/DBI/Column.pm
-SHA1 e2dc55222db3ada56c533f091a1290f082f64ea9 lib/Jifty/DBI/Filter.pm
+SHA1 f50b7b22c8c9518a765a4c81d797e04c1f8bd3fe lib/Jifty/DBI/Column.pm
+SHA1 faf43ec59f8ebd094a1bdfc92eda92053d511e97 lib/Jifty/DBI/Filter.pm
 SHA1 87192bf64a224cbea78770f4209ecae9981f3f5c lib/Jifty/DBI/Filter/Date.pm
-SHA1 6516d32d4de3f2a322e784b9c90eaa02da966772 lib/Jifty/DBI/Filter/DateTime.pm
+SHA1 9ea0d0d08c7c5d2cd8d924804db8e83202692ca0 lib/Jifty/DBI/Filter/DateTime.pm
 SHA1 79649ca3fb9f8aa9d2fdda00d6d7c7c99fe4092f lib/Jifty/DBI/Filter/SaltHash.pm
 SHA1 45ff3c7d2c03136acf98b74c659e2fe8c734d929 lib/Jifty/DBI/Filter/Storable.pm
 SHA1 13837e1f389b4e2e60e8b2395b327604ec7e25b6 lib/Jifty/DBI/Filter/Time.pm
@@ -56,7 +55,7 @@
 SHA1 d05dc7bc82040704770386705fdbdfd2fc326a57 lib/Jifty/DBI/Filter/YAML.pm
 SHA1 9a6fd17e677321904436fefec4d434e17a4685b1 lib/Jifty/DBI/Filter/base64.pm
 SHA1 deb33fa7b35f3542aac3e2d7fb4b5d3070dc3917 lib/Jifty/DBI/Filter/utf8.pm
-SHA1 44936578b91799d7af28e303bb1481e82329ae5b lib/Jifty/DBI/Handle.pm
+SHA1 d4c9bb38be8544e55c971ea58c2a46b67aac196f lib/Jifty/DBI/Handle.pm
 SHA1 9d07c7e4f629bd75d41a1ba88a7890fedaf8a9d3 lib/Jifty/DBI/Handle/Informix.pm
 SHA1 b924dfc77946ec22c292a405d4a26b46b457f775 lib/Jifty/DBI/Handle/ODBC.pm
 SHA1 51c8685ba23c00743cfa2b75e84d03efe54bca75 lib/Jifty/DBI/Handle/Oracle.pm
@@ -66,45 +65,48 @@
 SHA1 e6041a34c3044ed8b9691a5629ecf146fed95257 lib/Jifty/DBI/Handle/mysql.pm
 SHA1 f2cc4fcce79c9a88a023d4e6bd96c2089eef1ced lib/Jifty/DBI/Handle/mysqlPP.pm
 SHA1 0e975f9ec5480ca09025c592c06d484058e637df lib/Jifty/DBI/HasFilters.pm
-SHA1 37fab5049dff600730adf9b0fa6477862ec0437f lib/Jifty/DBI/Record.pm
+SHA1 fcbc3dc23809580c9cb180c9760533d688fa4d11 lib/Jifty/DBI/Record.pm
 SHA1 1c8b4adcd312024a3408a52d3b2ef288c2084603 lib/Jifty/DBI/Record/Cachable.pm
 SHA1 f4ec61cd857cb1cead8c9c5551047dc78734b73a lib/Jifty/DBI/Record/Memcached.pm
-SHA1 85342548af141aa7121e261faaf294c8485df718 lib/Jifty/DBI/Record/Plugin.pm
-SHA1 3b8fdc103486c980fcef5fcd4f92d300f81628dc lib/Jifty/DBI/Schema.pm
-SHA1 adefeefb6f4a8cba5692db7ea7b6cc82122fafd5 lib/Jifty/DBI/SchemaGenerator.pm
+SHA1 2ba30ea8380203b6d8c2905d4dca04e8facb1db6 lib/Jifty/DBI/Record/Plugin.pm
+SHA1 3e0ae61e9367260e7d33d9c7499483ac7b99e7c4 lib/Jifty/DBI/Schema.pm
+SHA1 eacc6f25b73a28b6fb262a01d0de534e6f127f91 lib/Jifty/DBI/SchemaGenerator.pm
 SHA1 32834b7c4cf5a8d131382fccc8db341be8768291 t/00.load.t
 SHA1 9aa7fed2b2409faa4c71d2a45db210721f47403e t/01-version_checks.t
 SHA1 13c9fe3eeec0d000a7c86ea2474e30186cbc37e2 t/01basics.t
-SHA1 c56d96967c85f6f08cc2cc761b9f028cbcbdaf21 t/01records.t
-SHA1 22db545837ee1c622507af949ca484d579d48a1b t/01searches.t
+SHA1 018309dfc89440dc670cccf6138e3d4679465b47 t/01records.t
+SHA1 dfc9861164c5501a5ff1d1bbdc6aacde95e59e2b t/01searches.t
 SHA1 933ebc7f0cfcaf03a2092a7c8271f98b2385f785 t/02-column_constraints.t
-SHA1 55c5728d289b63c87884e0280843724daffe98d1 t/02records_cachable.t
-SHA1 9959b5a88923070448d609f844aed289605a0d5b t/02records_object.t
-SHA1 0b74f2a288dc7210995ab7b4b719044ceed39426 t/02searches_joins.t
+SHA1 95debc7a6e6e84c25ac1541b2f3c2b01d5c4bce6 t/02records_cachable.t
+SHA1 33642a61fd4b5a88436a82c6dd0fef359ba74a2b t/02records_object.t
+SHA1 317868fa44e7224209583d447a24f2625df8dbba t/02searches_joins.t
 SHA1 f1f330dd8b4144e3437aba1455053903306bd0bc t/03rebless.t
-SHA1 472ff16f7c3dc34238d9abd625cbb6e0108956fd t/04memcached.t
+SHA1 617299bfff887d3c15b9a80708cbe7c5c08c75ac t/04memcached.t
 SHA1 a2d00943d47d52d3ad92efe67a52a9b8e1522903 t/06filter.t
 SHA1 8d464426f2c5b0ab5ecc5a0a0331e5f77669c2dc t/06filter_datetime.t
 SHA1 1c0727c29fb58462710e4578a237d557b8453a07 t/06filter_storable.t
 SHA1 f0f6ce9d48f419de6ac6154684f9065f32e30ddd t/06filter_truncate.t
 SHA1 2e9777a47e3a920d063bfbf9d56375c67c5b89c5 t/06filter_utf8.t
 SHA1 bb91f506a251d7b27d2fcd29c482a345318ef04f t/06filter_yaml.t
-SHA1 41fe35dfda0377e969c505e246b2079c93fcac74 t/10schema.t
-SHA1 09029344467af5bd30e6cd4dedbe0da8f0894e04 t/11schema_records.t
-SHA1 c3bbf4e58ae6653c55d1e302bcf5843f7d7239b7 t/12prefetch.t
+SHA1 64c3722f5b34feafc87113257079721c174f3f96 t/10schema.t
+SHA1 0f4655f0a4e558ac31df7b7fdf17c9b110f934da t/11schema_records.t
+SHA1 a32d11971659ee4e31a6acae9e2e9b8c138e3503 t/12prefetch.t
 SHA1 a93e0ee622b2291f797887f663f33c30fc7339f6 t/13collection.t
 SHA1 f057b643275b0370ae18d47b3a1b394791c850d6 t/14handle-pg.t
 SHA1 4f41229caa246bf6ebb369010deb0c1eb8809666 t/15types.t
 SHA1 5958e59e29d29fbf3862b5d3471472cbd82d191e t/16inheritance.t
-SHA1 21b99c5e3c04530d1ab7ed7a8ae2e7b1e8a54937 t/17virtualtypes.t
+SHA1 b4c3ad329c38952bf364c62b7e9f3d98b0c82448 t/17virtualtypes.t
+SHA1 99fb772a9e5ff9cc5a0e02f4563084f5844de152 t/18triggers.t
+SHA1 5b3f8373687f89ccf3faf2dfbda9663137a8c078 t/case_sensitivity.t
+SHA1 1dd9675b0a9a59fdcd300f5d92297f0ecf4f03e4 t/metadata.t
 SHA1 59c44900b1cb957d262f96363ceff21b46e0d598 t/pod-coverage.t
 SHA1 e9c6a5881fc60173fbc8d479c1afd2ce3b43bef1 t/pod.t
-SHA1 a34f27a20cd5894d5fde4f497d77a365251449f5 t/testmodels.pl
+SHA1 62742c946808f35bcc8b2777e975c1ce068a0a71 t/testmodels.pl
 SHA1 34d6329794a7bb2163a1a177e61cf4c399d9ffa6 t/utils.pl
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.3 (Darwin)
 
-iD8DBQFGzluMEi9d9xCOQEYRAqCoAJ0b2p8bj94WcDIFn9cpWCpdF55t8gCgiA9M
-BNwB112JifK/qCSpr+Tiz00=
-=9fiG
+iD8DBQFHIhoXEi9d9xCOQEYRAiBPAKCwf4C1Ko9u1K9NgNYRSH3MXdWp2ACggBB3
+Zwvey8hx3asbUonSwAGNlV8=
+=JG8z
 -----END PGP SIGNATURE-----


More information about the Jifty-commit mailing list