Open fgalan opened 3 weeks ago
Look for FIXME #4611
marks in the code.
registrationsQuery() logic should be changed
A DB migration script would be probably needed.
In this sense a new Rule Rxx should be added to https://github.com/telefonicaid/fiware-orion/tree/master/scripts/oriondb_consistency to detect situations in which contextRegistration
vector has more than one element. The migration could be the autofix action for that rule.
In addition, in the structure:
{
"id": "E1",
"type": "T1",
"isPattern": "false"
},
isPattern
(with a string value) is ugly.
Maybe more natural to use "pattern": true|false
:
Registration documents are this way:
The
contextRegistration
is always mono-item. It is a vector due to NGSIv1 legacy.It would be better to simplify to:
In addition,
isPattern
should be also removed.This issue should be addressed after https://github.com/telefonicaid/fiware-orion/issues/4610 (the
format
field will be removed as part of that issue).A DB migration script would be probably needed.