-
Notifications
You must be signed in to change notification settings - Fork 0
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
270 feature add description field to forminstance and formtemplate #292
base: main
Are you sure you want to change the base?
270 feature add description field to forminstance and formtemplate #292
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
apps/server/src/form-instances/entities/form-instance.entity.ts
Outdated
Show resolved
Hide resolved
@@ -112,6 +112,7 @@ const CreateFormInstanceModal: React.FC<CreateFormInstanceModalProps> = ({ | |||
originatorId: user?.id!, | |||
formTemplateId: selectedFormTemplate?.id!, | |||
formDocLink: selectedFormTemplate?.formDocLink!, | |||
description: selectedFormTemplate?.description!, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of a non-null assertion, can we add some sort of handling instead? this will cause an error if there's no description provided. the description should be optional i believe, maybe it won't require the assertion if you change the dto to have the field be optional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just changed it to use null instead if not defined. Not sure we use this component anymore though, so Bryan will have to check this for the new form instance flow
@@ -0,0 +1,11 @@ | |||
Error requesting http://localhost:8080/api-json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should remove this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and the other ones too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah definitely, missed that those got generated!
This reverts commit fceb8cf.
…into 270-feature-add-description-field-to-forminstance-and-formtemplate
Description
Add description fields to form instance and form template as a string. Descriptions are added when form instances and templates are created. Switched assign-group-entity to use ApiProperty instead of ApiPropertyOptional for consistency.
Also deleted form template modal because we do not use it anymore.
Motivation and Context
Allows the descriptions we have the user input during the create template process to persist / be saved when the template is created.
Closes [#270 ]
How has this been tested?
Tested to confirm a form template could be made with a description. Will need to test further to ensure it works with the frontend of the new form instance flow once both are merged.
Screenshots (if appropriate):
Types of changes
Checklist: