-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
746 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
modules/indicia_setup/db/version_8_19_0/202305031156_redundant_indexes.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- Following indexes are duplicates. | ||
DROP INDEX IF EXISTS ix_occurrence_attribute_values_created_by_id; | ||
DROP INDEX IF EXISTS ix_occurrence_attribute_values_updated_by_id; | ||
DROP INDEX IF EXISTS ix_sample_attribute_values_created_by_id; | ||
DROP INDEX IF EXISTS ix_sample_attribute_values_updated_by_id; | ||
DROP INDEX IF EXISTS ix_location_attribute_values_created_by_id; | ||
DROP INDEX IF EXISTS ix_location_attribute_values_updated_by_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
process_checker.php |
56 changes: 56 additions & 0 deletions
56
modules/process_checker/config/process_checker.php.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Example config file for the Process Checker module. | ||
* | ||
* Indicia, the OPAL Online Recording Toolkit. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* any later version. | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/gpl.html. | ||
* | ||
* @author Indicia Team | ||
* @license http://www.gnu.org/licenses/gpl.html GPL | ||
* @link https://github.com/indicia-team/warehouse/ | ||
*/ | ||
|
||
$config['checks'] = [ | ||
'survey2checkOccs' => [ | ||
'website_id' => 1, | ||
'survey_id' => 2, | ||
'start_record_id' => 1000000, | ||
'start_date' => '2023-01-01', | ||
// Ignore records added recently as they may still be being processed. | ||
// Format must be one that is accepted when casting to interval in plpgsql, | ||
// e.g. '2 days'::interval. | ||
'ignore_recent' => '2 days', | ||
'checks' => ['cache_presence', 'cache_absence', 'cache_spatial_index', 'cache_attributes', 'es_presence', 'es_absence'], | ||
// Check entity occurrence or sample. | ||
'entity' => 'occurrence', | ||
'esEndpoint' => 'es', | ||
'esIdPrefix' => 'dev|', | ||
], | ||
'survey2checkSamples' => [ | ||
'website_id' => 1, | ||
'survey_id' => 2, | ||
'start_record_id' => 1000000, | ||
'start_date' => '2023-01-01', | ||
// Ignore records added recently as they may still be being processed. | ||
// Format must be one that is accepted when casting to interval in plpgsql, | ||
// e.g. '2 days'::interval. | ||
'ignore_recent' => '2 days', | ||
'checks' => ['cache_presence', 'cache_absence', 'cache_spatial_index', 'cache_attributes', 'es_presence', 'es_absence'], | ||
// Check entity occurrence or sample. | ||
'entity' => 'sample', | ||
'esEndpoint' => 'es-samples', | ||
'esIdPrefix' => 'dev|', | ||
], | ||
]; |
Oops, something went wrong.