R/accept_stream_network.R
accept_stream_network.RdOperates on a named list of local relations, not on a database connection. Supply inspection decisions before calling: this function never fills them in. Current ACCEPTANCE validation must pass. Failed validation raises a `fluvgeo_acceptance_error` carrying `validation` and `geodatabase` (the unchanged scientific state with the new run appended). Nothing is written to disk.
accept_stream_network(
geodatabase,
reviewer,
review_notes = NA_character_,
reaches = NULL,
accepted_at = Sys.time()
)Named list containing Configuration, membership, Observation, prepared segments, and their related evidence tables.
Explicit observation reviewer's identifier.
Optional replacement qualification notes. NA preserves existing notes; missing scientific qualifications are never invented.
Optional governed Reach-Stream mappings for validation.
Acceptance time, converted to UTC; cannot predate inspections.
A new relations list, with an appended passing acceptance run and accepted observation/segment status. Input objects remain unchanged.
Successful acceptance records observation reviewer/time/notes and sets all segment review states to ACCEPTED. Segment modified times describe the inspected scientific state and are deliberately unchanged by this status-only transition. Observation modification provenance records the transition. Existing validation history and inspection decisions are preserved. Already accepted observations must be explicitly reopened before a new acceptance.