opencrvs / opencrvs-core

A global solution to civil registration
https://www.opencrvs.org
Other
79 stars 58 forks source link

fix: advanced search refetch queries not matching the searched ones #7296

Closed naftis closed 5 hours ago

naftis commented 1 day ago

#6118

I noticed the refetch queries were a bit random compared to the ones actually being searched. I updated them to match each other. After this deployment, I couldn't reproduce the unassignment issue on development.

As I couldn't reproduce this locally, but only on farajaland-dev, I think it could be worth deploying this to QA and trying it.

naftis commented 1 day ago

This seems to not have fixed the issue yet. I can see the refetch query not firing sometimes after the

mutation submitMutation($id: String!) {\n  markEventAsUnassigned(id: $id)\n}\n

is called. When the assignment is properly updated, the searchEvents is always fired.

naftis commented 1 day ago

After the latest commit 6a1a4b8, cannot reproduce this anymore on farajaland-dev.

https://github.com/opencrvs/opencrvs-core/assets/1322608/5c72c0c2-323c-419b-8e52-46cb36061441