Actions
Defect #31053
closedSome issue fixtures are set inconsistent tracker id which is not available in the project
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Of the test data, issues_005, issues_013 and issues_014 use trackers which should not be available.
[1] pry(main)> Issue.where(id: [5, 13, 14]).select(:id, :project_id, :tracker_id) => [#<Issue:0x00007fdab99315c0 id: 5, tracker_id: 1, project_id: 3>, #<Issue:0x00007fdab9903fa8 id: 13, tracker_id: 1, project_id: 3>, #<Issue:0x00007fdab9903d78 id: 14, tracker_id: 1, project_id: 3>] [2] pry(main)> Project.find(3).tracker_ids # trackers available for project 3 => [2, 3]
After applying the patch:
[1] pry(main)> Issue.where(id: [5, 13, 14]).select(:id, :project_id, :tracker_id) => [#<Issue:0x00007fdab99315c0 id: 5, tracker_id: 1, project_id: 3>, #<Issue:0x00007fdab9903fa8 id: 13, tracker_id: 1, project_id: 3>, #<Issue:0x00007fdab9903d78 id: 14, tracker_id: 1, project_id: 3>] [2] pry(main)> Project.find(3).tracker_ids # trackers available for project 3 => [1, 2, 3]
Files
Updated by Mizuki ISHIKAWA over 5 years ago
I confirmed that all tests were successful after applying the patch.
Updated by Go MAEDA over 5 years ago
- Tracker changed from Patch to Defect
- Subject changed from Fix fixtures with incorrect value to Some issue fixtures are set inconsistent tracker id which is not available in the project
- Status changed from New to Confirmed
- Target version set to 4.1.0
Updated by Go MAEDA over 5 years ago
- Status changed from Confirmed to Closed
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the fix. Thanks.
Actions