Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 7.27 KB

CodeReview.md

File metadata and controls

71 lines (50 loc) · 7.27 KB

Code Reviews

The table below indicates which team member reviewed which other team member's code.

Reviewer Coder
bensonchan spencerwahl
spencerwahl aleccool213
AllenYX Koarth
mckenn19 AllenYX
littleizzy mckenn19
Koarth littleizzy
aleccool213 bensonchan

Reviewer : bensonchan

  • I found a minor bug in table view CSS where the tables weren't wrapping properly. Spencer promptly fixed it in this commit.
  • I changed the name attribute of the submit type input in this commit and appended POST_ before the name to ensure that any POST requests sent from tableview.html are interpreted by the view tableview in views.py correctly as it only checks if a name is present in the entire POST, which contains many other names referring to actual data inputs.
  • I think Spencer's implementation of messaging in table view is really creative. He uses hidden inputs to allow users to simply press Enter and have the message sent to the server then have the page update and show the message.
  • Overall I am impressed with how Spencer follows PEP-8 throughout all his code. His work was simple, intuitive, easy to read, and made extending them with tags and filters easy in this branch. His code also had no major bugs at all, showing that he had done some testing himself on top of the testing done by another member.

Reviewer : spencerwahl

  • Alec's use of a Django form in edituserprofile.html and forms.py in this commit allow for very readable code that has a very clear purpose
  • On the topic of readability there is a lot of inconsistent white spacing in Alec's edituserprofile.html and userprofile.html which make quick scans of the code, additionally his commit messages, while funny, made my code review substantially more time consuming
  • On this commit Alec implements accepting group invites. His code in general for invites is good but the commented out code and the lack of an HttpResponseRedirect after working with the POST request need fixes.
  • Overall while some of his code is not optimal, it has all of the required functionality

Reviewer : AllenYX

  • This review was conducted on code corresponding to the following issues #37 #49.
  • There was only one small issue with the implementation of notifications; after sending the registration email to a default gmail account, the webpage would show a smtp error. This was referenced in this issue, and fixed in this commit to revert back to our previous implementation.
  • All possible improvements were already noted by Dylan in issue #37. The only small change that can be made is to make the "subscription notifications" checkbox in user profiles (from views.py) to actually stay unchecked when toggled off.
  • I think that notifications were implemented very well. Dylan's code was easy to read, well commented, and well structured. Overall, the implementation is very similar to what you'd expect from actual notifications.

Reviewer : mckenn19

  • Overall easy-to-read code, meaningful varialbe names. Maybe just a little bit of whitespace to seperate if elif else statements.
  • Didn't find any bugs, and was intuitive code. There was a little piece of unnecessary code I removed in views.py of this code. When using a Many To Many Relation, you only need to add to one side of it, although you have to remove from both sides.
  • I thought the way that Allen implemented the sub-admins for groups allows for a lot of extension. He didn't restrict the powers that they can have, so it would be simple to give or take away the privelages. For example, if a new group feature is added that only admins and sub-admins should have, it would take almost no code to allow them access to the feature.

Reviewer : littleizzy

  • Very clean code with many comments, easy to read and understand.
  • Didn't find any bugs, too.

Reviewer : Koarth

  • Code is well-formatted and readable, with meaningful names for variables and functions.
  • Unfortunately, I found the implementation for polls to be fairly inflexible (views.py lines 151-180). The implementation allows for only 4 choices to the poll, no more no less, and results in rather bloated code. Taking advantage of built-in relationship sets (poll.choices.all(), poll.choices.add() for example) would clean up the code quite a bit and make it much easier to create a flexible module. This would be a good goal for the next phase.
  • Izzy's implementation of deletion and editing of messages was very well done; I don't think we made any changes to it after its early implementation. Editing and deletion are both implemented on the topic view page (commit 8aa1d6c) in a very robust and intutive way. Edit and delete buttons only appear to users who are eligible to perform these actions, which makes the process very clear and user-friendly.

Reviewer : aleccool213

  • Very meaningful commit messages.
  • When creating tags (the largest of his contributions) he covered most use cases such as: adding, removing, and searching for tags.
  • A very good thing that he did was fix his implementations of tagging to work with the new table view as seen here ([link] (https://github.com/csc301-fall2014/Proj-Evening-Team8-repo/commit/8ae751c0e13f2f62b8a649e6cd2bced3dd9f523f)). We had a large shift when we decided to do table views as our default view and Benson dealt with it.
  • Went above and beyond and implemented error handling methods as seen in this (commit).
  • I would like to see a little more comments from Benson though as it would make it easier for me and other teammates to decipher what he is doing in more complicated sequences.