Closed BlinkVonDoom closed 4 years ago
/models/users.rb will currently stop execution for syncing users from Humanity if they do not have a start_time or end_time when syncing.
/models/users.rb
start_time
end_time
Steps to reproduce the behavior:
rake sync_humanity_users
Users without start_time || end_time should be skipped and not have the sync stop running.
api returns "value": "" for users without start_time / end_time, we are currently looking for nil https://github.com/inst-support-eng/panda-pto/blob/9887a34e335a86421a1bc4d9daf911528fcd7e56/app/models/user.rb#L123
"value": ""
Description
/models/users.rb
will currently stop execution for syncing users from Humanity if they do not have astart_time
orend_time
when syncing.Steps To Reproduce
Steps to reproduce the behavior:
rake sync_humanity_users
start_time
||end_time
will stop rakeExpected behavior
Users without start_time || end_time should be skipped and not have the sync stop running.
Additional information
api returns
"value": ""
for users without start_time / end_time, we are currently looking for nil https://github.com/inst-support-eng/panda-pto/blob/9887a34e335a86421a1bc4d9daf911528fcd7e56/app/models/user.rb#L123