ReportGenerator icon indicating copy to clipboard operation
ReportGenerator copied to clipboard

'Enable filtering' does not seem to work anymore

Open stefantinger opened this issue 8 years ago • 6 comments

Hi!

We are currently using version 3.1.0 for different projects. In one big project/coverage report (Assemblies: 8; Classes: 2367; Files: 2611; Coverable lines: 421381) clicking the 'Enable filtering' button doesn't do anything anymore.

In another project (much smaller) the 'Enable filtering' button will immediately replaced (without clicking it) with the filter controls and is working fine.

stefantinger avatar Jan 12 '18 10:01 stefantinger

Most likely a duplicate of #116 If report contains more than 1500 classes, filtering is disabled and you have to activate it via a button click.

danielpalme avatar Jan 15 '18 12:01 danielpalme

Hi!

If you need a report, i can provide it - but i would need some time to anonymize the data.

Maybe the following info can help you: "If report contains more than 1500 classes, filtering is disabled and you have to activate it via a button click." - yeah, the problem is, the button does not "activate" the filter controls.

I noticed the following: I opened the file directly in the browser (chrome) with "file:///C://<summary_report>.htm" Now when i click the "Enable filtering" button, nothing happens. BUT when i refresh the page now, the filtering controls are visible and work like a charm.

stefantinger avatar Jan 23 '18 16:01 stefantinger

Thanks for the additional hints.

I will try to create a sample report myself. No need to anonymize the data.

danielpalme avatar Jan 23 '18 16:01 danielpalme

We're seeing the same issue after upgrading from 3.0.2 to 3.1.1.

I looked through the code briefly though I am not very familiar with Angular but it seems like the issue may be here:

https://github.com/danielpalme/ReportGenerator/blob/master/src/ReportGenerator.Reporting/Rendering/HtmlRenderer.cs#L274

The button runs enableFiltering() but it looks like the function was renamed to enableCoverageTableFiltering here:

https://github.com/danielpalme/ReportGenerator/commit/33a8fb3dcf09dc4a5d72f391f54b3621660c6185#diff-20a7a8b78a1bc53c929edfc516f42bb3L9

shunter avatar Jan 26 '18 15:01 shunter

@shunter Thanks for your analysis. Will fix that soon.

danielpalme avatar Jan 26 '18 16:01 danielpalme

Fixed in new release: https://www.nuget.org/packages/ReportGenerator/3.1.2

danielpalme avatar Jan 26 '18 19:01 danielpalme