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

API: Return created data elements in http response to PUT data requests #919

Open
MagnusNordboe opened this issue Nov 21, 2024 · 0 comments
Labels

Comments

@MagnusNordboe
Copy link

Description

With the new DataWriteProcessor interface, changes to data elements can trigger creation of new data elements, like subforms. However, data elements created this way do not return anything to the client. This has the unfortunate consequence of the newly created data element being unknown by the client. One has to make an extra GET request to get list of data elements and find the new element that way.

Current workflow

  1. Create new instance
  2. Update data model (new data element is created by the server here)
  3. GET instances/partyId/instanceId and find the dataElementId for the new data element
  4. Update new data element with values

Desired workflow

  1. Create new instance
  2. Update data model, receive dataElementId of new data element
  3. Update new data element with values

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant