# Implementation AGILE-302 - Do not carry the filter state in all the backlog urls

Project: Stream agile
Status: closed
URL: https://community.openproject.org/work_packages/AGILE-302

## OPEN POINTS

_No work packages_

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Designer |  |
| Developers | Attila Dombi |

## Technical details

| Attribute | Value |
| --- | --- |
| Target versions | 17.7.0 |
| Module |  |
| Requires doc change | No |

## Belongs to

_No work packages_

## Previous chunks

_No work packages_

## Next chunks

| ID | Subject | Status | Assignee |
| --- | --- | --- | --- |
| AGILE-309 | Improve dragging experience with the separate frame reload request | closed |  |

## Estimates

| Attribute | Value |
| --- | --- |
| Effort (shirt size) |  |
| Work |  |

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| % Complete | 100% |
| Category |  |
| Sprint | Sprint 5 |
| Backlog bucket |  |
| Priority | Medium |
| List |  |
| Pull preview |  |
| Labels |  |

## Description

In order to always render the correct state after actions on the backlogs page, the filter state params are passed in the url for each action. This implementation has a few shortcomings:

  - Prevents the WorkPackageCardComponents to be cacheable, because the component's urls also encode the filter params that can change on the fly.

  - It adds a layer of complexity by passing the filter params to each url and action on the page.

The solution for both issues is to avoid passing the filter params around.

This can be achieved via changing the controller actions behaviour to not update every component that's changed, but rather just send a signal to the frontend to update itself.

The TurboPower gem provides a custom turbo StreamAction called `turbo_stream.turbo_frame_reload(target)` that can solve this exact problem.

An additional benefit of this approach is that, it greatly DRYes up the controller actions too. Instead of building and sending all the updated components from each action, the response just sends a message to the frontend to update itself.

<br>
