Merge pull request #10131 from demarches-simplifiees/wording-page-stats-ldu
ETQ instructeur je souhaite mieux comprendre le graph "avancée des dossiers" en changeant le terme "démarrés"
This commit is contained in:
commit
b8cf19337f
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ module ProcedureStatsConcern
|
||||||
def stats_dossiers_funnel
|
def stats_dossiers_funnel
|
||||||
Rails.cache.fetch("#{cache_key_with_version}/stats_dossiers_funnel", expires_in: 12.hours) do
|
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],
|
['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],
|
['Instruction débutée', dossiers.visible_by_administration.state_instruction_commencee.count + nb_dossiers_termines_supprimes],
|
||||||
['Traités', nb_dossiers_termines]
|
['Traités', nb_dossiers_termines]
|
||||||
|
|
|
@ -14,7 +14,7 @@ describe ProcedureStatsConcern do
|
||||||
it "returns the funnel stats" do
|
it "returns the funnel stats" do
|
||||||
expect(stats_dossiers_funnel).to match(
|
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],
|
['Déposés', procedure.dossiers.visible_by_administration.count],
|
||||||
['Instruction débutée', procedure.dossiers.visible_by_administration.state_instruction_commencee.count],
|
['Instruction débutée', procedure.dossiers.visible_by_administration.state_instruction_commencee.count],
|
||||||
['Traités', procedure.dossiers.visible_by_administration.state_termine.count]
|
['Traités', procedure.dossiers.visible_by_administration.state_termine.count]
|
||||||
|
|
Loading…
Reference in a new issue