Skip to content

Commit

Permalink
clean not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSim committed Nov 20, 2024
1 parent ec2b7ef commit 02812bc
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 159 deletions.
1 change: 1 addition & 0 deletions app/components/instructeurs/cell_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def value
helpers.tags_label(@dossier.labels)
elsif @column.avis?
sum_up_avis(@dossier.avis)
# needed ?
elsif @column.column == 'sva_svr_decision_on'
raise
@column.value(@dossier)
Expand Down
1 change: 0 additions & 1 deletion app/controllers/instructeurs/procedures_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ def show
.page(page)
.per(ITEMS_PER_PAGE)

# @projected_dossiers = DossierProjectionService.project(@filtered_sorted_paginated_ids, procedure_presentation.displayed_columns)
@projected_dossiers = DossierProjectionService.project(@filtered_sorted_paginated_ids, procedure_presentation.displayed_columns)
@disable_checkbox_all = @projected_dossiers.all? { _1.batch_operation_id.present? }

Expand Down
1 change: 0 additions & 1 deletion app/models/column.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def self.find(h_id)

def dossier_column? = false
def champ_column? = false
def projector = ColumnProjectors::StubColumnProjector

private

Expand Down
2 changes: 0 additions & 2 deletions app/models/columns/champ_column.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ def filtered_ids(dossiers, search_terms)

def champ_column? = true

def projector = ColumnProjectors::ChampColumnProjector

private

def column_id = "type_de_champ/#{stable_id}"
Expand Down
2 changes: 0 additions & 2 deletions app/models/columns/dossier_column.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ def value(dossier)
end

def dossier_column? = true

def projector = ColumnProjectors::DossierColumnProjector
end
31 changes: 0 additions & 31 deletions app/services/column_projectors/champ_column_projector.rb

This file was deleted.

110 changes: 0 additions & 110 deletions app/services/column_projectors/dossier_column_projector.rb

This file was deleted.

9 changes: 0 additions & 9 deletions app/services/column_projectors/stub_column_projector.rb

This file was deleted.

3 changes: 0 additions & 3 deletions app/services/dossier_projection_service.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# frozen_string_literal: true

class DossierProjectionService
class DossierProjection < Struct.new(:dossier, :columns)
end

def self.project(dossier_ids, columns)
to_include = columns.map(&:table).uniq.map(&:to_sym).map do |sym|
case sym
Expand Down

0 comments on commit 02812bc

Please sign in to comment.