Feature(s) impacted
Filters
SmartActions
redirectTo
Observed behavior
- When on a list that we want to filter
- We implemented a smart action with a form that prompts the user for some filter options (city, distance from the city, some roles in an enum)
- The smart action constructs a new url with the filters in the query params
- At the end of the smart action, we call res.send({ redirectTo: url })
- The url is loaded, a request is made and load the correct list according to the filters
- Immediately, another request is made without filters and replaces the correct results with the entire list, ignoring the filters
More info:
- It only happens in Preprod (staging) env and Prod env, not in development. All of these environments have been upgraded to v9
- When you copy the url with filters and open it in a new tab, everything works as expected
Expected behavior
When loading the url with the filters, only the correct request should be called.
Questions
Is our use of redirectTo correct?
Is there a better way to update the filters on a page than calling redirectTo?
Failure Logs
None
Context
- Project name: ClickAndCare
- Team name: ClickAndCare
- Environment name: Preprod
- Agent (forest package) name & version: 9.3
- Database type: PostgreSQL 12
- Recent changes made on your end if any: None