Julien Danjou [Thu, 14 Feb 2013 14:20:37 +0000 (15:20 +0100)]
Add NumberInt alias in MIM
Signed-off-by: Julien Danjou <julien@danjou.info>
Julien Danjou [Tue, 5 Feb 2013 23:58:58 +0000 (00:58 +0100)]
Add support for finalize in mapreduce
Signed-off-by: Julien Danjou <julien@danjou.info>
Rick Copeland [Thu, 7 Feb 2013 19:12:51 +0000 (14:12 -0500)]
Allow query params in connection string (mainly for ssl=true)
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 15 Jan 2013 17:27:30 +0000 (12:27 -0500)]
Switch back to dev version
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 15 Jan 2013 17:26:36 +0000 (12:26 -0500)]
Bump version
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Wed, 9 Jan 2013 22:32:26 +0000 (17:32 -0500)]
Bump version number (again)
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Wed, 9 Jan 2013 22:11:11 +0000 (17:11 -0500)]
Fix some problems in config parsing
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Wed, 9 Jan 2013 20:01:01 +0000 (15:01 -0500)]
Bump version number
Signed-off-by: Rick Copeland <rick@arborian.com>
Doug Hellmann [Wed, 9 Jan 2013 19:39:39 +0000 (14:39 -0500)]
Add tox configuration
Set up tox to run tests under Python 2.7. (I'm not sure which
other versions of Python are or need to be supported.)
Change-Id: I4c478e3f30f3741f9cd40c93f356f4b983748da6
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Doug Hellmann [Wed, 9 Jan 2013 19:30:23 +0000 (14:30 -0500)]
Support objects returned from mapreduce
If mapreduce returns an object instead of a scalar type
or Date, convert it to Python recursively and return a
dict instance.
Change-Id: I4f5b95922e137302dde9f7efb310eb3f51628f53
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Rick Copeland [Tue, 8 Jan 2013 19:21:22 +0000 (14:21 -0500)]
Update to be a release candidate
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 8 Jan 2013 19:47:25 +0000 (14:47 -0500)]
Add rewind() method to mim Cursor fixing #10
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 8 Jan 2013 19:40:27 +0000 (14:40 -0500)]
Make __getitem__ clone the cursor, fixing #8
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 8 Jan 2013 19:24:12 +0000 (14:24 -0500)]
Add support for doc.m.find_and_modify, addressing #6, #7
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 8 Jan 2013 17:28:52 +0000 (12:28 -0500)]
Update to mongoclient, remove support for MasterSlaveConnection and ReplicaSetConnection
Signed-off-by: Rick Copeland <rick@arborian.com>
Alessandro Molina [Tue, 18 Dec 2012 00:26:32 +0000 (01:26 +0100)]
Support for fields in ODM queries, makes possible to update enties retrieved with only some fields specified
Alessandro Molina [Mon, 17 Dec 2012 17:30:58 +0000 (18:30 +0100)]
Fix issue with MIM not enforcing _id when using fields option, this lead to the creation of new objects in unexpected cases
Rick Copeland [Wed, 19 Dec 2012 17:23:18 +0000 (12:23 -0500)]
Add support for $elemMatch
Signed-off-by: Rick Copeland <rick@arborian.com>
Bryan Deeney [Mon, 12 Nov 2012 23:05:41 +0000 (18:05 -0500)]
Improve support for BSON booleans in MIM
Handle BSON comparisons involving boolean fields. This change
enables MIM to support sorting by a boolean field.
Dave Brondsema [Tue, 30 Oct 2012 19:07:40 +0000 (15:07 -0400)]
[allura:tickets:#5080] get() uses kwargs, but find() doesn't so protect against accidental find(foo=bar) queries, like we do for remove()
Dave Brondsema [Thu, 11 Oct 2012 14:50:05 +0000 (14:50 +0000)]
better handling of non-bound Sessions
Dave Brondsema [Thu, 11 Oct 2012 13:55:24 +0000 (13:55 +0000)]
raise SkipTest for map/reduce tests when spidermonkey is not installed
Dave Brondsema [Mon, 1 Oct 2012 18:19:12 +0000 (18:19 +0000)]
[allura:tickets:#5024] add cursor hint support to mim
Moving the collection parameter to be first, to match the pymongo Cursor
definition, and _iterator_gen at the end
maurizio [Thu, 27 Sep 2012 15:42:01 +0000 (17:42 +0200)]
fixed mim mr with reduce output
Rick Copeland [Thu, 27 Sep 2012 19:00:14 +0000 (15:00 -0400)]
Add failing test for MIM reduce-into-collection
Signed-off-by: Rick Copeland <rick@arborian.com>
maurizio [Wed, 26 Sep 2012 15:09:32 +0000 (17:09 +0200)]
fixed function topy in mim's mapreduce
- add support for basestring and spidermonkey.Array
- map builtins name conflicts with map argument
Rick Copeland [Thu, 20 Sep 2012 14:46:27 +0000 (10:46 -0400)]
[#4] Setting a FieldProperty to the same value will no longer "dirty" the object
Signed-off-by: Rick Copeland <rick@arborian.com>
Cory Johns [Wed, 12 Sep 2012 19:24:21 +0000 (19:24 +0000)]
Updated Collection.insert to use DuplicateKeyError
Rick Copeland [Fri, 7 Sep 2012 20:43:00 +0000 (16:43 -0400)]
[#3] Add better tests for MIM date support, verify conversion accuracy between Python and JS
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Fri, 7 Sep 2012 20:34:43 +0000 (16:34 -0400)]
[#3] Add date support to MIM
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Fri, 7 Sep 2012 20:01:33 +0000 (16:01 -0400)]
[#2] Add unit test
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Fri, 7 Sep 2012 19:58:45 +0000 (15:58 -0400)]
[#2] Update MIM find_and_modify to return None like pymongo (now) does
Signed-off-by: Rick Copeland <rick@arborian.com>
Doug Hellmann [Thu, 16 Aug 2012 15:23:36 +0000 (11:23 -0400)]
Support multiple operators in nested query documents
Fix the query parser to allow multiple operators like:
{'$gte': high_value, '$lte': low_value}
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Doug Hellmann [Thu, 16 Aug 2012 15:20:09 +0000 (11:20 -0400)]
Add test config parameter to show more detail in test output
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Rick Copeland [Mon, 6 Aug 2012 19:05:49 +0000 (15:05 -0400)]
[#10] Missing lists should act like empty lists in validation, otherwise if_missing does not work
Signed-off-by: Rick Copeland <rick@arborian.com>
Dave Brondsema [Fri, 3 Aug 2012 14:29:53 +0000 (14:29 +0000)]
add paramiko install to release docs
Rick Copeland [Wed, 1 Aug 2012 20:57:11 +0000 (16:57 -0400)]
When a session closes, make sure to orphan any objects that were in the session
Signed-off-by: Rick Copeland <rick@arborian.com>
Dave Brondsema [Wed, 1 Aug 2012 19:06:42 +0000 (19:06 +0000)]
don't attempt to ensure indexes repeatedly when connected to a mongo slave
Dave Brondsema [Wed, 1 Aug 2012 18:59:02 +0000 (18:59 +0000)]
fix mocking in test_ensure_indexes_slave; add another test to help prevent it from regressing
Dave Brondsema [Wed, 1 Aug 2012 16:22:11 +0000 (16:22 +0000)]
Make one connection attempt, even if connect_retry==0 (retry is the # of attempts after the first attempt)
Rick Copeland [Mon, 30 Jul 2012 14:03:47 +0000 (10:03 -0400)]
Patch to make sure included distinct() support actually works with foo.bar.baz
Signed-off-by: Rick Copeland <rick@arborian.com>
Doug Hellmann [Thu, 26 Jul 2012 19:03:07 +0000 (15:03 -0400)]
add distinct() method to cursor
Signed-off-by: Doug Hellmann <doug.hellmann@gmail.com>
Doug Hellmann [Mon, 2 Jul 2012 22:01:01 +0000 (18:01 -0400)]
Add distinct() method to ming.mim.Collection
The new method is implemented as a command on the Database
connection, so that API works, too.
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Doug Hellmann [Mon, 2 Jul 2012 19:15:44 +0000 (15:15 -0400)]
Add map_reduce() method to ming.mim.Collection
The mim API did not support invoking map_reduce() directly
on the Collection instance, as the normal PyMongo API
does. This change adds a method to pass the call on to
the Database with the appropriate arguments.
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Rick Copeland [Mon, 30 Jul 2012 13:58:46 +0000 (09:58 -0400)]
Updating docs
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Wed, 25 Jul 2012 21:49:33 +0000 (17:49 -0400)]
Bump ming release to 0.3.2dev
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Wed, 25 Jul 2012 21:39:42 +0000 (17:39 -0400)]
Fix mim:/// to return the singleton mim.Connection when using create_engine
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Wed, 25 Jul 2012 19:35:01 +0000 (15:35 -0400)]
[allura:tickets:#4603] Get ming tests running with new syntax for create_engine/create_datastore (except flyway)
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Wed, 25 Jul 2012 19:20:08 +0000 (15:20 -0400)]
[allura:tickets:#4603] Rework engine/datastore logic, add engine tests
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Sun, 10 Jun 2012 17:18:20 +0000 (13:18 -0400)]
Fix issue where ODM raised an exception on querying a class mapped to a collection with no fields
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 5 Jun 2012 15:30:49 +0000 (11:30 -0400)]
Change itervalues to values in threadlocal odm session to avoid "dictionary changed size during iteration" error
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Wed, 23 May 2012 17:40:51 +0000 (13:40 -0400)]
Some MIM improvements
Signed-off-by: Rick Copeland <rick@arborian.com>
Alessandro Molina [Fri, 18 May 2012 14:06:35 +0000 (16:06 +0200)]
Support for Geospatial indexes
Rick Copeland [Wed, 9 May 2012 19:09:45 +0000 (15:09 -0400)]
Fix MIM heterogenous type comparisons using strings
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Sun, 29 Apr 2012 19:05:30 +0000 (15:05 -0400)]
Allow true bson comparison in queries as well as sorts
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Sun, 29 Apr 2012 18:58:21 +0000 (14:58 -0400)]
Allow comparison between types in according to the BSON spec in MIM
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Sun, 29 Apr 2012 18:32:11 +0000 (14:32 -0400)]
Add upsert support to MIM updates
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Sat, 28 Apr 2012 23:11:03 +0000 (19:11 -0400)]
Minor config refactor to make ming configuration more flexible
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Fri, 23 Mar 2012 15:52:06 +0000 (11:52 -0400)]
Add ability to forbid None as a valid value for scalars
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 20 Mar 2012 14:47:07 +0000 (10:47 -0400)]
Update ODM docs to reflect correct MapperExtension api
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 20 Mar 2012 14:45:13 +0000 (10:45 -0400)]
Add test for base class of mapperextension
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Thu, 15 Mar 2012 21:40:55 +0000 (14:40 -0700)]
Fix broken test
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Wed, 14 Mar 2012 23:34:20 +0000 (16:34 -0700)]
Add ability to decorate ODM objects as they are created, compute md5 of gridfs objects
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 13 Mar 2012 23:10:34 +0000 (16:10 -0700)]
Pass along kwargs in _validate_core
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 13 Mar 2012 23:07:47 +0000 (16:07 -0700)]
Remove dead code references to abandoned lazy validation idea
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 13 Mar 2012 21:45:58 +0000 (14:45 -0700)]
Make missing != None in validation
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 13 Mar 2012 21:23:50 +0000 (14:23 -0700)]
Fix signature of mapper extensions
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 13 Mar 2012 19:36:06 +0000 (12:36 -0700)]
Add test for limited array validation
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 13 Mar 2012 19:13:48 +0000 (12:13 -0700)]
Add validate_ranges option to array validators
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 13 Mar 2012 19:00:52 +0000 (12:00 -0700)]
Refactor some constants into ming.base
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 13 Mar 2012 18:24:44 +0000 (11:24 -0700)]
Slight speedup of _validate_core in documents
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 13 Mar 2012 18:06:00 +0000 (11:06 -0700)]
More tweaks to validation, speed up ParticularScalar validator
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 13 Mar 2012 17:57:37 +0000 (10:57 -0700)]
Break out fast path for if_missing
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 13 Mar 2012 00:41:56 +0000 (17:41 -0700)]
Make if_missing not a LazyProperty
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 13 Mar 2012 00:39:47 +0000 (17:39 -0700)]
Eliminate unneccessary calls to deepcopy
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 13 Mar 2012 00:25:21 +0000 (17:25 -0700)]
Factored field_items out
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Mon, 12 Mar 2012 23:59:04 +0000 (16:59 -0700)]
More slight optimizations
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Mon, 12 Mar 2012 23:56:56 +0000 (16:56 -0700)]
More slight optimizations
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Mon, 12 Mar 2012 23:48:05 +0000 (16:48 -0700)]
Trying to speed up validation
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Mon, 12 Mar 2012 23:43:54 +0000 (16:43 -0700)]
Trying to speed up validation
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Mon, 12 Mar 2012 04:27:28 +0000 (21:27 -0700)]
Add lazy option to the Document validator
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Mon, 12 Mar 2012 04:24:07 +0000 (21:24 -0700)]
Factor polymorphism out of the base document class
Signed-off-by: Rick Copeland <rick@arborian.com>
Dave Brondsema [Thu, 15 Mar 2012 18:49:51 +0000 (18:49 +0000)]
Newer mock required
Rick Copeland [Mon, 12 Mar 2012 03:41:05 +0000 (20:41 -0700)]
Update .m.get() to drop extra fields from the DB automatically
Signed-off-by: Rick Copeland <rick@arborian.com>
Dave Brondsema [Sun, 11 Mar 2012 18:33:02 +0000 (11:33 -0700)]
declare test dependencies
Rick Copeland [Wed, 7 Mar 2012 18:52:00 +0000 (10:52 -0800)]
Update polymorphic collection names to reflect their identity
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 6 Mar 2012 19:37:37 +0000 (14:37 -0500)]
Add clear_all method for mappers
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 6 Mar 2012 18:47:57 +0000 (13:47 -0500)]
Break hardcoded linkage between mappers and orm sessions
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 6 Mar 2012 17:37:44 +0000 (12:37 -0500)]
Bump version # in docs
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 6 Mar 2012 17:29:13 +0000 (12:29 -0500)]
Update news
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 6 Mar 2012 17:25:58 +0000 (12:25 -0500)]
Globally rename ORM==>ODM with some backward compatibility
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 6 Mar 2012 03:51:24 +0000 (22:51 -0500)]
Update Ming gridfs support to ensure we keep all required gridfs fields
Signed-off-by: Rick Copeland <rick@arborian.com>
Tim Van Steenburgh [Mon, 5 Mar 2012 15:59:29 +0000 (15:59 +0000)]
Fix DateTime microsecond truncation.
Signed-off-by: Tim Van Steenburgh <tvansteenburgh@geek.net>
Dave Brondsema [Sat, 3 Mar 2012 16:04:12 +0000 (11:04 -0500)]
okay to use mock 0.8 now that a final release is out
Tim Van Steenburgh [Fri, 2 Mar 2012 16:45:36 +0000 (16:45 +0000)]
Changed DateTime type to truncate at milliseconds instead of seconds.
Signed-off-by: Tim Van Steenburgh <tvansteenburgh@geek.net>
Rick Copeland [Wed, 15 Feb 2012 01:07:04 +0000 (19:07 -0600)]
Add .collection property to class manager
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Tue, 14 Feb 2012 17:30:00 +0000 (12:30 -0500)]
Fix contextual proxies so you can use more than one of them
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Mon, 13 Feb 2012 20:00:40 +0000 (15:00 -0500)]
Add collection.drop() method
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Mon, 13 Feb 2012 16:15:38 +0000 (11:15 -0500)]
Fix problem with ORM findandmodify
Signed-off-by: Rick Copeland <rick@arborian.com>
Rick Copeland [Fri, 10 Feb 2012 16:01:59 +0000 (11:01 -0500)]
[allura:tickets:#3712] Move more logic to ObjectState, memoize instrumentation
Signed-off-by: Rick Copeland <rcopeland@geek.net>