Skip to content

Commit

Permalink
Nomis alert comment (#2248)
Browse files Browse the repository at this point in the history
* MAP-1038 rename FlightDetails -> ExtradtionFlight

* MAP-1038 Fix db migration

* Update spec/requests/api/extradition_flight_controller_update_spec.rb

Co-authored-by: Adam Sharp <adam.sharp@digital.justice.gov.uk>

* Update app/controllers/api/extradition_flight_controller.rb

Co-authored-by: Adam Sharp <adam.sharp@digital.justice.gov.uk>

* MAP-1038 Fix missed renames

* MAP-1038 Linting

* MAP-1038 Typos

* MAP-1038 revert create! -> new and save

* MAP-1038 datetime -> string column type

* MAP-1038 Fix table name in spec

* MAP-1038 Simplify extraditionFlight create

* comment -> comments

* Update test expectation

---------

Co-authored-by: Adam Sharp <adam.sharp@digital.justice.gov.uk>
  • Loading branch information
danbenton-mojdt and Thource committed May 14, 2024
1 parent 92db67c commit ff2cf7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/lib/nomis_client/alerts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def attributes_for(alert)
alert_type_description: alert['alertTypeDescription'],
alert_code: alert['alertCode'],
alert_code_description: alert['alertCodeDescription'],
comment: alert['comment'],
comments: alert['comment'],
created_at: alert['dateCreated'],
expires_at: alert['dateExpires'],
expired: alert['expired'],
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/nomis_client/alerts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
alert_type_description: 'Security',
alert_code: 'XVL',
alert_code_description: 'Violent',
comment: 'SIR GP162/11 17/01/11 - threatening to take staff hostage',
comments: 'SIR GP162/11 17/01/11 - threatening to take staff hostage',
created_at: '2013-03-29',
expires_at: '2018-06-08',
expired: true,
Expand All @@ -27,7 +27,7 @@
alert_type_description: 'Security',
alert_code: 'XB',
alert_code_description: 'Bully',
comment: 'PLACED ON ZT2 MONITORING FOR THREATS TO ASSAULT HIS ASSAILANTS.',
comments: 'PLACED ON ZT2 MONITORING FOR THREATS TO ASSAULT HIS ASSAILANTS.',
created_at: '2015-11-21',
expires_at: '2019-01-07',
expired: false,
Expand Down

0 comments on commit ff2cf7f

Please sign in to comment.