-
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
MLPAB-1638 Add update for when certificate provider signs #81
Conversation
cb93b36
to
eefa788
Compare
eefa788
to
3c89ca2
Compare
3c89ca2
to
7ace6e8
Compare
7ace6e8
to
16e3173
Compare
16e3173
to
71145a4
Compare
71145a4
to
fde3a7d
Compare
fde3a7d
to
e513d4f
Compare
dbce62a
to
05f20c8
Compare
05f20c8
to
1b70f73
Compare
}) | ||
} | ||
|
||
_, err = pointer.Set(lpa, change.New) |
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.
this would need to know the type it is going to set (if you want to see why the current one breaks, try setting /signedAt
), so I've removed in favour of having a specific Apply
object that does know what the types are
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.
Makes sense, thanks for reworking that
1b70f73
to
bbbdf1a
Compare
internal/shared/person.go
Outdated
@@ -9,6 +11,10 @@ type Address struct { | |||
Country string `json:"country"` | |||
} | |||
|
|||
func (a Address) IsSet() bool { |
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.
This is such a nit, but might be clearer to define IsZero()
and check the inverse since "zero" already has clear meaning in Go (arguably person.Address = Address{}
would be "set" even though it's empty).
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.
cool, and it matches time.Time
then which is nice
lambda/update/main.go
Outdated
verifier interface { | ||
VerifyHeader(events.APIGatewayProxyRequest) bool | ||
} |
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.
In the other lambdas this is still verifier shared.JWTVerifier
, did this one need to be changed?
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, because I wanted to inject a mock version in the tests. I'll name the type though to make it look nicer
}) | ||
} | ||
|
||
_, err = pointer.Set(lpa, change.New) |
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.
Makes sense, thanks for reworking that
bbbdf1a
to
2bb18a3
Compare
2bb18a3
to
9ce8afe
Compare
9ce8afe
to
50c4e9d
Compare
No description provided.