-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add client.submissions.edit to edit an existing submission #8
Comments
@ln could you please share any more details on the intended use cases? It seems to imply modifying a Submission and a Comment, so Central will return the updated data and there would be two different data types (one from each call). What would you expect to receive back from this method? e.g.
|
Ah yes, thank you for those questions.
This would be a building block for a data cleaning pipeline that treats Central as the source of truth. So maybe a user realizes one systematic error was made, they script identifying all of those errors and confirming them, then building updated submissions and submitting them using this method. They also specify a comment that looks something like "Scripted fix for fields foo, bar, baz". Some kinds of issues I've fixed using similar building blocks:
I think over time we could look into helping users e.g. generate updated submissions from edits made in pandas. For now this method would help build these pipelines even if the hardest part is still updating the submission (but examples will help).
I would expect nothing back in case of success and an exception if anything goes wrong. My sense is that in this kind of scripting context mutators generally don't need to return the result of their mutations. The script may do follow-up work but it's more likely to be in the context of the full dataset rather than with the submission that was just mutated. Does this seem valuable to you? |
Use cases
Building block for a data cleaning pipeline that treats Central as the source of truth. User realizes one systematic error was made, they script identifying all of those errors and confirming them, then building updated submissions and submitting them using this method. They also specify a comment that looks something like "Scripted fix for fields foo, bar, baz".
Some kinds of issues I've fixed using similar building blocks:
Proposed inputs
instance_id
: strform_id: str
comment: str
xml: str
- a string representation of the new XML to submit. Must have the correctdeprecatedID
and a newinstanceID
project_id: Optional[int] = None
Proposed output
Exception in case of any error state.
None in case of success. It could be an object representing the submission metadata after the update but I expect this would generally be ignored.
The text was updated successfully, but these errors were encountered: