Actions
Defect #31972
closedAn empty group_count badge is displayed when grouped with created_on
Resolution:
Fixed
Affected version:
Description
Reproduction procedure
- Use MySQL
- Time zone data is not loaded
- Change user language from UTC to something else
- Group by created_on at issues/index
When the above conditions are met, the group_count badge will be displayed as empty as shown in the screenshot.
It doesn't matter if group_count is nil because MySQL doesn't get group_count if it doesn't load time zone data.
The problem is that an empty badge is displayed at that time.
Badge should also be hidden if group_count is not successfully acquired(like timelog).
This is a problem with trunk.
Files
Updated by Mizuki ISHIKAWA over 6 years ago
- File fix-31972.patch fix-31972.patch added
I forgot to attach the patch.
Change the same as timelog .
Updated by Go MAEDA 17 days ago
- File 31972-r24407.patch 31972-r24407.patch added
- Category changed from UI to Issues list
- Target version set to 6.0.9
I have updated the patch for the current trunk.
Setting the target version to 6.0.9.
Updated by Marius BĂLTEANU 13 days ago
- Status changed from Closed to Reopened
We should add a test:
def test_index_with_group_by_and_nil_group_count_should_not_render_empty_badge
Issue.generate!(:created_on => '2019-08-29 10:00:00')
IssueQuery.any_instance.stubs(:result_count_by_group).returns(nil)
get(
:index,
:params => {
:set_filter => 1,
:group_by => 'created_on'
}
)
assert_response :success
assert_select 'tr.group' do
assert_select 'span.name'
assert_select 'span.badge-count.count', 0
end
end
Updated by Marius BĂLTEANU 10 days ago
- Status changed from Reopened to Closed
I've committed and merged the test.
Actions