Add private jobs flag to jobs
- Added a migration file to add
is_private
field tojobs
with default value beingfalse
. - Added a
not_private
scope tojob.rb
and chained it withstatus_on
andJob.pending
so that status pages does not includeprivate jobs
. - Chanined
not_private
scope withJob.history
so that package history pages do not includeprivate jobs
. - Added
is_private: false
to query in GET/:user/jobs/?
if unauthorized user or job history is not of logged in user so that private jobs are visible to users who created them. - Added/Updated tests in
spec/debci
for the above.
Edited by Pavit Kaur