-
Notifications
You must be signed in to change notification settings - Fork 6
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
[#ENTE-82] Limit API access for incomplete services #116
[#ENTE-82] Limit API access for incomplete services #116
Conversation
Example of PR titles that include pivotal stories:
Generated by 🚫 dangerJS |
Codecov Report
@@ Coverage Diff @@
## master #116 +/- ##
==========================================
+ Coverage 81.82% 83.42% +1.59%
==========================================
Files 27 27
Lines 886 899 +13
Branches 89 92 +3
==========================================
+ Hits 725 750 +25
+ Misses 160 148 -12
Partials 1 1
Continue to review full report at Codecov.
|
4708aa6
to
b687701
Compare
CreateMessage/handler.ts
Outdated
.map(_1 => true) | ||
.mapLeft( | ||
_1 => ResponseErrorForbiddenNotAuthorizedForRecipient | ||
) |
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.
.map(_1 => true) | |
.mapLeft( | |
_1 => ResponseErrorForbiddenNotAuthorizedForRecipient | |
) | |
.bimap( | |
ResponseErrorForbiddenNotAuthorizedForRecipient, | |
_1 => true | |
) |
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.
Fixed in af84ae2
userAttributes.service.authorizedRecipients, | ||
fiscalCode | ||
) | ||
).mapLeft(_ => ResponseErrorForbiddenNotAuthorizedForRecipient) |
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.
).mapLeft(_ => ResponseErrorForbiddenNotAuthorizedForRecipient) | |
).mapLeft(ResponseErrorForbiddenNotAuthorizedForRecipient) |
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.
mapLeft
need a function and ResponseErrorForbiddenNotAuthorizedForRecipient
is not
utils/profile.ts
Outdated
.map(_1 => true) | ||
.mapLeft(_1 => ResponseErrorForbiddenNotAuthorizedForRecipient) |
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.
.map(_1 => true) | |
.mapLeft(_1 => ResponseErrorForbiddenNotAuthorizedForRecipient) | |
.bimap(ResponseErrorForbiddenNotAuthorizedForRecipient, | |
_1 => true | |
) |
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.
Fixed in af84ae2
af84ae2
to
516710d
Compare
List of Changes
If the feature flag
FF_DISABLE_INCOMPLETE_SERVICES
istrue
only services matching thatValidService
type can use:Some Services added into
FF_INCOMPLETE_SERVICE_WHITELIST
can bypassValidService
check.Motivation and Context
A Services that haven't the required metadata information can't be enabled to use some API. We need to specify through the feature flag when this filtering is enabled and a whitelist of services that don't need this check.
How Has This Been Tested?
unit test
test with
io-mock
Screenshots (if appropriate):
Types of changes
Checklist: