-
Notifications
You must be signed in to change notification settings - Fork 79
Conversation
…into fix-lint-tests Signed-off-by: thalles <lopthalles@gmail.com>
Signed-off-by: thalles <lopthalles@gmail.com>
Signed-off-by: thalles <lopthalles@gmail.com>
Signed-off-by: thalles <lopthalles@gmail.com>
Signed-off-by: thalles <lopthalles@gmail.com>
Signed-off-by: thalles <lopthalles@gmail.com>
Signed-off-by: thalles <lopthalles@gmail.com>
Codecov Report
@@ Coverage Diff @@
## butler-operator #1107 +/- ##
=====================================================
- Coverage 77.66% 77.50% -0.16%
- Complexity 2164 2177 +13
=====================================================
Files 1259 1233 -26
Lines 17552 17485 -67
Branches 1608 1598 -10
=====================================================
- Hits 13631 13552 -79
- Misses 3436 3448 +12
Partials 485 485
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: thalles <lopthalles@gmail.com>
private alreadyDetailedError(response: string | Record<string, unknown>): boolean { | ||
return typeof response !== 'string' && Object.keys(response).some( | ||
(key) => key === 'errors') | ||
} |
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.
Wouldn't be better to refactor all occurrences of this error structure instead of filtering them here?
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.
Yes, i will do this!
} | ||
|
||
export class ErrorResponse { | ||
public message: string; |
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.
No semicolons. Run npm run lint
} | ||
] } |
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.
Indent. Run npm run lint
Signed-off-by: thalles <lopthalles@gmail.com>
Signed-off-by: thalles <lopthalles@gmail.com>
Signed-off-by: thalles <lopthalles@gmail.com>
Signed-off-by: thalles <lopthalles@gmail.com>
Signed-off-by: thalles <lopthalles@gmail.com>
Signed-off-by: thalles <lopthalles@gmail.com>
Issue Description
Generic error message when helm template is invalid
Solution
Catch exception and implement a filter to format the error
Results
Old Response
New Response