Skip to content

Commit

Permalink
[MODFQMMGR-389] Add missing migration warnings (#344)
Browse files Browse the repository at this point in the history
* Add missing migration warnings

* add new api param
  • Loading branch information
ncovercash authored Aug 2, 2024
1 parent 351b93c commit 42cb138
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class EntityTypeController implements org.folio.fqm.resource.EntityTypesA

@EntityTypePermissionsRequired
@Override
public ResponseEntity<EntityType> getEntityType(UUID entityTypeId) {
public ResponseEntity<EntityType> getEntityType(UUID entityTypeId, Boolean includeHidden) {
return ResponseEntity.ok(entityTypeService.getEntityTypeDefinition(entityTypeId));
}

Expand Down
13 changes: 12 additions & 1 deletion translations/mod-fqm-manager/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}."
}

0 comments on commit 42cb138

Please sign in to comment.