You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 38d8c23
Browse filesBrowse the repository at this point in the historyBrowse files
Signature validation had a false positive and a false negative. A hook using
functools.singledispatchmethod reports (self, event) even when bound, so
judging by arity alone refused a hook written exactly right; a method taking no
event at all passed and failed at its first call. Both are gone: a leading self
or cls is dropped, then the signature is asked whether it can be called with
one event, which accepts (event), (*args) and (event, extra=None) alike.
on_event now runs before the method named for the phase. It used to run after,
so a before_* hook that refused an operation by raising left an audit trail
with nothing in it -- the one case an audit hook most wants recorded.
An attach is counted before after_attach fires, as a creation already was, so a
failing notification no longer makes the result disagree with the database.
(detach and drop have the same shape and count after their hook; that is 1.0
behaviour and needs the tally to move into the executor's own methods, so it is
left for its own change.)
The three event builders take the config: DEFAULT bounds say nothing about the
parent's method -- every method may have one -- and were reported as RANGE, so
a DEFAULT member of a LIST root lied about its parent. _parent_method now
answers None where the bounds do not say and the configured root decides. The
attach event also names how the partition will divide its own children, which
it knew from the operation and threw away.
is_naive_timestamp_literal no longer reads reduced ISO forms as timestamps:
"2024-01", "2024-W01" and "2024-001" are values a text or encoded key really
has, and they were drawing a timezone warning meant for real timestamps.
Docs: the ported hook example in the agent page still called the old parameter,
three places still showed the table-name argument these methods no longer take,
and the README example annotated a type it did not import. Four integration
call sites were still passing a table name where the config now goes -- they
only worked because no hooks were registered there.
Refs #27.
Service wiring: `PartitionLifecycleService(repo, metadata, locks, hooks=None)` — **no `period_calculator` argument**; the calculator/tz/codec live in `TimeBoundaries`. `PostgresMetadataProvider(engine, marker_prefix=, boundary_codec=, ddl_timezone=)` (codec only for `is_partition_closed`).
0 commit comments