From 707df4ecc21630fd2a6cf7833419d9eaf2c4fdb0 Mon Sep 17 00:00:00 2001 From: Sebastien Colladon Date: Thu, 18 Aug 2022 19:26:03 +0200 Subject: [PATCH 1/2] feat: add big object index support --- src/metadata/a48.json | 7 +++++++ src/metadata/v46.json | 7 +++++++ src/metadata/v47.json | 7 +++++++ src/metadata/v49.json | 7 +++++++ src/metadata/v50.json | 7 +++++++ src/metadata/v51.json | 7 +++++++ src/metadata/v52.json | 7 +++++++ src/metadata/v53.json | 7 +++++++ src/metadata/v54.json | 7 +++++++ src/metadata/v55.json | 7 +++++++ src/service/typeHandlerFactory.js | 1 + src/utils/metadataConstants.js | 1 + 12 files changed, 72 insertions(+) diff --git a/src/metadata/a48.json b/src/metadata/a48.json index f8cf89f4..08e6ed0b 100644 --- a/src/metadata/a48.json +++ b/src/metadata/a48.json @@ -185,6 +185,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v46.json b/src/metadata/v46.json index 38b0ed4a..4e5b4aa7 100644 --- a/src/metadata/v46.json +++ b/src/metadata/v46.json @@ -178,6 +178,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v47.json b/src/metadata/v47.json index 104a293e..4270d9c8 100644 --- a/src/metadata/v47.json +++ b/src/metadata/v47.json @@ -185,6 +185,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v49.json b/src/metadata/v49.json index b8a6c7ed..4dd4f4ab 100644 --- a/src/metadata/v49.json +++ b/src/metadata/v49.json @@ -185,6 +185,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v50.json b/src/metadata/v50.json index b8a6c7ed..4dd4f4ab 100644 --- a/src/metadata/v50.json +++ b/src/metadata/v50.json @@ -185,6 +185,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v51.json b/src/metadata/v51.json index aa8bd28c..71e20d25 100644 --- a/src/metadata/v51.json +++ b/src/metadata/v51.json @@ -192,6 +192,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v52.json b/src/metadata/v52.json index ed39ddb5..88660a41 100644 --- a/src/metadata/v52.json +++ b/src/metadata/v52.json @@ -192,6 +192,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v53.json b/src/metadata/v53.json index ed39ddb5..88660a41 100644 --- a/src/metadata/v53.json +++ b/src/metadata/v53.json @@ -192,6 +192,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v54.json b/src/metadata/v54.json index ed39ddb5..88660a41 100644 --- a/src/metadata/v54.json +++ b/src/metadata/v54.json @@ -192,6 +192,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/metadata/v55.json b/src/metadata/v55.json index b1d4341c..bdfae4d3 100644 --- a/src/metadata/v55.json +++ b/src/metadata/v55.json @@ -192,6 +192,13 @@ "suffix": "fieldSet", "xmlName": "FieldSet" }, + { + "directoryName": "indexes", + "inFolder": false, + "metaFile": false, + "suffix": "index", + "xmlName": "Index" + }, { "directoryName": "listViews", "inFolder": false, diff --git a/src/service/typeHandlerFactory.js b/src/service/typeHandlerFactory.js index 27b1f58e..4264b9c0 100644 --- a/src/service/typeHandlerFactory.js +++ b/src/service/typeHandlerFactory.js @@ -23,6 +23,7 @@ const classes = { experiences: InResource, fieldSets: SubCustomObject, fields: SubCustomObject, + indexes: SubCustomObject, labels: InFile, listViews: SubCustomObject, lwc: InResource, diff --git a/src/utils/metadataConstants.js b/src/utils/metadataConstants.js index 3144e531..c001e79b 100644 --- a/src/utils/metadataConstants.js +++ b/src/utils/metadataConstants.js @@ -15,6 +15,7 @@ const SUB_OBJECT_TYPES = [ 'compactLayouts', 'fieldSets', 'fields', + 'indexes', 'listViews', 'recordTypes', 'rules', From f207f73af551dda35e9892a702b31ba5457ca829 Mon Sep 17 00:00:00 2001 From: Sebastien Colladon Date: Thu, 18 Aug 2022 19:36:24 +0200 Subject: [PATCH 2/2] test: add integration test --- __tests__/unit/lib/service/subCustomObjectHandler.test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/__tests__/unit/lib/service/subCustomObjectHandler.test.js b/__tests__/unit/lib/service/subCustomObjectHandler.test.js index 19ce674c..06e9743e 100644 --- a/__tests__/unit/lib/service/subCustomObjectHandler.test.js +++ b/__tests__/unit/lib/service/subCustomObjectHandler.test.js @@ -11,6 +11,11 @@ const testContext = { 'force-app/main/default/objects/Account/fields/awesome.field-meta.xml', new Set(['Account.awesome']), ], + [ + 'indexes', + 'force-app/main/default/objects/Account/indexes/awesome.index-meta.xml', + new Set(['Account.awesome']), + ], [ 'rules', 'force-app/main/default/territory2Models/EU/rules/Location.territory2Rule-meta.xml',