adalib.issues
¶
The Issues sub-package exposes the core integrations of the issues in the AdaLab Gallery.
Functions¶
create_issue ¶
Create a new issue for a specific card in the Gallery.
Use the example Jupyter Notebook to test this function or build upon it.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
card_id |
int
|
id of the card to assign the issue to |
required |
message |
str
|
message of the new issue |
required |
username |
str
|
the current username (tip: check "LOGNAME" environment variable) |
required |
Returns:
Type | Description |
---|---|
int
|
id of the new issue |
Source code in adalib/issues/issues.py
get_issue_data ¶
Get contents and information of a specific issue.
Use the example Jupyter Notebook to test this function or build upon it.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
issue_id |
int
|
id of the issue whose info is to be fetched |
required |
Returns:
Type | Description |
---|---|
dict
|
dictionary with the issue's detailed info |
Source code in adalib/issues/issues.py
get_issues ¶
Get all the card issues registered in the Gallery.
Use the example Jupyter Notebook to test this function or build upon it.
Returns:
Type | Description |
---|---|
list
|
list of dictionaries with issues' main info |
Source code in adalib/issues/issues.py
update_issue ¶
Update issue content (status, comments). Note that only one of the fields can be updated at a time.
Use the example Jupyter Notebook to test this function or build upon it.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
issue_id |
int
|
the id of the issue to be updated |
required |
new_status |
str
|
status to be set |
''
|
comment |
str
|
comment to be added |
''
|
Returns:
Type | Description |
---|---|
int
|
id of the issue update |