Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
109 stars 73 forks source link

Adding and immediately removing tasks that have connected layoutSets will not delete layoutSet due to stale cache #13035

Open standeren opened 4 days ago

standeren commented 4 days ago

Description

When adding and immediately removing tasks that have connected layoutSets will not delete the related layoutSet due to the cache not being updated with the new layoutSets after adding the task.

We should use sync events on the layout-sets endpoints as well to send a notification that the cache with the layoutsets query key and the particular layoutset query key must be invalidated when adding/removing layoutsets.