Orcasa-Platform / orcasa

A Horizon Europe project to restore soil earth
https://orcasa-client.vercel.app
MIT License
2 stars 0 forks source link

[Practices] Address an issue where practices for which the main intervention is “None” would be excluded from the default view #290

Closed clementprdhomme closed 6 months ago

clementprdhomme commented 6 months ago

This PR fixes an issue where filters would be applied by default on the Practices module, making the total count of practices different from the one shown on the homepage.

This PR complements https://github.com/Orcasa-Platform/orcasa/pull/288 after which the main test case was still not passing.

Testing instructions

Steps to reproduce

  1. Open the Practices module

Result

The query to fetch the practices filter them by main intervention: practice_intervention = Management OR practice_intervention = Land Use Change. This excludes practices for which there is no main intervention.

Expected result

The query to fetch the practices does not filter by main intervention, which means that practices without one are shown by default.

Tracking

ORC-628

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
orcasa-client ✅ Ready (Inspect) Visit Preview Apr 18, 2024 8:14am