diff --git a/README.md b/README.md index 82fb474..d68fc5f 100644 --- a/README.md +++ b/README.md @@ -370,7 +370,12 @@ with V1Meta( story = v1.Story.where(Name='Super Cool Feature do over').first() story.Name = 'Super Cool Feature Redux' story.Owners = v1.Member.where(Name='Joe Koberg') - v1.commit() # flushes all pending updates to the server + errors = v1.commit() # flushes all pending updates to the server + if not errors: + print("Successfully committed!") + else: + for e in errors: + raise e ``` The V1Meta object also serves as a context manager which will commit dirty object on exit. @@ -508,6 +513,27 @@ run `python setup.py install`, or just copy the v1pysdk folder into your PYTHONP ## Revision History +2018-07-02 v0.6.2 - Fix a critical memoization bug, error reponse printing, some HTTP/PUT calls, authentication error handling + + A critical memoization bug caused by the decorator being used prevented the same field of more than + one item of the same type from being updated in a single invocation of the Python intepreter; i.e. it's + only possible to update the Title of one Story within a Python script, regardless of how many V1Meta objects + are created. It also prevented the V1Meta objects from being created with separate credentials. + + Bug in how HTTP 400 responses were handled caused an exception to be thrown during handling and raising of + an exception, preventing the actual error response provided with the HTTP 400 from being printed. + + Bug in how NTLM authentication was handled prevented the HTTP 401 authentication error from being raised and + handled so the errors would silently fail without the GET/POST command completing. + + A bug in the creation of the HTTP POST commands in Python3 caused a TypeError exception to be thrown when no + data payload was needed. This prevent Operations with no arguments from being used on V1 objects. + + Unittests were added to ensure some Operations work properly. Connection tests to ensure bad credentials + result in an identifable failed connection were also added. Tests specifically to ensure separation of + credentials between different V1Meta objects within the same tests produce different results, thereby + checking that memoization is working properly on a per-V1Meta object basis were also added. + 2018-06-21 v0.6.1 - Fix a new item creation bug and added unittests for creation 2018-06-21 v0.6 - Rebased to include some historical changes that were lost between 0.4 and 0.5. diff --git a/setup.py b/setup.py index 456c293..26bf8ec 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setup( name = "v1pysdk", - version = "0.6.1post1", + version = "0.6.2", description = "VersionOne API client", author = "Joe Koberg (VersionOne, Inc.)", author_email = "Joe.Koberg@versionone.com",