misc: configure agenda data sources to notify errors (#56734) #918

Merged
fpeters merged 1 commits from wip/56734-notify-agenda-data-sources-errors into main 2023-12-15 09:22:09 +01:00
1 changed files with 2 additions and 0 deletions

View File

@ -1363,6 +1363,8 @@ def build_agenda_datasources(publisher, **kwargs):
datasource.external = 'agenda'
datasource.data_source = {'type': 'json', 'value': url}
datasource.external_status = None # reset
datasource.record_on_errors = False # those will be internal publik errors
datasource.notify_on_errors = True # that should be notified to sysadmins.
Review

Comme il s'agit d'erreurs sur lesquelles l'admin fonctionnel ne pourrait de toute façon rien faire, je pose ça ainsi.

Comme il s'agit d'erreurs sur lesquelles l'admin fonctionnel ne pourrait de toute façon rien faire, je pose ça ainsi.
datasource.name = agenda['text']
datasource.store()
# maintain caches