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

build: hotfix release v5.6.1 #1634

Merged
merged 3 commits into from
Apr 13, 2021
Merged

build: hotfix release v5.6.1 #1634

merged 3 commits into from
Apr 13, 2021

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Apr 13, 2021

Release v5.6.1

This release fixes a bug where /adminform/submissions/download and /adminform/submissions/count returned a HTTP status 400 when query.startDate and query.endDate values were equal.

Fixes

  • fix: use Joi.date.min() instead of Joi.date.greater() for date range validation in /adminform

@karrui karrui requested a review from mantariksh April 13, 2021 09:04
@karrui karrui merged commit 5a9bcd4 into release Apr 13, 2021
seaerchin added a commit that referenced this pull request Apr 14, 2021
…nt and submissions/download

as start date can be equal to end date, the hotfix in #1634 was ported over. additionally, an extra
unit test for /submissions/download was added to ensure that the same issue does not plague it
seaerchin added a commit that referenced this pull request Apr 14, 2021
* style(admin-forms/feedback): fixed misspelling of admin

* refactor(admin-form/controller): combined validator into handleCountFormSubmission

* refactor(admin-forms/submissions): duplicates over submissions over to new routes

* refactor(submissions/client/factory): removed FE callsite

* fix(admin-forms/submission): adds joi/date to base joi

* test(admin-forms/submissions): adds test from old route

* fix(submissions/client/factory): fixed endpoints for adminform

* refactor(encrypt-submission): combines validation together with handler

* test(encrypt-submission): fixes controller tests due to atomic export for validator + handler

* test(admin-forms/submissoins): ports over tests for submissions/download

* refactor(submissions/client/factory): changed frontend to call new backend api

* chore(admin-forms/submissions): renamed file from submission to submissions

* style(submissions/client/factory): combined api and admin form prefix into one

* fix(admin-form/encrypt-submission): fixed date validation to be min instead of greater

* test(admin-forms): added tests for date validation to submissions/count and submissions/download

as start date can be equal to end date, the hotfix in #1634 was ported over. additionally, an extra
unit test for /submissions/download was added to ensure that the same issue does not plague it

* style(admin-forms/submissions): changed submission to be submissionS

* docs(admin-forms/submissions): fixed comment
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 this pull request may close these issues.

3 participants