Skip to content
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

Merged
merged 7 commits into from
May 8, 2020
Merged

Conversation

MauritsioRK
Copy link
Contributor

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.

],
});
const read = async (request, response, next) => {
if (isNaN(request.params.id)) {
Copy link
Contributor

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
Copy link

codecov bot commented May 7, 2020

Codecov Report

Merging #26 into master will decrease coverage by 0.31%.
The diff coverage is 92.07%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
lib/public/views/Logs/Logs.js 96.57% <85.71%> (ø)
lib/public/views/Logs/Details/page.js 94.87% <86.66%> (ø)
lib/application/usecases/log/GetLogUseCase.js 100.00% <100.00%> (ø)
lib/application/usecases/log/index.js 100.00% <100.00%> (ø)
lib/database/repositories/LogRepository.js 100.00% <100.00%> (ø)
lib/domain/dtos/GetLogDto.js 100.00% <100.00%> (ø)
lib/domain/dtos/index.js 100.00% <100.00%> (ø)
lib/public/Model.js 100.00% <100.00%> (ø)
lib/public/components/Filters/index.js 100.00% <100.00%> (ø)
lib/public/components/Table/index.js 100.00% <100.00%> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 85c06ee...9d6608f. Read the comment docs.

* @param {Number} id ID of the entity to retrieve.
* @returns {Promise} Promise object represents the result of this use case.
*/
async execute(id) {
Copy link
Contributor

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

@MauritsioRK MauritsioRK requested a review from mvegter May 7, 2020 21:19
@MauritsioRK
Copy link
Contributor Author

Something is going wrong with coverage. Will investigate into this tomorrow.

@MauritsioRK
Copy link
Contributor Author

MauritsioRK commented May 8, 2020

Coverage should be much higher now.
@mvegter Any idea what is happening with the OpenAPI check failing? I cannot understand that error report for the life of me... 😅 plus it works fine locally.

@mvegter
Copy link
Contributor

mvegter commented May 8, 2020

@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.

Copy link
Contributor

@mvegter mvegter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mvegter mvegter merged commit 8d244db into master May 8, 2020
@mvegter mvegter deleted the fix/detail-page branch May 8, 2020 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants