[jobs-api] refactor before moving jobs load to backend
- add
to_job
function toNewJob
model that converts aNewJob
instance toJob
instance. - create
tjf/quota.py
file with a newQuota
model implementation to be used inruntime.py
instead
of usingtjf/api/models.py
Quota model. - refactor out
get_cron_unique_seed
inruntime.py
. - refactor
tjf/api/jobs.py
andtjf/api/quota.py
to make use of the new changes to models.py - fix tests
Bug: T366209
Bug: T359804
Signed-off-by: Ndibe Raymond Olisaemeka rolisaemeka-ctr@wikimedia.org
Edited by Raymond Ndibe