Add function to get user certification status

Description

This function was requested by for the data curator application in HTAN. It is helpful for the shiny application they are building to inform users that they must be certified prior to uploading.

I confirmed with Jordan that I will add this: https://github.com/Sage-Bionetworks/synapsePythonClient/pull/801/files

Environment

None

Activity

Show:
Jordan Kiang
February 25, 2021, 8:54 PM

Thanks .

The latest version returns False rather than generates a stack if the user hasn’t taken the quiz at all. e.g.

Jordan Kiang
February 24, 2021, 7:21 PM

Thanks looks like the difference is a user who hasn’t taken the quiz (resulting in an (error) vs a user who has taken the quiz but failed (False).

can you review this PR when you have a chance?

Yooree Chae
February 24, 2021, 6:59 PM

Hi – I was able to test this successfully! I tested with usernames and userIDs of people who were certified and not and only the users who were certified returned a value of True.

Question: when I tested on a user that was not certified, I got an error message instead of a printout of False. Is this the expected behavior?

Jordan Kiang
February 6, 2021, 6:22 AM

, , added a helper to the synapse client after you asked about this feature in Slack. Would you be willing to validate this functionality by installing and testing the release python client 2.3.0 release candidate?

You can install the release candidate e.g.

And you can invoke the method using the username or user_id e.g.

The doc for this function can be previewed here:

https://jkiang13.github.io/synapsePythonClient/build/html/index.html#synapseclient.Synapse.is_certified

Thanks!

Fixed

Assignee

Thomas Yu

Reporter

Thomas Yu

Labels

None

Validator

Yooree Chae

Development Area

None

Release Version History

None

Slack Channel

None

Fix versions

Priority

Minor