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

refactor: Convert form-feedback.client.factory.js, CsvGenerator.js to TypeScript #1899

Merged
merged 23 commits into from
May 27, 2021

Conversation

tshuli
Copy link
Contributor

@tshuli tshuli commented May 17, 2021

Problem

Closes #1509

Tests

  • Create email mode form. Check that feedback tab shows no feedback received.
  • Check that form feedback can be submitted successfully. Do this several times.
  • Check that submitted feedback and count appears correctly on feedback tab.
  • Check that submitted feedback can be downloaded.
  • Repeat above with storage mode form.

@tshuli tshuli marked this pull request as ready for review May 17, 2021 06:38
@karrui
Copy link
Contributor

karrui commented May 18, 2021

Oh, also add tests for the base CsvGenerator class?

src/types/form_feedback.ts Outdated Show resolved Hide resolved
src/public/modules/forms/helpers/CsvGenerator.ts Outdated Show resolved Hide resolved
src/public/modules/forms/helpers/CsvGenerator.ts Outdated Show resolved Hide resolved
src/app/modules/form/public-form/public-form.controller.ts Outdated Show resolved Hide resolved
src/public/modules/forms/services/FormFeedbackService.ts Outdated Show resolved Hide resolved
src/public/modules/forms/services/FormFeedbackService.ts Outdated Show resolved Hide resolved
src/public/modules/forms/services/FormFeedbackService.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@karrui karrui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with nits

src/public/services/FormFeedbackService.ts Outdated Show resolved Hide resolved
src/types/api/form-feedback.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@mantariksh mantariksh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good other than fixing the type on the controller. thanks for writing such detailed tests!

@tshuli
Copy link
Contributor Author

tshuli commented May 25, 2021

thanks @karrui and @mantariksh for reviewing

@mantariksh need an approval from you!

@mantariksh
Copy link
Contributor

Closes #1837 also

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.

Convert form-feedback.client.factory.js, CsvGenerator.js to TypeScript
3 participants