Add Api Service, Collection and Endpoint in reindex app (#17527)

* Add Api Service and Collection and Endpoint

* Keep SearchIndexing as false by Default
This commit is contained in:
Mohit Yadav 2024-08-21 16:26:50 +05:30 committed by GitHub
parent 5133c31d31
commit 9309cf94c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 19 additions and 4 deletions

View File

@ -303,3 +303,9 @@ ALTER TABLE automations_workflow
ADD COLUMN workflowType VARCHAR(256) GENERATED ALWAYS AS (json ->> '$.workflowType') STORED NOT NULL;
ALTER TABLE entity_extension ADD INDEX extension_index(extension);
-- Remove SearchIndexing for api Service, collection and endpoint
DELETE er FROM entity_relationship er JOIN installed_apps ia ON er.fromId = ia.id OR er.toId = ia.id WHERE ia.name = 'SearchIndexingApplication';
DELETE er FROM entity_relationship er JOIN apps_marketplace ia ON er.fromId = ia.id OR er.toId = ia.id WHERE ia.name = 'SearchIndexingApplication';
DELETE from installed_apps where name = 'SearchIndexingApplication';
DELETE from apps_marketplace where name = 'SearchIndexingApplication';

View File

@ -275,3 +275,9 @@ update table_entity set json = jsonb_set(json#-'{dataModel,owner}', '{dataModel,
jsonb_build_array(json#>'{dataModel,owner}')) where json #>> '{dataModel,owner}' is not null;
CREATE INDEX IF NOT EXISTS extension_index ON entity_extension (extension);
-- Remove SearchIndexing for api Service, collection and endpoint
DELETE er FROM entity_relationship er JOIN installed_apps ia ON er.fromId = ia.id OR er.toId = ia.id WHERE ia.name = 'SearchIndexingApplication';
DELETE er FROM entity_relationship er JOIN apps_marketplace ia ON er.fromId = ia.id OR er.toId = ia.id WHERE ia.name = 'SearchIndexingApplication';
DELETE from installed_apps where name = 'SearchIndexingApplication';
DELETE from apps_marketplace where name = 'SearchIndexingApplication';

View File

@ -89,7 +89,10 @@ public class SearchIndexApp extends AbstractNativeApplication {
"domain",
"storedProcedure",
"storageService",
"testCaseResolutionStatus");
"testCaseResolutionStatus",
"apiService",
"apiEndpoint",
"apiCollection");
public static final Set<String> TIME_SERIES_ENTITIES =
Set.of(
ReportData.ReportDataType.ENTITY_REPORT_DATA.value(),

View File

@ -43,7 +43,7 @@
"apiEndpoint",
"apiCollection"
],
"recreateIndex": true,
"recreateIndex": false,
"batchSize": "100",
"searchIndexMappingLanguage": "EN"
},

View File

@ -57,7 +57,7 @@
"apiEndpoint",
"apiCollection"
],
"recreateIndex": true,
"recreateIndex": false,
"batchSize": "100",
"searchIndexMappingLanguage": "EN"
}

View File

@ -65,7 +65,7 @@
"recreateIndex": {
"title": "Recreate Indexes",
"type": "boolean",
"default": true
"default": false
},
"searchIndexMappingLanguage": {
"description": "Recreate Indexes with updated Language",