Added more details in the email tracker. Redacts new information - #589
Added more details in the email tracker. Redacts new information#589fritzj2 wants to merge 18 commits into
Conversation
…Team/lsf into zhytkovd_fritzj2_#561
…Team/lsf into zhytkovd_fritzj2_#561
…ixed wording in demo_data.py
|
As this is a database, back-end issue as well where we are working closely with redaacts and dumping data too. This would need a second reviewer. Go ahead and assign Brian to this too. @fritzj2 |
MImran2002
left a comment
There was a problem hiding this comment.
make sure this doesn't fail on the production backup database so you will have insert sql commands in prod-backup.sql I believe for similar database change refer to Sara's CCE Minor production database fix: BCStudentSoftwareDevTeam/celts#1737 and more over don't delete the subject category unless Brian explicitly said so as we don't want the subject in the sever database to lose data as merging that will cause older data to be erase as we remove a data row from it.
|
There is now support for prod-backup. The way it does this is by keeping the original fields, but adding the fields at the end which CAN be NULL as the previous data doesn't contain the rows. |
Issue Description
Fixes #561
Changes
recipientEmailstoemailTracker. This tracks the emails of those who received the email.templatehas been added in addition to the subject. The subject remains so as not to override existing data, and the old data functions without the additional fields.bodyto theemailTracker. This stores the actual body text of the email that was sent to view any errors in the text.emailHandlercontainsrecipientEmails, template, and body when adding to the emailTracker object.Testing
New information tracked
Redactions
mysql -u root -proot--skip-sslat the end of it.USE lsf;in the MySQL terminal.SHOW tables;to bring up a list of databases that MySQL has access to.SELECT * FROM emailtracker;to bring up the list of data that the emailTracker has recorded so far. Ensure that the test data is presentdata_scrub.sqlneeds to be changed for terminal support.;every time a line concludes with END. Thedata_scrub.sqlshouldn't have the;when the data is actually being backed up, but won't run in the terminal without them.;are added, runsource <filepath to data_scrub.sql>;. This will run the data_scrub.sql file and redact the data.SELECT * FROM emailtracker;)