[Fix #503] Dossier: Remove waiting for user scope
This commit is contained in:
parent
3a77822241
commit
460cd3e237
4 changed files with 0 additions and 17 deletions
|
@ -36,10 +36,6 @@ class AdminProceduresShowFacades
|
|||
dossiers.waiting_for_gestionnaire.size
|
||||
end
|
||||
|
||||
def dossiers_waiting_user_total
|
||||
dossiers.waiting_for_user.size
|
||||
end
|
||||
|
||||
def dossiers_termine_total
|
||||
dossiers.where(state: :termine).size
|
||||
end
|
||||
|
|
|
@ -14,7 +14,6 @@ class Dossier < ActiveRecord::Base
|
|||
NOUVEAUX = %w(initiated)
|
||||
OUVERT = %w(updated replied)
|
||||
WAITING_FOR_GESTIONNAIRE = %w(updated)
|
||||
WAITING_FOR_USER = %w(replied)
|
||||
EN_CONSTRUCTION = %w(initiated updated replied)
|
||||
EN_INSTRUCTION = %w(received)
|
||||
EN_CONSTRUCTION_OU_INSTRUCTION = EN_CONSTRUCTION + EN_INSTRUCTION
|
||||
|
@ -52,7 +51,6 @@ class Dossier < ActiveRecord::Base
|
|||
scope :state_nouveaux, -> { where(state: NOUVEAUX) }
|
||||
scope :state_ouvert, -> { where(state: OUVERT) }
|
||||
scope :state_waiting_for_gestionnaire, -> { where(state: WAITING_FOR_GESTIONNAIRE) }
|
||||
scope :state_waiting_for_user, -> { where(state: WAITING_FOR_USER) }
|
||||
scope :state_en_construction, -> { where(state: EN_CONSTRUCTION) }
|
||||
scope :state_en_instruction, -> { where(state: EN_INSTRUCTION) }
|
||||
scope :state_en_construction_ou_instruction, -> { where(state: EN_CONSTRUCTION_OU_INSTRUCTION) }
|
||||
|
@ -68,7 +66,6 @@ class Dossier < ActiveRecord::Base
|
|||
scope :nouveaux, -> { not_archived.state_nouveaux.order_by_updated_at(:asc) }
|
||||
scope :ouvert, -> { not_archived.state_ouvert.order_by_updated_at(:asc) }
|
||||
scope :waiting_for_gestionnaire, -> { not_archived.state_waiting_for_gestionnaire.order_by_updated_at(:asc) }
|
||||
scope :waiting_for_user, -> { not_archived.state_waiting_for_user.order_by_updated_at(:asc) }
|
||||
scope :a_instruire, -> { not_archived.state_a_instruire.order_by_updated_at(:asc) }
|
||||
scope :termine, -> { not_archived.state_termine.order_by_updated_at(:asc) }
|
||||
scope :downloadable, -> { state_not_brouillon.order_by_updated_at(:asc) }
|
||||
|
|
|
@ -102,10 +102,6 @@
|
|||
%div
|
||||
= @facade.dossiers_waiting_gestionnaire_total
|
||||
|
||||
%h4.text-info Attente Usager
|
||||
%div
|
||||
= @facade.dossiers_waiting_user_total
|
||||
|
||||
%h4.text-success Terminé
|
||||
%div
|
||||
= @facade.dossiers_termine_total
|
||||
|
|
|
@ -56,12 +56,6 @@ describe AdminProceduresShowFacades do
|
|||
it { is_expected.to eq(1) }
|
||||
end
|
||||
|
||||
describe 'dossiers_waiting_user_total' do
|
||||
subject { super().dossiers_waiting_user_total }
|
||||
|
||||
it { is_expected.to eq(1) }
|
||||
end
|
||||
|
||||
describe 'dossiers_termine_total' do
|
||||
subject { super().dossiers_termine_total }
|
||||
|
||||
|
|
Loading…
Reference in a new issue