-
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
[241] Implement editing signature signer #265
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
LGTM just one question
import { CreateSignatureDto } from './create-signature.dto'; | ||
|
||
export class UpdateSignatureSignerDto extends PartialType( | ||
OmitType(CreateSignatureDto, ['order'] as const), |
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.
Any reason we would want to not change the order of a signature?
I know form instances inherit from form templates so messing with the order of signatures messes with the invariant that form instances have the same number + order of signatures as its form template, but do we think that employees would want to change the order in specific edge cases?
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 can extend the functionality to include updating the order, but we would also have to figure out how that works. How would we determine how to adjust the order? And we would have to adjust the order for every signature on the form as well.
import { UpdateSignatureSignerDto } from './dto/update-signature-signer.dto'; | ||
import { SignerType } from '@prisma/client'; | ||
|
||
let mockSignatureService = { |
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 finally understand what a mock is (thanks sweng!) so good job on this
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.
Should be good except that one question.
Description
Implement service and controller for editing signature signers
Motivation and Context
Allows users to be able to modify who is able to sign for a signature.
Closes [#241]
How has this been tested?
Unit testing.
Screenshots (if appropriate):
Types of changes
Checklist: