Closed cortadocodes closed 4 months ago
Attention: Patch coverage is 93.35260%
with 23 lines
in your changes missing coverage. Please review.
Project coverage is 94.56%. Comparing base (
330ea82
) to head (a21d295
). Report is 27 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary
This release makes major improvements to event handling and question auditing. Some of the main changes are:
Contents (#660)
IMPORTANT: There are 6 breaking changes.
New features
Events
parent_question_uuid
,originator_question_uuid
,originator
andretry_count
event attributesEvent handlers
EventReplayer
to handle question eventsRegisteredTemporaryDirectory
class, use it when downloading datasets, and add ability to delete them at end of analysisEnhancements
Resources
Dataset
Services
name
argument fromService
and provide an SRUID toChild
internal service instead of a nameChild.ask_multiple
order
event attributeChild.ask_multiple
Subscriptions
create_push_subscription
Questions and events
sender
argument fromget_events
and make getting the tail of events the defaultretry_count
attributeget_events
if no events for questionService configuration
delete_local_files
in service configurationoverrides
option toRunner.from_configuration
Other
PYTHONUNBUFFERED
envvar is unsetFixes
Child.ask_multiple
for failed questionsRunner.run
octue get-diagnostics
get_events
Child.ask_multiple
max_workers
when CPU count is indeterminatedelete_local_files
by defaultOperations
Dependencies
Sphinx
and other docs package rangesdb-dtypes
packagegoogle-cloud-bigquery
a mandatory dependencygoogle-cloud-secret-manager
Refactoring
Event handlers
originator
event attribute toparent
Runner
Upgrade instructions
recursive=False
toDataset
instantiationsoctue>=0.56.0
0.6.1
of the event handler or above and a correspondingly up-to-date BigQuery table.internal_service_name
argument forinternal_sruid
argument toChild.__init__
and provide a valid SRUIDService
can no longer be given names. Please give them a valid SRUID instead.Child.ask_multiple
, access the zeroth element e.g. if the third question failed:Service.received_events
,AbstractEventHandler.handled_events
, andChild.received_events
now include event attributes instead of just the event. These attributes/properties now return a list of dictionaries with the keys {"event", "attributes"}, where what was previously returned is now mapped to the "event" key.recipient
argument toEventReplayer
andGoogleCloudPubSubEventHandler
- it's now automatically acquired from each event's attributesskip_missing_events_after
argument toEventReplayer
andGoogleCloudPubSubEventHandler
awaiting_missing_event
andtime_since_missing_event
properties on the event handlers