From 6b916493cb23402165b5aa40f1aa68fe6a58444e Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Mon, 18 Mar 2024 10:39:11 +0100 Subject: [PATCH] change wording on page stats --- app/models/concerns/procedure_stats_concern.rb | 2 +- spec/models/concern/procedure_stats_concern_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/concerns/procedure_stats_concern.rb b/app/models/concerns/procedure_stats_concern.rb index 307982075..6fdacd7d6 100644 --- a/app/models/concerns/procedure_stats_concern.rb +++ b/app/models/concerns/procedure_stats_concern.rb @@ -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] diff --git a/spec/models/concern/procedure_stats_concern_spec.rb b/spec/models/concern/procedure_stats_concern_spec.rb index 74a5fc614..cc3052728 100644 --- a/spec/models/concern/procedure_stats_concern_spec.rb +++ b/spec/models/concern/procedure_stats_concern_spec.rb @@ -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]