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

tree: make get_hash return type and hash pair #4397

Merged
merged 1 commit into from
Aug 15, 2020
Merged

Conversation

efiop
Copy link
Member

@efiop efiop commented Aug 15, 2020

Currently we kinda assume that whatever is returned by get_file_hash
is of type self.PARAM_CHECKSUM, which is not actually true. E.g. for
http it might return etag or md5, but we don't distinguish between
those and call both etag. This is becoming more relevant for dir
hashes that are computed a few different ways (e.g. in-memory md5 or
upload to remote and get etag for the dir file).

Prerequisite for #4144 and #3069

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

Currently we kinda assume that whatever is returned by `get_file_hash`
is of type self.PARAM_CHECKSUM, which is not actually true. E.g. for
http it might return `etag` or `md5`, but we don't distinguish between
those and call both `etag`. This is becoming more relevant for dir
hashes that are computed a few different ways (e.g. in-memory md5 or
upload to remote and get etag for the dir file).

Prerequisite for iterative#4144 and iterative#3069
@efiop efiop merged commit 023dec4 into iterative:master Aug 15, 2020
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

1 participant