Project

General

Profile

Actions

Bug #28634

closed

Task search query returns results with null ids

Added by James Jeffers over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

While investigating https://bugzilla.redhat.com/show_bug.cgi?id=1782593 (task monitor page links broken) we noticed that the ids of the links were NULL.

Looking into the foreman-tasks api/tasks_controller it appears that the "ordering_scope" scope method returns a result set with task ids as NULLs.

The Rails AR .select method in question:

https://github.com/theforeman/foreman-tasks/blob/3b675d426e8899d57fd937a7a427f94a05fd4952/app/controllers/foreman_tasks/api/tasks_controller.rb#L243

Actions #1

Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to James Jeffers
  • Pull request https://github.com/theforeman/foreman-tasks/pull/493 added
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases foreman-tasks-1.0.1 added
Actions #3

Updated by Anonymous over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF