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

track and return more of: formVersion, deviceId, userAgent #432

Merged
merged 5 commits into from
Jan 14, 2022

Conversation

issa-tseng
Copy link
Contributor

@issa-tseng issa-tseng commented Nov 16, 2021

the goal here is to do the following:

  1. return an extra FormVersion/formVersion field on csv/odata export. this field reflects only the original "root" version of a submission, it does not update if the submission is edited.
  2. return an extra formVersion field on extended submission version request. ditto it's the root version.
  3. track and return userAgent for each submission version.
  4. track and return deviceId for each submission version.

this pr does not deprecate the existing deviceId on the logical submission, which will also always reflect the initial submission. it only adds an additional deviceId to version requests.

this pr does not add userAgent to submission logical requests. maybe it should.

@issa-tseng issa-tseng force-pushed the issa/more-submission-meta branch from 0baae9e to df77456 Compare December 2, 2021 01:07
@issa-tseng issa-tseng requested a review from ktuite December 14, 2021 18:30
@@ -215,6 +215,7 @@ describe('managed encryption', () => {
.then((keyId) => new Promise((done) =>
zipStreamToFiles(asAlice.get(`/v1/projects/1/forms/simple/submissions.csv.zip?${keyId}=supersecret`), (result) => {
result.filenames.should.eql([ 'simple.csv' ]);
console.log(result['simple.csv']);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rm

@issa-tseng issa-tseng merged commit 5f86e22 into master Jan 14, 2022
@issa-tseng issa-tseng deleted the issa/more-submission-meta branch January 14, 2022 02:55
@matthew-white matthew-white linked an issue Jan 21, 2022 that may be closed by this pull request
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.

Add form version to submissions CSV and OData
2 participants