Subject: | Purge User data for Recruitment users as this clutters up the user forms and slows down the system for smaller systems |
Summary: | Bula Sanjay The below queries has been raised by some companies who use the Recruitment module: Delete Recruitment user attachments after a specific period Delete Recruitment users who have not logged in for a specific period
Details: - Delete Recruitment user attachments after a specific period - Clients have advised that they would like maintenance of this so that they can delete (permanently remove) the “Recruitment user attachments” after a specific period.
- Delete Recruitment users who have not logged in for a specific period - Clients have advised that they would like maintenance of this so that they can delete (permanently remove) the “Recruitment users” who have not logged in for a specific period
------------------------------------------------------------------------------------------------------------------------------------------------------ To facilitate this currently, we are requesting if we can get a script to delete Recruitment user attachments after a specific period and delete Recruitment users who have not logged in for a specific period Regards Aarti Gayaneshwar |
Audit Notes: | Edited by sanjay on 18/02/22 10:15. Edited by sanjay on 31/01/22 14:33. Edited by sanjay on 25/01/22 13:51. Edited by sanjay on 18/01/22 16:00. Edited by sanjay on 06/01/22 12:37. Edited by sanjay on 23/11/21 09:19. Edited by aarti on 17/11/21 08:54. |
23 Nov 2021 | 09:19AM Comment 1 by Sanjay (Link Technologies) Case L12640 added to project 13.30 |
23 Nov 2021 | 09:20AM Comment 2 by Sanjay (Link Technologies) Assigned To: Development Followup Date: 28-02-2021 01:19 PM Time Taken: 2.00 Notes: ETC extended from: 13/11/2021 to 28/02/2021 |
| Hi Aarti, I have pencilled this in for 13.30 and will add this as a scheduled Purge process. |
|
06 Jan 2022 | 12:37PM Comment 3 by Sanjay (Link Technologies) ETC was changed from 28/02/2021 to 28/02/2021 |
31 Jan 2022 | 04:11PM Comment 4 by Sanjay (Link Technologies) Assigned To: Development Followup Date: 31-01-2022 06:33 PM Time Taken: 16.00 |
| Development Journal: - Added Purge Data Process Rule "SYS004.UserCleanup.InactiveDays"
- Added Process Rule Module Configuration "PurgeRecruitmentData" to allow users to define if Recruitment data should be purged
- Created Procedure to purge date
Next step: - Get the list of users to purge
- Mark them as Inactive
- Delete RM data defined by configuration
|
|
01 Feb 2022 | 09:47AM Comment 5 by Sanjay (Link Technologies) Assigned To: Development Followup Date: 01-02-2022 01:34 PM Time Taken: 26.00 |
| PART A - Development work for this case has been completed. 1. The change will be available in version: 13.30 2. The following changes were made(Include Database object names, Program classes, and any other relevant information): - Added Process Rule to SYS004 Named: SYS004.UserCleanup.InactiveDays. Default to 365 Inactive Days
- Added Process Rule OPTION to "Purge Recruitment Data" - Default to "N"
- The following users will not be purged:
- Username "Admin" or "Administrator"
- Users in roles where the Role Name is like "administrator"
- The following users will be purged:
- Users that have been INACTIVE for more than "N" days defined in PART A 2.1 above
- When we purge a user, we do the following:
- Make the user NOT APPROVED
- Remove the Employee, Organisation and Rate from the User Account
- Remove all roles for the user
- Remove the user from all workflows
- DELETE Notes, Attachments, Comments, User-defined fields
- When the option to remove Recruitment Management data is Enabled, we DELETE the following for the user:
- Education
- Skill
- Member
- Licence
- Memo
- Reference
3. Affected Areas: - Purge Process - SY004
4. The issue was caused by: - Cleanup and Maintenance improvements
5. Other Relevant Notes: 6. Next Step (Review and System Test (Developer) -> UAT (Quality) -> Documentation): UAT
|
|
08 Feb 2022 | 02:45PM Comment 6 by Sanjay (Link Technologies) Assigned To: Development Followup Date: 08-02-2022 06:39 PM Time Taken: 12.00 |
|
The following tests were performed: Table 1 - Test Results
No | Test Case | Expected Result | Pass/Fail | Comments | 1 | Setup a user with Last Activity Date 10 days from today. The user should NOT be in the Administrator role. Run Purge
| The user should be marked Inactive and all roles removed.
| Pass
|
| 2 | Setup a user with Last Activity Date 10 days from today. The user should be in the Administrator role. Run Purge
| User should NOT be deleted as it is in the Administrator Role
| Pass
|
| 3 | Setup 1 again and add data in all recruitment fields. Set Purge RM data to Yes. Run Purge
| The user should be marked Inactive and all roles removed. RM data should be removed.
| Pass
|
| 4 | Setup 2 again and add data in all recruitment fields. Set Purge RM data to Yes. Run Purge
| No data should delete as the user is in an Administrator role
| Pass
|
| 5 | Disable Purge RM data and repeat 1 to 4 above. Run Purge Data
| Same results as above except that Purge RM data should comply
| Pass
|
| Environment Details - OS version: Win10
- Application version: 13.30
- Setup on:
- Server: LinkQA4
- Database: LinkSOFT
- LinkSOFT URL: HTTP://LinkQA4/LinkSOFT
- Login Details: Standard username and password for user "admin"
Next Step: Closure
|
|