-
Notifications
You must be signed in to change notification settings - Fork 4
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
[#174644239] - Fix GetServices returns all services #69
Conversation
GetServices/handler.ts
Outdated
const reducedResults = results.reduce((prev, curr) => { | ||
return { | ||
...prev, | ||
...curr | ||
}; | ||
}, {}); |
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.
what's the purpose of this code?
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.
results' type is {}[]
. I've used reduce to flatten results into {}
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.
nevermind, changed implementation in 85a8305
Codecov Report
@@ Coverage Diff @@
## master #69 +/- ##
==========================================
- Coverage 86.62% 86.13% -0.50%
==========================================
Files 39 39
Lines 1249 1255 +6
Branches 88 97 +9
==========================================
- Hits 1082 1081 -1
- Misses 166 172 +6
- Partials 1 2 +1
Continue to review full report at Codecov.
|
Affected stories
Generated by 🚫 dangerJS |
This PR includes a fix to GetServices that now returns all services, instead of a subset.
This also includes specs update on GetServices return type.