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

Small store fixups #308

Merged
merged 3 commits into from
Oct 11, 2023
Merged

Small store fixups #308

merged 3 commits into from
Oct 11, 2023

Conversation

trey-stafford
Copy link
Contributor

Couple of minor fixups that I noticed while looking at earthaccess.store:

  • Fixup spelling mistake in access variable assignment (direc -> direct)
  • Pass threads arg to _open_urls_https in _open_urls, replacing hard-coded value of 8.

@github-actions
Copy link

github-actions bot commented Sep 26, 2023

Binder 👈 Launch a binder notebook on this branch for commit 97fa34f

I will automatically update this comment whenever this PR is modified

Binder 👈 Launch a binder notebook on this branch for commit b9ab86c

@@ -533,7 +533,7 @@ def _get_granules(
provider = granules[0]["meta"]["provider-id"]
endpoint = self._own_s3_credentials(granules[0]["umm"]["RelatedUrls"])
cloud_hosted = granules[0].cloud_hosted
access = "direc" if (cloud_hosted and self.running_in_aws) else "external"
access = "direct" if (cloud_hosted and self.running_in_aws) else "external"

Choose a reason for hiding this comment

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

Thinking out loud: I think it'd be really useful to add type safety here. We could type access as Enum or as a union of literal string types.

@trey-stafford trey-stafford requested a review from betolink October 4, 2023 22:22
@trey-stafford
Copy link
Contributor Author

I got sidetracked last week and didn't have a chance to come back to this and my other problem that's described in #307 until now.

I thought I might come across other items that may end up in this PR, but since I'm just getting re-started and I'm not certain of that, I want to make sure these small fixes get merged.

@trey-stafford trey-stafford marked this pull request as ready for review October 4, 2023 22:40
Copy link
Collaborator

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

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

Generally this looks good to me. @betolink @MattF-NSIDC any additional thoughts?

@MattF-NSIDC
Copy link

🚀

@MattF-NSIDC MattF-NSIDC merged commit 25a38ea into main Oct 11, 2023
6 checks passed
@MattF-NSIDC MattF-NSIDC deleted the small-store-fixups branch October 11, 2023 22:49
@jrbourbeau jrbourbeau mentioned this pull request Oct 20, 2023
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.

3 participants