Remove uncalled code and unreachable validations, and bring the Ash resource snapshots up to date #631
Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
optional
question
S
security
technical improvement
UX Improvement
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
local-it/mitgliederverwaltung#631
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
#605 and #609 left a few code paths with no caller, validations that can never run, a cache that no test exercises, and Ash snapshots that drifted from the code. None is user-visible, but each misleads the next reader or makes
mix ash.codegen --checknoisy.Collected from: #605 leftovers (three items), #609 findings 2 and 9. Verified on
mainc3d99735(2026-10-25).Findings
Mv.Constants.vereinfacht_required_member_fields/0(lib/mv/constants.ex:69,79), documented indocs/vereinfacht-api.md:30,57and the CODE_GUIDELINES tree. Remove it with the docs, or keep it and state why in its doc.:update_member_field_visibilityand:update_single_member_field_visibility(lib/mv/membership/setting.ex:205; wrappers inlib/mv/membership/membership.ex:212,246, used only by tests and doctests). Drop actions and wrappers together per CODE_GUIDELINES §1.3, or document why they stay.CustomField(lib/mv/membership/custom_field.ex:92) andMembershipFeeType(lib/mv/membership_fees/membership_fee_type.ex:83): the:updateactions do not acceptvalue_type/interval, so updates fail earlier withNoSuchInput. Remove the validations; the tests already pinNoSuchInput.Mv.Helpers.SystemActorcache has no test path. Under the SQL sandboxget_system_actor_result/0always loads directly (lib/mv/helpers/system_actor.ex:115), so the Agent cache andinvalidate_cache/0never run in tests. Make the sandbox bypass injectable, or test the Agent path with a non-sandbox loader; if neither is worth it, drop the cache.mix ash.codegen --checkreports pending generation onmain; not part ofjust ci-dev):priv/resource_snapshots/repo/extensions.jsonis atash_functions_version5 while ash_postgres expects 7; staleproperties/property_typessnapshot dirs ask to drop those tables;join_requests.reviewed_by_displaywas added by a hand-written migration without a snapshot. Regenerate, review the resulting migration (it must not drop live data), and consider addingmix ash.codegen --checktojust ci-dev.Acceptance criteria
just ci-devgreen.mix ash.codegen --checkreports nothing pending; the generated migration is reviewed and drops nothing in use.# Remove uncalled code and unreachable validations, and bring the Ash resource snapshots up to dateto Remove uncalled code and unreachable validations, and bring the Ash resource snapshots up to date