Skip to content

Commit 7e1fb7d

Browse files
committed
chore(dref): Enable and remove skip_fields from dref translation
1 parent f2ac8b6 commit 7e1fb7d

File tree

1 file changed

+0
-97
lines changed

1 file changed

+0
-97
lines changed

dref/translation.py

Lines changed: 0 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -45,35 +45,6 @@ class DrefTO(TranslationOptions):
4545
"communication",
4646
"risk_security_concern",
4747
)
48-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
49-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
50-
skip_fields = (
51-
"ns_request_text",
52-
"dref_recurrent_text",
53-
"lessons_learned",
54-
"child_safeguarding_risk_level",
55-
"event_description",
56-
"anticipatory_actions",
57-
"event_scope",
58-
"national_authorities",
59-
"ifrc",
60-
"icrc",
61-
"partner_national_society",
62-
"un_or_other_actor",
63-
"major_coordination_mechanism",
64-
"identified_gaps",
65-
"people_assisted",
66-
"selection_criteria",
67-
"operation_objective",
68-
"response_strategy",
69-
"human_resource",
70-
"is_volunteer_team_diverse",
71-
"surge_personnel_deployed",
72-
"logistic_capacity_of_ns",
73-
"pmer",
74-
"communication",
75-
"risk_security_concern",
76-
)
7748

7849

7950
@register(DrefFile)
@@ -106,26 +77,6 @@ class DrefFinalReportTO(TranslationOptions):
10677
"national_society_conducted_description",
10778
"financial_report_description",
10879
)
109-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
110-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
111-
skip_fields = (
112-
"event_description",
113-
"anticipatory_actions",
114-
"event_scope",
115-
"ifrc",
116-
"icrc",
117-
"partner_national_society",
118-
"national_authorities",
119-
"un_or_other_actor",
120-
"selection_criteria",
121-
"operation_objective",
122-
"response_strategy",
123-
"major_coordination_mechanism",
124-
"risk_security_concern",
125-
"event_text",
126-
"national_society_conducted_description",
127-
"financial_report_description",
128-
)
12980

13081

13182
@register(DrefOperationalUpdate)
@@ -155,29 +106,6 @@ class DrefOperationalUpdateTO(TranslationOptions):
155106
"pmer",
156107
"communication",
157108
)
158-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
159-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
160-
skip_fields = (
161-
"event_scope",
162-
"ifrc",
163-
"icrc",
164-
"partner_national_society",
165-
"national_authorities",
166-
"un_or_other_actor",
167-
"major_coordination_mechanism",
168-
"people_assisted",
169-
"selection_criteria",
170-
"operation_objective",
171-
"response_strategy",
172-
"risk_security_concern",
173-
"anticipatory_to_response",
174-
"human_resource",
175-
"is_volunteer_team_diverse",
176-
"surge_personnel_deployed",
177-
"logistic_capacity_of_ns",
178-
"pmer",
179-
"communication",
180-
)
181109

182110

183111
@register(IdentifiedNeed)
@@ -186,12 +114,6 @@ class IdentifiedNeedTO(TranslationOptions):
186114
"title",
187115
"description",
188116
)
189-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
190-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
191-
skip_fields = (
192-
"title",
193-
"description",
194-
)
195117

196118

197119
@register(NationalSocietyAction)
@@ -212,24 +134,11 @@ class PlannedInterventionTO(TranslationOptions):
212134
"challenges",
213135
"lessons_learnt",
214136
)
215-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
216-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
217-
skip_fields = (
218-
"title",
219-
"description",
220-
"progress_towards_outcome",
221-
"narrative_description_of_achievements",
222-
"challenges",
223-
"lessons_learnt",
224-
)
225137

226138

227139
@register(PlannedInterventionIndicators)
228140
class PlannedInterventionIndicatorsTO(TranslationOptions):
229141
fields = ("title",)
230-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
231-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
232-
skip_fields = ("title",)
233142

234143

235144
@register(RiskSecurity)
@@ -238,9 +147,3 @@ class RiskSecurityTO(TranslationOptions):
238147
"risk",
239148
"mitigation",
240149
)
241-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
242-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
243-
skip_fields = (
244-
"risk",
245-
"mitigation",
246-
)

0 commit comments

Comments
 (0)