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

[wip] block 8 cleanup items #257

Merged
merged 22 commits into from
Apr 7, 2020
Merged

[wip] block 8 cleanup items #257

merged 22 commits into from
Apr 7, 2020

Conversation

issa-tseng
Copy link
Member

@issa-tseng issa-tseng commented Mar 29, 2020

incidentally resolves #256

* incidentally resolves the infinite looping issue.
* since we need the instanceId to generate the decryption IV.
* (usually we just autogenerate an id if we don't see one).
* resolves #253.
* previously, we had a middleware layer automatically buffer all xml
  request bodies to a string so we could handle it easier.
* but this means that the form attachment resource, which expects
  streaming inputs from the request body, would find nothing.
* additionally, we are much better now at handling streams that we used
  to be, and in general we should be stream-processing things.
* so in this commit, we remove that middleware layer, and we switch to
  stream-processing xml for new forms and submissions.
* this also meant shoring up some of the streams and promises.
* resolves #243.
* it's not the most crucial test.
* everything in this commit is a really awful hack and i'm extremely
  sorry about it.
* resolves #124.
* this is necessary because of a quirk in API communication; the role
  summary API for forms operates off xmlFormIds rather than acteeIds,
  so deleted forms' assignments could collide with recreated forms.
* the longer term fix would be to start exposing acteeIds over the API.
lib/resources/odata.js Show resolved Hide resolved
lib/model/query/forms.js Outdated Show resolved Hide resolved
test/unit/model/instance/submission-partial.js Outdated Show resolved Hide resolved
lib/util/crypto.js Outdated Show resolved Hide resolved
test/integration/api/forms.js Show resolved Hide resolved
test/integration/api/submissions.js Show resolved Hide resolved
@issa-tseng issa-tseng merged commit 91f34e3 into master Apr 7, 2020
@issa-tseng issa-tseng deleted the issa/0.8-cleanup branch April 7, 2020 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment