chore(catalog-backend): apply changes required on code review

* apply changes required on code review;
* rephrase the changeset description to be clearer;

Signed-off-by: Valentin VĂLCIU <axiac.ro@gmail.com>
This commit is contained in:
Valentin VĂLCIU
2024-03-07 10:32:57 +02:00
parent dad018fa7c
commit fe56db5400
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/plugin-catalog-backend': patch
---
Stop failing on stitching when the entity contains deeply nested properties or long keys.
Do not fail on stitching when the entity contains `null` values associated to deeply nested or long keys.
@@ -133,7 +133,7 @@ export function mapToRows(input: Kv[], entityId: string): DbSearchRow[] {
for (const { key: rawKey, value: rawValue } of input) {
const key = rawKey.toLocaleLowerCase('en-US');
if (MAX_KEY_LENGTH < key.length) {
if (key.length > MAX_KEY_LENGTH) {
continue;
}
if (rawValue === undefined || rawValue === null) {