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

add sha1 filter #123

Merged
merged 2 commits into from
Jul 5, 2019
Merged

add sha1 filter #123

merged 2 commits into from
Jul 5, 2019

Conversation

snopoke
Copy link
Contributor

@snopoke snopoke commented Jul 3, 2019

https://dimagi-dev.atlassian.net/browse/HI-707

This will allow creating SHA1 hashes of any column values. The specific use case is when exporting repeat groups the 'ID' field can be a long string which is too long for the column to accommodate:

'319e866e-c20a-413a-b1d9-fa2471f19cdc.form.data_fisher.319e866e-c20a-413a-b1d9-fa2471f19cdc.form.data_fisher.[0].details_capture.319e866e-c20a-413a-b1d9-fa2471f19cdc.form.data_fisher.319e866e-c20a-413a-b1d9-fa2471f19cdc.form.data_fisher.[0].details_capture.[0]'

Adding the sha1 to the query file will convert the long value to a hash while still maintaining the uniqueness of the key.

Copy link
Contributor

@esoergel esoergel left a comment

Choose a reason for hiding this comment

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

Nice, makes sense. Should there be a corresponding docs update?

@snopoke snopoke merged commit 0125457 into master Jul 5, 2019
@snopoke snopoke deleted the sk/sha1 branch July 5, 2019 08:42
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

3 participants