From 42cb138166c1765154f52f3c12df1ed8ea1bc7d2 Mon Sep 17 00:00:00 2001 From: Noah Overcash Date: Fri, 2 Aug 2024 10:30:31 -0400 Subject: [PATCH] [MODFQMMGR-389] Add missing migration warnings (#344) * Add missing migration warnings * add new api param --- .../folio/fqm/resource/EntityTypeController.java | 2 +- translations/mod-fqm-manager/en.json | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/folio/fqm/resource/EntityTypeController.java b/src/main/java/org/folio/fqm/resource/EntityTypeController.java index 7d1268cd..0d13aec1 100644 --- a/src/main/java/org/folio/fqm/resource/EntityTypeController.java +++ b/src/main/java/org/folio/fqm/resource/EntityTypeController.java @@ -23,7 +23,7 @@ public class EntityTypeController implements org.folio.fqm.resource.EntityTypesA @EntityTypePermissionsRequired @Override - public ResponseEntity getEntityType(UUID entityTypeId) { + public ResponseEntity getEntityType(UUID entityTypeId, Boolean includeHidden) { return ResponseEntity.ok(entityTypeService.getEntityTypeDefinition(entityTypeId)); } diff --git a/translations/mod-fqm-manager/en.json b/translations/mod-fqm-manager/en.json index 09f07b73..1d9222f1 100644 --- a/translations/mod-fqm-manager/en.json +++ b/translations/mod-fqm-manager/en.json @@ -1491,5 +1491,16 @@ "entityType.composite_purchase_order_lines.rates": "Exchange rate", "entityType.composite_purchase_order_lines.pol_exchange_rate": "POL exchange rate", - "entityType.removed": "Removed" + "entityType.removed": "Removed", + + "migration.warning.DEPRECATED_ENTITY.withAlternative": "Record type {name} is deprecated and will no longer be available in a future release. You may be able to use {alternative} instead.", + "migration.warning.DEPRECATED_ENTITY.withoutAlternative": "Record type {name} is deprecated and will no longer be available in a future release.", + "migration.warning.DEPRECATED_FIELD.field": "Field {name} is deprecated and will no longer be available in a future release.", + "migration.warning.DEPRECATED_FIELD.query": "Field {name}, used in your query, is deprecated and will no longer be available in a future release.", + "migration.warning.QUERY_BREAKING.withAlternative": "Field {name} is no longer supported in your query. You may be able to use {alternative} instead. For reference, your original query was {fql}.", + "migration.warning.QUERY_BREAKING.withoutAlternative": "Field {name} is no longer supported in your query. For reference, your original query was {fql}.", + "migration.warning.REMOVED_ENTITY.withAlternative": "Record type {name} is no longer available. You may be able to use {alternative} instead. For reference, your original query was {fql}.", + "migration.warning.REMOVED_ENTITY.withoutAlternative": "Record type {name} is no longer available. For reference, your original query was {fql}.", + "migration.warning.REMOVED_FIELD.withAlternative": "Field {name} is no longer available. You may be able to use {alternative} instead. For reference, your original query was {fql}.", + "migration.warning.REMOVED_FIELD.withoutAlternative": "Field {name} is no longer available. You may be able to use {alternative} instead. For reference, your original query was {fql}." }