Editing Personnel Database/Processing/How To
From PCSAR
Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Current revision | Your text | ||
Line 1: | Line 1: | ||
- | ==How to process the | + | ==How to process the membership database== |
Processing the database requires UNIX scripts, which I ([[Brett Wuth]]) keep | Processing the database requires UNIX scripts, which I ([[Brett Wuth]]) keep | ||
on the PCSAR virtual machine. | on the PCSAR virtual machine. | ||
Line 31: | Line 31: | ||
*** uses script ~bot/sar/pc/membership/bin/wiki-membership-activities-validate to update [[Activities/Report/wiki-membership-activities-validate]] | *** uses script ~bot/sar/pc/membership/bin/wiki-membership-activities-validate to update [[Activities/Report/wiki-membership-activities-validate]] | ||
*** amend script to output errors with contextual lines | *** amend script to output errors with contextual lines | ||
- | ** validate each | + | ** validate each Membership Record upon edit |
*** (reverified after 2015-07 damage) write script to validate just member passed | *** (reverified after 2015-07 damage) write script to validate just member passed | ||
**** see ~bot/sar/pc/membership/bin/wiki-membership-member-validate | **** see ~bot/sar/pc/membership/bin/wiki-membership-member-validate | ||
Line 49: | Line 49: | ||
****** ''single page [[Members:PCSARBot/Watches]] | ****** ''single page [[Members:PCSARBot/Watches]] | ||
******* ''each line like:'' <code><nowiki>* [[pagename]]: script</nowiki></code> | ******* ''each line like:'' <code><nowiki>* [[pagename]]: script</nowiki></code> | ||
- | ******* ''with possible duplicates of pagename | + | ******* ''with possible duplicates of pagename |
****** (done) write scripts to enable/disable watch on a wiki page | ****** (done) write scripts to enable/disable watch on a wiki page | ||
******* (done) wiki-page-watch-enable | ******* (done) wiki-page-watch-enable | ||
******* (done) wiki-page-watch-disable | ******* (done) wiki-page-watch-disable | ||
- | ****** ( | + | ****** '''(next)''' write scripts to add/remove watch scripts |
- | ****** | + | ****** create mechanism to dispatch scripts based on email of page that changed |
- | + | ||
- | + | ||
******* ''consider security of other person editing page | ******* ''consider security of other person editing page | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
******* validate against whitelist of last editors | ******* validate against whitelist of last editors | ||
- | |||
- | |||
- | |||
****** create mechanism to unwatch pages if email came in and no watch script registered | ****** create mechanism to unwatch pages if email came in and no watch script registered | ||
**** develop watch on memrec category | **** develop watch on memrec category | ||
***** add new pages | ***** add new pages | ||
***** delete removed pages | ***** delete removed pages | ||
- | |||
*** allow Members: page to transclude report from another Members: page | *** allow Members: page to transclude report from another Members: page | ||
*** when [[Activities]] changes, reprocess all Members | *** when [[Activities]] changes, reprocess all Members | ||
Line 92: | Line 79: | ||
=== Process === | === Process === | ||
- | |||
- | |||
- | |||
* <big>'''make sure current ssh-agent authority is extended'''</big> | * <big>'''make sure current ssh-agent authority is extended'''</big> | ||
ssh -AX wuth@localhost | ssh -AX wuth@localhost | ||
Line 101: | Line 85: | ||
* prints copies for myself | * prints copies for myself | ||
- | * sends | + | * sends membership list (names only) to [[Members:Protocols/Shell H2S/Global Training|Global Training for validation of H2S Alive course registration.]] |
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
d4h-web-interface.py user:pcsard4hbot@pcsar.ca.d4h.org membersImport | d4h-web-interface.py user:pcsard4hbot@pcsar.ca.d4h.org membersImport | ||
Line 115: | Line 93: | ||
wiki-extract | wiki-extract | ||
- | d4h-web-interface.py user:pcsard4hbot@pcsar.ca.d4h.org | + | d4h-web-interface.py user:pcsard4hbot@pcsar.ca.d4h.org exercisesAttendanceImport |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | rapid-notify-post | ||
** sometimes fails at initial log in and has to be restarted | ** sometimes fails at initial log in and has to be restarted | ||
** takes ~65 minutes to run | ** takes ~65 minutes to run | ||
*** see {{subpage|Rapid Notify}} | *** see {{subpage|Rapid Notify}} | ||
- | |||
* To Do: {{rbw|as used}} | * To Do: {{rbw|as used}} | ||
** additional policy checks | ** additional policy checks | ||
Line 158: | Line 131: | ||
=== sync wiki accounts === | === sync wiki accounts === | ||
- | * [http://iweb.castrov.cuug.ab.ca/mediawiki/index.php/Mediawiki#Syncing_user_list sync] the | + | * [http://iweb.castrov.cuug.ab.ca/mediawiki/index.php/Mediawiki#Syncing_user_list sync] the membership list with the wiki user list |
** rename/merge Charlene/Charleen Bruder | ** rename/merge Charlene/Charleen Bruder | ||
** Extract list of users currently with "Member" status | ** Extract list of users currently with "Member" status | ||
Line 226: | Line 199: | ||
--text follows this line-- | --text follows this line-- | ||
Thanks for joining Pincher Creek SAR. Can you please check if I've correctly | Thanks for joining Pincher Creek SAR. Can you please check if I've correctly | ||
- | copied your | + | copied your membership record: |
---cut--- | ---cut--- |