From 5bb8f8b820b3047e34811825d675f45d0aaa2bf6 Mon Sep 17 00:00:00 2001 From: Mike Alexander Date: Thu, 28 Jun 2018 18:59:46 -0700 Subject: [PATCH 1/3] Update README for new release, fix typo, update setup.py for new release --- README.md | 17 ++++++++++++++++- setup.py | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 82fb474..54c3949 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,16 @@ run `python setup.py install`, or just copy the v1pysdk folder into your PYTHONP ## Revision History +2018-06-28 v0.6.2 - Fix a critical memoization bug. Fix a bug in error reponse printing. + + A critical memoization bug caused by the python decorator being used prevents 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. + + 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. + 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", From 7c48de932e51d2a7828e1a01e6d5e3964385ca27 Mon Sep 17 00:00:00 2001 From: Mike Alexander Date: Mon, 2 Jul 2018 10:56:07 -0700 Subject: [PATCH 2/3] Updated README with release notes --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 54c3949..c1f22db 100644 --- a/README.md +++ b/README.md @@ -513,7 +513,7 @@ run `python setup.py install`, or just copy the v1pysdk folder into your PYTHONP ## Revision History -2018-06-28 v0.6.2 - Fix a critical memoization bug. Fix a bug in error reponse printing. +2018-06-28 v0.6.2 - Fix a critical memoization bug, error reponse printing, some HTTP/PUT calls. A critical memoization bug caused by the python decorator being used prevents 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 @@ -523,6 +523,12 @@ run `python setup.py install`, or just copy the v1pysdk folder into your PYTHONP 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. + A bug in the creation of the HTTP/PUT 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, and this implicitly tests that memoization is + working as well. + 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. From c0da266ff5018767bc0a84a89aee2a984855a977 Mon Sep 17 00:00:00 2001 From: Mike Alexander Date: Mon, 2 Jul 2018 15:36:52 -0700 Subject: [PATCH 3/3] Updated release notes --- README.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c1f22db..d68fc5f 100644 --- a/README.md +++ b/README.md @@ -513,21 +513,26 @@ run `python setup.py install`, or just copy the v1pysdk folder into your PYTHONP ## Revision History -2018-06-28 v0.6.2 - Fix a critical memoization bug, error reponse printing, some HTTP/PUT calls. +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 python decorator being used prevents the same field of more than + 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. + 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. - A bug in the creation of the HTTP/PUT commands in Python3 caused a TypeError exception to be thrown when no + 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, and this implicitly tests that memoization is - working as well. + 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