You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently contributionid is a uuid generated at random for each observation each time a whatsapp chat is exported into Kapta Mobile. In order to deal with the problem of duplicates from repeated uploads however, it would be better to generate an id from attributes which are consistent from one export to the next. That's because the uploadAPI uses contributionid as the filename in the S3 bucket so we'd be overwriting/updating observations that have already been uploaded as opposed to creating new files.
The text was updated successfully, but these errors were encountered:
To make it unique, it'd have to be a combination of message.sender and message.datetime. I did consider including groupName, but that's too easy to change. I'm not sure what happens if a message sender changes their username if that updates old messages in the chat, in which case even message.sender isn't reliable, but there isn't really an alternative.
There doesn't appear to be a built in way to generate hashes, but this code snippet from blogpost looks like one way to do it:
Currently contributionid is a uuid generated at random for each observation each time a whatsapp chat is exported into Kapta Mobile. In order to deal with the problem of duplicates from repeated uploads however, it would be better to generate an id from attributes which are consistent from one export to the next. That's because the uploadAPI uses contributionid as the filename in the S3 bucket so we'd be overwriting/updating observations that have already been uploaded as opposed to creating new files.
The text was updated successfully, but these errors were encountered: