Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace "requests.get" with the "request_get" function #463

Merged
merged 2 commits into from Apr 22, 2022
Merged

Replace "requests.get" with the "request_get" function #463

merged 2 commits into from Apr 22, 2022

Conversation

ghost
Copy link

@ghost ghost commented Apr 20, 2022

This patch replaces "requests.get" with the "request_get" function in "utils.py".

Fixes DDS-1236.

Before submitting a PR to the dev branch:

  • Tests passing
  • Black formatting
  • Rebase/merge the dev branch
  • [ - ] Note in the CHANGELOG

Copy link
Member

@i-oden i-oden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change in function name and also need to refactor the end of the function: https://github.com/ScilifelabDataCentre/dds_cli/pull/463/files#diff-51fea701513da58b2a0a4b204b195162b68d9f5f57e782277cc4365d4944a0f6R155-R175

if not response.ok:

etc is already checked by request_get and what's returned by the function is already in json.

dds_cli/base.py Outdated Show resolved Hide resolved
dds_cli/base.py Outdated Show resolved Hide resolved
@i-oden i-oden assigned ghost Apr 21, 2022
dds_cli/base.py Show resolved Hide resolved
dds_cli/base.py Outdated Show resolved Hide resolved
dds_cli/base.py Outdated Show resolved Hide resolved
Zishan Mirza added 2 commits April 21, 2022 14:11
This patch replaces "requests.get" with the "request_get"
function in "utils.py".

Fixes DDS-1236.

Signed-off-by: Zishan Mirza <[email protected]>
@i-oden i-oden merged commit 79aec8f into ScilifelabDataCentre:dev Apr 22, 2022
@ghost ghost deleted the use_request_get_function branch May 24, 2022 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants