- get a
Team
instance fromSubmission
instance Submission.has_errors
make two identical queries, on to determine the status and one to search errors, simplify it by doing only a query- filtering sample by status or error make a lot of queries. Consider writing coroutines or reading ValidationResult as pages
- fix a bug when patching a sample: deal with team in relationship
- raise
USIDataError
on40x
status code - Change
Auth.__str__()
: now it returnsToken for Foo Bar will expire in HH:MM:SS
- add
Auth.get_domains
which returnsself.claims['domains']
- modelled custom exceptions
- Set a default date if
releaseDate
attribute is missing - improved documentation by describing how to sort and filter objects
- fix bug when adding samples to a submission retrieved with
team.get_submission()
- Update documentation. Set
taxon
in sample data (mandatory attribute) - displaying dates when
print(Submission)
instances Root.get_user_submissions()
and other methods which returned list of objects now return iterator objectsstr(auth)
will report duration inhh:mm:ss
- compiling PDF using PNG images (change badges)
- raise no exceptions where no team is found (using
Root.get_user_teams
) - Using namespaces to configure API endpoints (
pyUSIrest.settings
) - move
Root
,User
,Domain
,Team
,Submission
,Sample
ValidationResult
classes insidepyUSIrest.usi
module
- Deal with API errors (50x, 40x)
- test for an empty submission (no samples)
- updated root.json, userSubmission.json test data
- submissionStatus is no longer an attribute, when feching submission by name is present when getting user submissions
- follow submissionStatus link (if necessary)
- update submission status after create a new submission
- update submission status after
get_submission_by_name
- update submission status after reload a just finalized submission
Domain.users
returnsUser
objects in a list- improved
Submission.get_samples
method
- Fetch submission by name
- changed library name to
pyUSIrest
- published to pypi
- Finalize submission with PUT
- submit into biosample with python methods