-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix bugs relating to the log detail page #26
Conversation
], | ||
}); | ||
const read = async (request, response, next) => { | ||
if (isNaN(request.params.id)) { |
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 logic should be wrapped in a DTO, see the CreateLogDto as an example.
Codecov Report
@@ Coverage Diff @@
## master #26 +/- ##
==========================================
- Coverage 93.57% 93.25% -0.32%
==========================================
Files 79 81 +2
Lines 1011 1067 +56
Branches 37 44 +7
==========================================
+ Hits 946 995 +49
- Misses 65 72 +7
Continue to review full report at Codecov.
|
c0156ef
to
5080850
Compare
* @param {Number} id ID of the entity to retrieve. | ||
* @returns {Promise} Promise object represents the result of this use case. | ||
*/ | ||
async execute(id) { |
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.
See the comment regarding DTO
9ead3c8
to
9ba7587
Compare
Something is going wrong with coverage. Will investigate into this tomorrow. |
Coverage should be much higher now. |
@MauritsioRK the OpenAPI checks if there are any breaking changes, so this is not something to worry about (that much) at this stage but is nice to know. |
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!
These two tickets are addressed by the PR:
https://alice.its.cern.ch/jira/browse/O2B-260
https://alice.its.cern.ch/jira/browse/O2B-261
This also includes some error handling for a missing log entry.