-
Notifications
You must be signed in to change notification settings - Fork 0
Preferred name logging sysadmin script #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
PR Candidate
Unneeded temp file
Submitty Code PR is Submitty/Submitty#4153 |
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sysadmin script for Preferred Name Logging. Intended to run on the same server as Postgresql, run as root, and on a cron schedule.