Skip to content

Some query parameters for searches in the Reporting Dashboard cause the view to render twice #804

@n-devr

Description

@n-devr

Description

When searching with fields that have a space in their value on the reporting dashboard the view is rendered twice. This causes the data to be requested twice, which creates unnecessary strain on the server and could lead to memory quota issues and crashes when searching for large datasets. Behavior occurs across all reports.

Steps to Reproduce

  1. Go to the reporting dashboard
  2. Click on Inquiry Report
  3. Select any fiscal year button
  4. Hit search
  5. Note that there is a single XHR request made to get Inquiry data
  6. Select 'Family' from the Inquirer dropdown
  7. Hit search
  8. Note that there is a single XHR request made to get Inquiry data
  9. Select either 'Site Visitor' or 'Social Worker' from the Inquirer dropdown
  10. Hit search
  11. Note that there are two simultaneous and identical XHR requests made to get Inquiry data

Expected Behavior

The view should only render once when searching for data.

Actual Behavior

In some cases, the view renders twice, causing the report data to be fetched twice.

Metadata

Metadata

Assignees

Labels

buga bug discovered in the production systemreportsadding or adjusting reports

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions