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

Add image thumbnails to user comments section #298

Merged
merged 12 commits into from
Aug 29, 2021

Conversation

Coteh
Copy link
Owner

@Coteh Coteh commented Aug 19, 2021

Closes #13.
Other changes:

  • Change all functions + url variable in database-ops to be const
  • Extract performUserLogin from change password integ test so that it can be used in user comments integ test as well
  • Alter both image and user comments HTML slightly so that properties are double quoted rather than single quoted
  • Add Content-Type header to user comments response so that JSON user comments response has JSON Content-Type and thus can be parsed by superagent in integ test

Other changes:
- Change all functions + url variable in database-ops to be const
- Extract performUserLogin from change password integ test so that it can be used in user comments integ test as well
- Alter both image and user comments HTML slightly so that properties are double quoted rather than single quoted
- Add Content-Type header to user comments response so that JSON user comments response has JSON Content-Type and thus can be parsed by superagent in integ test
@codecov
Copy link

codecov bot commented Aug 19, 2021

Codecov Report

Merging #298 (6fb0ac9) into development (af9c9e0) will increase coverage by 8.57%.
The diff coverage is 96.72%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #298      +/-   ##
===============================================
+ Coverage        55.83%   64.40%   +8.57%     
===============================================
  Files               15       15              
  Lines             1166     1194      +28     
===============================================
+ Hits               651      769     +118     
+ Misses             515      425      -90     
Impacted Files Coverage Δ
lib/database-ops.js 62.58% <93.10%> (+7.18%) ⬆️
lib/comments.js 90.62% <100.00%> (+60.62%) ⬆️
lib/routes/route.js 56.00% <100.00%> (+10.72%) ⬆️
lib/util.js 100.00% <0.00%> (+2.32%) ⬆️

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 af9c9e0...6fb0ac9. Read the comment docs.

…r handler instead

- Add errorID to error page. It will be emitted to the page under an "Error Code" label if it exists.
- Add integ test for verifying posted timestamp within user comment HTML
- Fix copyright HTML encoding in footer
lib/database-ops.js Outdated Show resolved Hide resolved
lib/routes/route.js Outdated Show resolved Hide resolved
test/comments_test.js Outdated Show resolved Hide resolved
test/comments_test.js Show resolved Hide resolved
lib/comments.js Show resolved Hide resolved
test/integ/change_password_integ_test.js Outdated Show resolved Hide resolved
test/comments_test.js Outdated Show resolved Hide resolved
test/comments_test.js Outdated Show resolved Hide resolved
test/comments_test.js Outdated Show resolved Hide resolved
test/integ/integ_test_utils.js Show resolved Hide resolved
test/integ/user_comments_integ_test.js Show resolved Hide resolved
test/integ/user_comments_integ_test.js Outdated Show resolved Hide resolved
test/integ/user_comments_integ_test.js Show resolved Hide resolved
test/integ/user_comments_integ_test.js Outdated Show resolved Hide resolved
test/integ/user_comments_integ_test.js Outdated Show resolved Hide resolved
@Coteh Coteh merged commit 524b1e5 into development Aug 29, 2021
@Coteh Coteh deleted the image-thumbnails-comments branch August 29, 2021 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant