Skip to content

Commit 25164f0

Browse files
committed
Remove the COJO champ type
1 parent dd46932 commit 25164f0

29 files changed

Lines changed: 8 additions & 370 deletions

File tree

app/components/dossiers/champs_rows_show_component/champs_rows_show_component.html.erb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
<%= render Dossiers::RNFComponent.new(champ:) %>
5656
<% when TypeDeChamp.type_champs.fetch(:epci) %>
5757
<%= render Dossiers::EpciComponent.new(champ:) %>
58-
<% when TypeDeChamp.type_champs.fetch(:cojo) %>
59-
<%= render partial: "shared/champs/cojo/show", locals: { champ: champ, profile: @profile } %>
6058
<% when TypeDeChamp.type_champs.fetch(:date) %>
6159
<% if @profile != 'usager' && champ.prefilled_from_france_connect_information? %>
6260
<%= render Dossiers::DatePrefilledFromFranceConnectComponent.new(champ: champ) %>

app/components/editable_champ/cojo_component.rb

Lines changed: 0 additions & 11 deletions
This file was deleted.

app/components/editable_champ/cojo_component/cojo_component.en.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

app/components/editable_champ/cojo_component/cojo_component.fr.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

app/components/editable_champ/cojo_component/cojo_component.html.haml

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/controllers/concerns/dossier_edit_concern.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def champ_permitted_attributes(scope, not_in_ban:)
9494
[
9595
:id, :value, :value_other, :external_id, :code,
9696
:primary_value, :secondary_value, :piece_justificative_file,
97-
:code_departement, :accreditation_number, :accreditation_birthdate,
97+
:code_departement,
9898
:not_in_ban,
9999
*([:preview_state, :refresh_external_data] if scope == :public),
100100
*(not_in_ban ? [:street_address, :city_name, :country_code, :commune_code, :postal_code] : [:address]),

app/graphql/api/v2/schema.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def self.resolve_type(type_definition, object, ctx)
9595
Types::Champs::Descriptor::CarteChampDescriptorType,
9696
Types::Champs::Descriptor::CheckboxChampDescriptorType,
9797
Types::Champs::Descriptor::CiviliteChampDescriptorType,
98-
Types::Champs::Descriptor::COJOChampDescriptorType,
9998
Types::Champs::Descriptor::CommuneChampDescriptorType,
10099
Types::Champs::Descriptor::DateChampDescriptorType,
101100
Types::Champs::Descriptor::DatetimeChampDescriptorType,

app/graphql/schema.graphql

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -332,34 +332,6 @@ type BooleanColumn implements Column {
332332
value: Boolean
333333
}
334334

335-
type COJOChampDescriptor implements ChampDescriptor {
336-
"""
337-
Description des champs d’un bloc répétable.
338-
"""
339-
champDescriptors: [ChampDescriptor!] @deprecated(reason: "Utilisez le champ `RepetitionChampDescriptor.champ_descriptors` à la place.")
340-
341-
"""
342-
Description du champ.
343-
"""
344-
description: String
345-
id: ID!
346-
347-
"""
348-
Libellé du champ.
349-
"""
350-
label: String!
351-
352-
"""
353-
Est-ce que le champ est obligatoire ?
354-
"""
355-
required: Boolean!
356-
357-
"""
358-
Type de la valeur du champ.
359-
"""
360-
type: TypeDeChamp! @deprecated(reason: "Utilisez le champ `__typename` à la place.")
361-
}
362-
363335
type CarteChamp implements Champ {
364336
"""
365337
L’identifiant du champDescriptor de ce champ
@@ -5536,11 +5508,6 @@ enum TypeDeChamp {
55365508
"""
55375509
civilite
55385510

5539-
"""
5540-
Accréditation Paris 2024
5541-
"""
5542-
cojo
5543-
55445511
"""
55455512
Commune française actuelle
55465513
"""

app/graphql/types/champ_descriptor_type.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ def resolve_type(object, context)
9595
Types::Champs::Descriptor::AnnuaireEducationChampDescriptorType
9696
when TypeDeChamp.type_champs.fetch(:epci)
9797
Types::Champs::Descriptor::EpciChampDescriptorType
98-
when TypeDeChamp.type_champs.fetch(:cojo)
99-
Types::Champs::Descriptor::COJOChampDescriptorType
10098
when TypeDeChamp.type_champs.fetch(:formatted)
10199
Types::Champs::Descriptor::FormattedChampDescriptorType
102100
when TypeDeChamp.type_champs.fetch(:quotient_familial)

app/graphql/types/champs/descriptor/cojo_champ_descriptor_type.rb

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)