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

(PXP-5978): async_get_indexd_records #65

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

BinamB
Copy link
Contributor

@BinamB BinamB commented May 15, 2020

Description about what this pull request does.

Please make sure to follow the DEV guidelines before asking for review.

New Features

  • Use Gen3SDK to download indexd records.

Breaking Changes

Bug Fixes

Improvements

Dependency updates

Deployment changes

@BinamB BinamB requested a review from giangbui May 15, 2020 20:20
@BinamB BinamB marked this pull request as ready for review May 15, 2020 20:35
scripts/utils.py Outdated
@@ -361,7 +361,7 @@ def get_indexd_records():
def async_get_indexd_records():
loop = asyncio.get_event_loop()
print("HOST: {}".format(INDEXD["host"]))
loop.run_until_complete(async_download_object_manifest(INDEXD["host"]))
loop.run_until_complete(async_download_object_manifest(INDEXD["host"].replace("index/index", "")))
Copy link
Contributor

@giangbui giangbui May 18, 2020

Choose a reason for hiding this comment

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

Let use urllib for better since it prevents from any issue if indexd endpoint reconfig
https://docs.python.org/3/library/urllib.parse.html

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thats useful! Thanks!

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.

None yet

2 participants