Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Update review #42

Merged
merged 10 commits into from
Oct 17, 2020
Merged

Update review #42

merged 10 commits into from
Oct 17, 2020

Conversation

BlairCurrey
Copy link
Collaborator

@BlairCurrey BlairCurrey commented Oct 10, 2020

This resolves:

Will need to run npm install to download the method-override module.

As a relative path, img could not be found from
'http://localhost:8087/review/6'. From that URL, img path resolved to
'http://localhost:8087/review/img/compass.svg'. Changing to absolute
fixes this.
added canAddReview and canUpdateReview functions and used them to block
the relevant routes. Changed the sections using spaces to tabs. changed
some request types (from post to put/delete). added db query to /profile
route, made /update/:id get and put routes, and /delete/:id route.
@BlairCurrey
Copy link
Collaborator Author

Let me know if you have any questions or if I can do anything to make the changes clearer. Added quite a bit in this one.

Copy link
Collaborator

@ankush ankush left a comment

Choose a reason for hiding this comment

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

I've reviewed partially for now. Suggested changes added as comments in review.

package.json Show resolved Hide resolved
public/js/modules/SessionOptions.js Show resolved Hide resolved
routes/main.js Outdated Show resolved Hide resolved
routes/main.js Outdated Show resolved Hide resolved
routes/main.js Outdated Show resolved Hide resolved
routes/main.js Outdated Show resolved Hide resolved
ankush
ankush previously approved these changes Oct 17, 2020
Copy link
Collaborator

@ankush ankush left a comment

Choose a reason for hiding this comment

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

Looks good. 👍

@ankush ankush merged commit c032136 into master Oct 17, 2020
@ankush ankush deleted the update-review branch October 18, 2020 05:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add single review route restrict user to 1 review per class Allow users to edit reviews
2 participants