Skip to content

Commit

Permalink
NOBUG: Elasticmanager geoshape changes (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
molund authored Oct 10, 2023
1 parent 8c6f570 commit 2e2d7d7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/elasticmanager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const { populateGeoShapes } = require('./scripts/populateGeoShapes');
* (manually triggered via OpenShift terminal)
*/
if (scriptKeySpecified("reindex")) {
await populateGeoShapes();
if (!await parkIndexExists()) {
logger.warn("The Elasticsearch index is missing. It will be recreated.");
await createParkIndex();
Expand All @@ -37,7 +36,6 @@ const { populateGeoShapes } = require('./scripts/populateGeoShapes');
* (manually triggered via OpenShift terminal)
*/
if (scriptKeySpecified("rebuild")) {
await populateGeoShapes();
logger.info("Recreating the park search index and reindexing all protectedAreas")
await deleteParkIndex();
await createParkIndex();
Expand Down Expand Up @@ -73,7 +71,6 @@ const { populateGeoShapes } = require('./scripts/populateGeoShapes');
logger.warn("The Elasticsearch index is missing. It will be recreated.");
await createParkIndex();
}
await populateGeoShapes();
logger.info("Reindexing protectedAreas based on queued-tasks");
// process the queue in the opposite order to the cron job to minimize duplication
await indexParks({ descending: true });
Expand Down

0 comments on commit 2e2d7d7

Please sign in to comment.