We're updating the issue view to help you get more done.Learn more

Update documentation for getUserProfile to include information about refreshing and memoization

In what follows we update a retrieved object. We then retrieve it again, but the object we get is the previous one, not the updated one. When we start a new session we get the correct value. This bug was discovered in SYNR-1161 .

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Python 3.6.3 (default, Nov 4 2017, 22:17:09) [GCC 4.9.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import synapseclient >>> syn=synapseclient.Synapse() >>> syn.login("RClientTestUser", "xxxxxxxx") Welcome, RClient TestUser! >>> up=syn.getUserProfile() >>> up['etag'] 'c4569124-019c-4e6a-8e75-78c404b82dda' >>> upUpdated=syn.restPUT("/userProfile", up.__str__()) >>> upUpdated['etag'] '49031baa-01a4-46bb-8daf-f92026874fc7' >>> upRetrievedAgain=syn.getUserProfile() >>> upRetrievedAgain['etag'] 'c4569124-019c-4e6a-8e75-78c404b82dda' >>> root@c848caaf0c38:/# python Python 3.6.3 (default, Nov 4 2017, 22:17:09) [GCC 4.9.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import synapseclient >>> syn=synapseclient.Synapse() >>> syn.login("RClientTestUser", "xxxxxxxxxx") Welcome, RClient TestUser! >>> up=syn.getUserProfile() >>> up['etag'] '49031baa-01a4-46bb-8daf-f92026874fc7'

Status

Assignee

Bruce Hoff

Reporter

Bruce Hoff

Fix versions

Priority

Major