Skip to content

Commit 70328f5

Browse files
Add some student job codes to the exclude job code list (formerly contingent_worker_job_code) (#5)
1 parent adb7aa2 commit 70328f5

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

config/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ settings:
66
upload_host: "upload.lib.berkeley.edu"
77
upload_user: "ssullivan"
88
last_alma_purge: "2023-06-30"
9-
application_version: "1.6.3"
9+
application_version: "1.6.4"
1010

1111
# TODO - flesh this out
1212
# http://docopt.org/

config/ucpath_codes.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ emeritus_job_code:
6060

6161
# Users with these job codes are NOT eligible and are skipped
6262
# AP-402: Added codes
63-
contingent_worker_job_code:
63+
# AP-576 & AP-590: Added some student job codes and renamed list
64+
exclude_job_code:
6465
- "CWR005"
6566
- "CWR006"
6667
- "CWR011"
@@ -69,6 +70,10 @@ contingent_worker_job_code:
6970
- "CWR014"
7071
- "CWR019"
7172
- "CWR021"
73+
- "002320"
74+
- "003282"
75+
- "004919"
76+
- "002851"
7277

7378
library_staff_dept_code_prefix:
7479
- "KPADM"

lib/ucpath/user.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,11 @@ def create_user_record
143143
end
144144
end
145145

146-
# CONTINGENT WORKER CHECK
146+
# EXCLUDE JOB CODE CHECK
147147
# AP-361: Thou Shalt not pass if the user has a Contingent Worker Job Code!
148-
if job_code && Config.check_ucpath_code('contingent_worker_job_code', job_code)
149-
logger.info "#{id} - Ineligible: Contingent Worker Job Code: #{job_code}"
148+
# AP-576: Change list name and log message since this expanded beyond "contingent workers"
149+
if job_code && Config.check_ucpath_code('exclude_job_code', job_code)
150+
logger.info "#{id} - Ineligible: job code in exclude_job_code list: #{job_code}"
150151
return nil
151152
end
152153

0 commit comments

Comments
 (0)