Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEOPLE: Membership wizards shared modules #662

Closed
2 tasks done
daniel-illi opened this issue Jun 20, 2024 · 0 comments · May be fixed by #663
Closed
2 tasks done

PEOPLE: Membership wizards shared modules #662

daniel-illi opened this issue Jun 20, 2024 · 0 comments · May be fixed by #663

Comments

@daniel-illi
Copy link
Contributor

Module mit der geteilten Funktionalität der SAC Mitgliedschafts Mutations Wizards

Tech-Spec

  • Wizards::Personal
    • extend ActiveSupport::Concern
    • attr person, presence validieren
    • #membership_role:
      • gibt die aktuelle Mitglied Rolle der #person zurück falls eine existiert, sonst deren neueste gelöschte Mitglied Rolle
      • presence validieren
    • #membership_terminated?: true falls #membership_role.terminated == true
    • #family_membership?: true falls #membership_role.beitragskategorie == 'family'
    • #family_main_person?: true falls #person.sac_family_main_person == true
  • Wizards::Registering
    • extend ActiveSupport::Concern
    • include Wizards::Personal
    • attr group, presence valideren auf last_step?
    • #no_self_service?: true wenn die Gruppe ein child vom Typ Group::SektionsNeuanmeldungenSektion enthält
  • Wizards::Terminating
    • extend ActiveSupport::Concern
    • include Wizards::Personal
    • attr role, presence validieren
    • #affected_roles: Liste von Rollen, zu implementieren in Subklasse
    • #no_self_service?: true wenn für mindestens eine der #affected_roles auf der Sektion/Ortsgruppe "Austritt nur durch Sektion" aktiviert ist: role.layer_group.mitglied_termination_by_section_only

ToDo

  • Domainklasse erstellen oder anpassen
  • Specs schreiben
@daniel-illi daniel-illi self-assigned this Jun 20, 2024
@daniel-illi daniel-illi changed the title PEOPLE: Membership wizards common modules PEOPLE: Membership wizards shared modules Jun 20, 2024
@daniel-illi daniel-illi closed this as not planned Won't fix, can't repro, duplicate, stale Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants