Use a single query in dossiers_id_with_notifications (instead of four)
Use a single query in dossiers_id_with_notifications (instead of four)

This is used in /procedures#show and /procedures#index, to display badges on the “suivis” and “traités” tabs of each procedure. Rails cache helps when it’s the exact same query, but it’s not the case for different tabs.

I’m not certain it’ll be a visible performance improvement but it shouldn’t hurt.

sgmap/tps,sgmap/tps,sgmap/tps