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
chore(delta): address review suggestions — error handling, dead code, style
Follow-up to 3c178e1 applying the remaining suggestions from the
/review pass:
* Codec.decode_delta/1: replace Jason.decode!/2 with a case on
Jason.decode/2 that wraps malformed input in ArgumentError and
rejects non-object top-level JSON. Adds tests for both cases.
* Reducer.state_to_initial_delta/1: remove. Dead code — callers use
MigrationGenerator.initial_operations_for_state/1 directly.
* do_fetch_operations/4: use Reducer.empty_state/1 instead of the
third inline copy of the baseline state map, so the empty-state
schema has one source of truth.
* Mix.Tasks.AshPostgres.SquashSnapshots.run/1: add missing
@impl Mix.Task.
* apply_squash(..., :full): drop the `_ = folder` suppressor and
destructure as `_folder` instead.
* Codec.maybe_to_atom/1: add `sobelow_skip ["DOS.StringToAtom"]`
pragma, matching the convention already used throughout the
codebase (operation.ex, custom_index.ex, resource_generator/spec.ex).
0 commit comments