Skip to content

Commit

Permalink
Merge pull request versionone#29 from mtalexan/release-0.6.2
Browse files Browse the repository at this point in the history
Release 0.6.2
  • Loading branch information
mtalexan authored Jul 2, 2018
2 parents 3455970 + c0da266 commit e83764b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]",
Expand Down

0 comments on commit e83764b

Please sign in to comment.