Skip to content

Conversation

@pbailie
Copy link
Contributor

@pbailie pbailie commented Jul 20, 2019

Sysadmin script for Preferred Name Logging. Intended to run on the same server as Postgresql, run as root, and on a cron schedule.

pbailie added 8 commits June 14, 2019 19:16
Sysadmin tool portion as part of the logging request under Submitty/Submitty#3273 ("Preferred name is forgotten/removed without any indication why")

Initial code entry.  Testing and tweaking needed.  WIP.
Psql can generate several logfiles that need to be parsed.
@pbailie
Copy link
Contributor Author

pbailie commented Jul 20, 2019

Submitty Code PR is Submitty/Submitty#4153

pbailie added 3 commits July 23, 2019 19:33
Add AUTH(entication) logging to student auto feed for preferred name change tracking.
Instructions on using the preferred name logging tool.
Update to log USER_ID token.
@bmcutler bmcutler merged commit 7867846 into master Jul 30, 2019
@bmcutler bmcutler deleted the preferred_name_logging branch July 30, 2019 04:22
bmcutler pushed a commit to Submitty/Submitty that referenced this pull request Jan 6, 2020
NOTE: SYSADMIN ACTION REQUIRED

After this PR is installed, root access is required to manually restart Postgresql.

   service postgresql restart

------------

Submitty code portion of logging changes to a user's preferred first and/or last names.

Database user update query notes who was logged in as database cannot know (all queries are run by the same "role").
Update database trigger function to detect and log when user preferred name(s) have changed.
Created migration for new trigger function code
Also needed is a sysadmin tools script that will scrape the logs created by Postgresql and create its own log of all (and only) preferred name changes. (q.v. Submitty/SysadminTools#16)

Close #3273
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants