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 form version to submissions CSV and OData #398

Closed
matthew-white opened this issue Aug 26, 2021 · 2 comments · Fixed by #432
Closed

Add form version to submissions CSV and OData #398

matthew-white opened this issue Aug 26, 2021 · 2 comments · Fixed by #432

Comments

@matthew-white
Copy link
Member

It looks like some users are using an XPath expression in order to store the form version as a form field, in order to access the form version during later data management/analysis: https://forum.getodk.org/t/tracing-the-propagation-of-different-versions-of-same-form/34824/3. I think it'd be helpful if we automatically added the form version as a column in the submissions CSV file and as a property in the OData response. There wouldn't be filtering on form version (form version isn't a column on the submissions table, so I think it might be hard to add filtering).

I don't remember whether a single submission can be associated with multiple form versions (if the submission is edited). When we export submissions, we export the latest submission version, so I think we should use the form version associated with the latest submission version (then probably document that in the API docs).

@issa-tseng
Copy link
Contributor

it can probably be joined and filtered.

a single submission is no associated with any form versions, only submission versions are.

@matthew-white
Copy link
Member Author

Closed by #432. I don't think we added the ability to filter on form version, but that's something we could do later if need be.

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 a pull request may close this issue.

2 participants