change wording on page stats

This commit is contained in:
Lisa Durand 2024-03-18 10:39:11 +01:00
parent 94f37b6708
commit 6b916493cb
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ module ProcedureStatsConcern
def stats_dossiers_funnel
Rails.cache.fetch("#{cache_key_with_version}/stats_dossiers_funnel", expires_in: 12.hours) do
[
['Démarrés', dossiers.visible_by_user_or_administration.count + nb_dossiers_termines_supprimes],
['Tous (dont brouillon)', dossiers.visible_by_user_or_administration.count + nb_dossiers_termines_supprimes],
['Déposés', dossiers.visible_by_administration.count + nb_dossiers_termines_supprimes],
['Instruction débutée', dossiers.visible_by_administration.state_instruction_commencee.count + nb_dossiers_termines_supprimes],
['Traités', nb_dossiers_termines]

View file

@ -14,7 +14,7 @@ describe ProcedureStatsConcern do
it "returns the funnel stats" do
expect(stats_dossiers_funnel).to match(
[
['Démarrés', procedure.dossiers.visible_by_user_or_administration.count],
['Tous (dont brouillon)', procedure.dossiers.visible_by_user_or_administration.count],
['Déposés', procedure.dossiers.visible_by_administration.count],
['Instruction débutée', procedure.dossiers.visible_by_administration.state_instruction_commencee.count],
['Traités', procedure.dossiers.visible_by_administration.state_termine.count]