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

Remove isTemplate validation on duplicate template API after all clients are updated #792

Closed
karrui opened this issue Dec 2, 2020 · 0 comments · Fixed by #1432
Closed

Comments

@karrui
Copy link
Contributor

karrui commented Dec 2, 2020

When duplicating templates, isTemplate is being sent to the backend as a body parameter.

This is legacy code that was used to reset form.customLogo to undefined so that the form logos are not copied over. However, form.customLogo is a deprecated key and will be removed from the codebase (#787), and the isTemplate body parameter is actually not doing anything.

This issue is opened to track the removal of validating isTemplate when frontend has stopped including it in the body parameter.

@karrui karrui self-assigned this Dec 2, 2020
karrui added a commit that referenced this issue Dec 7, 2020
* feat(AuthSvc): add getFormIfPublic service fn (and tests)

* test(FormSvc): add tests for isFormPublic function

* feat(AdminFormCtl): add handleCopyTemplateForm handler fn

* feat(AdminFormRoutes): add Joi validation to /adminform/copy api

* ref(AdminFormRoutes): use new handleCopyTemplateForm handler

* feat: remove and track sending of isTemplate param when using template

related to #792

* test(AdminFormCtl): add tests for handleCopyTemplateForm

* feat: remove unused adminForms.duplicate function

* feat(AuthSvc): make overridden error message more generic

* ref(AdminFormCtl): unnest call to get dashboard view of duped form
@r00dgirl r00dgirl added the P3 label Mar 18, 2021
@r00dgirl r00dgirl added this to the typescriptify backend milestone Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants