LDEV-4180: Make DB patches produce up-to-date structure during build instead of applying multiple patches.Get rid of unnecessary tables and keys.Modify boolean columns to tinyint(1)Simplify patches where possible.
LDEV-4220: When a peer review comment rating was deleted and not replaced with another comment rating, an exception was thrown as it was trying to delete the comment twice.
LDEV-4204: Redirects were causing the login page to get stuck once it had failed a password or had a locked out password so changes to a forward which leaves the "referer" entry as it orginally was in the browser. Redirect appears to be needed for the two stage authentication to work properly so it was left as is.
LDEV-4187: Delegate non-HTTP-request tasks to own threads. Open and close Hibernate session for each of such thread. Bind created session to context and thread. Close session at the end of thread execution.
LDEV-4187: Commented out the actions that bind the session to the thread as this is causing the progress bar issues. Needs to be reviewed and fixed properly.
LDEV-4187: Debugging for the learner progress issues commented out in the code in case needed for future testing. Only the warnings left active to warn if the attempted activity set is wrong.