This was our senior design project for SP2016. It's an alternative to rate my professor which requires metamoderation (peer reviews) for all professor reviews.
Reports can be resolved with a form which then removes them. The button for this is on the report card as can be seen above. This is logged along with anything else that anyone does in an admin's wardrobe too:
Added 4 or 5 migrations for the new tables for Report and Log.
Added a report model which points to a target log entry and a resolution log entry (when resolved). It also has a created by field and a summary.
Added a log model which contains a json-serialized object it points to (with pk/model name). Everything that's actually useful is accessible through accessors. Holds category information, timestamps, owners, etc.
Added reporting to every type of model we have a view for (including review comments).
Added editing to a few models I missed (review comments, schools).
Added logging for any instance that's changed automatically. The hooks are defined in browse/signals/handlers.py.
Added a logging overview page accessible through the button at the bottom of your wardrobe.
Logging and report overviews are only visible to staff.
Reporting is only visible on instances of models you don't own. Editing is only visible on instances you do own. (I don't think it checks if you own it when you submit the edit ajax call, but NBD amirite?)
Reporting something creates a log entry (which the report references). Resolving something creates another log entry for resolving (which the report references). When there's a resolution log entry created, a report is done.
Fixed a minor (hah!) bug where your password is sent in every ajax call that contains a user.
Merged common functions in ajax/views.py, new/utils.py, and browse/get_utils.py. They all reference each other in a less dumb way.
This PR mostly includes reporting and logging. This can be done by hitting the ! on the top right of something you don't own.
http://i.brod.es/f7QHj.png
This creates a report which can be viewed in any admin's wardrobe:
http://i.brod.es/JDM56.png
Reports can be resolved with a form which then removes them. The button for this is on the report card as can be seen above. This is logged along with anything else that anyone does in an admin's wardrobe too:
https://i.brod.es/GOFzg.png
This is part of #82 and closes #78 and #89.
Summary: