bcgov / bcgov/SIMS

FormIO dryrun is called incorrectly

Open
#6,594 0 comments 0 reactions 1 assignee Claimed by @uhelm View on GitHub
Dev & Architecture
Dominant language
TypeScript
Stars
29
Forks
15
Avg merge
1d 13h
Merged PRs (30d)
40

Description

We are calling FormIO `dryrun` with the following URL:

- [ ] Adjust the dryrun execution query string to use `dryrun` instead of `dryRun`.
- [ ] Validate in MongoDB whether the data is still being persisted during submission, for instance, a student application.

```
form.service.ts:

100: ${this.config.formsUrl}/${formName}/submission?dryRun=1,
```

The formio submission handler requires a case-sensitive argument:
```
formio/src/middleware/submissionHandler.js:

146: if (req.query.hasOwnProperty('dryrun') && req.query.dryrun) {
```

Could explain an issue we are seeing with steadily increasing mongodb data usage

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.