diff --git a/awx/api/views.py b/awx/api/views.py index 7a82408401..66980e141d 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -954,15 +954,6 @@ class ProjectList(ListCreateAPIView): ) return projects_qs - def get(self, request, *args, **kwargs): - # Not optimal, but make sure the project status and last_updated fields - # are up to date here... - projects_qs = Project.objects - projects_qs = projects_qs.select_related('current_job', 'last_job') - for project in projects_qs: - project._set_status_and_last_job_run() - return super(ProjectList, self).get(request, *args, **kwargs) - class ProjectDetail(RetrieveUpdateDestroyAPIView): model = Project diff --git a/awx/main/models/projects.py b/awx/main/models/projects.py index 1e007a7125..9888afaaa7 100644 --- a/awx/main/models/projects.py +++ b/awx/main/models/projects.py @@ -318,10 +318,6 @@ class Project(UnifiedJobTemplate, ProjectOptions, ResourceMixin): # inherit the child job status on failure elif self.last_job_failed: return self.last_job.status - # Even on a successful child run, a missing project path overides - # the successful status - elif not self.get_project_path(): - return 'missing' # Return the successful status else: return self.last_job.status