Skip to content

Commit

Permalink
Updates to checking the status of User List and Side Loads indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnoble73 committed Apr 11, 2024
1 parent 4f35cc9 commit bb420c4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/web/release_notes/24.04.00.MD
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
- Remove stray ` mark in advanced search screen and correct spacing between predefined year ranges. (Ticket 130176) (*MDN*)
- Correct adding new one to many properties to hide options that should not be visible in lists. (*MDN*)
- Correct message when no holds can be frozen or thawed to show the proper alert style. (Ticket 127582) (*MDN*)
- Updates to checking the status of User List and Side Loads indexing. (*MDN*)

## This release includes code contributions from
- ByWater Solutions
Expand Down
4 changes: 3 additions & 1 deletion code/web/services/API/SearchAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,11 @@ function getIndexStatus() {
} elseif (empty($sideLoadLogEntry->endTime)){
$sideloadIndexNote .= $sideload->name . ' has not finished indexing on the last 2 tries<br/>';
}
} else {
} else if ($sideload->lastUpdateOfAllRecords == null && $sideload->lastUpdateOfChangedRecords == null){
$sideloadIndexNote .= $sideload->name . ' has never finished indexing<br/>';
}
}elseif ($sideLoadLogEntry->startTime < time() - 24 * 60 * 60){
$sideloadIndexNote .= $sideload->name . ' has been indexing for more than 24 hours<br/>';
}
}else{
if ($sideload->lastUpdateOfAllRecords == null && $sideload->lastUpdateOfChangedRecords == null){
Expand Down
9 changes: 9 additions & 0 deletions code/web/sys/DBMaintenance/version_updates/24.04.00.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ function getUpdates24_04_00(): array {
'ALTER TABLE sideload_scopes DROP COLUMN restrictToChildrensMaterial',
]
], //sideload_restrict_scopes_by_audience
'update_user_list_module_log_settings' => [
'title' => 'Update User List Module Log Settings',
'description' => 'Update User List Module Log Settings',
'continueOnError' => false,
'sql' => [
"UPDATE modules set logClassPath = '/sys/UserLists/ListIndexingLogEntry.php', logClassName='ListIndexingLogEntry', settingsClassPath = '/sys/UserLists/ListIndexingSettings.php', settingsClassName = 'ListIndexingSettings' where name = 'User Lists'",
]
], //update_user_list_module_log_settings


//kirstien - ByWater
'self_check_checkout_location' => [
Expand Down

0 comments on commit bb420c4

Please sign in to comment.