-
Notifications
You must be signed in to change notification settings - Fork 2
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
Disallow updating rows more than once #9
Comments
In this example, would it work if we check to see if Tino has a referral number set, and if it is set we don't change it? This seems like it would prevent the underlying problem. And then we could add Patrick and Katrina in and (somehow) mark them as coming from an over-submitted referral link which would make it easier to filter out |
@dorey, sounds good to me 👍 I'd guess that this issue is making a bit of a mess in the Airtable, so pushing a fix first for
would probably save a lot of labor. The next part
is certainly nice, but please don't worry about doing this first. Perhaps, given what @tinok says, it's not needed at all. |
* include 'PARENT_UUID' in the queried fields * if PARENT_UUID is already set, then emit an error addresses #9 Needs to be tested on the live airtable Question-- Does req.emit('error') prevent the rest of the airtable update from continuing?
That's right, adding Patrick and Katrina is not necessary from their perspective. This was only a suggestion in the first post because we're already adding them. Once Patrick and Katrina don't have Tino's referral number set anymore we will know that they came from an overcommitted referral and can filter them out as needed. |
We need to modify the script so that it skips the initial KoBo-to-Airtable submission IF the row already includes a UUID in the
Airtable COL submission_uuid
field.Background
The current online survey approach has some users forwarding the survey URL (including the "unique" participant ID) to whole groups of people. This means that:
For example:
Current behavior:
Tino's phone number is replaced by Anji's. Patrick and Katrina are added as new referrals to the table. There are now 5 records (Alex, Tino, John, Ignacio, Patrick, Katrina). Tino's record says he referred 4 people (John, Ignacio, Patrick, Katrina).
Desired behavior: One of these two options:
Airtable COL submission_uuid
field). (This would require the team filtering out the additional referrals in Airtable, which is ok.)The text was updated successfully, but these errors were encountered: