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: Letzte aktive Rolle auf Person speichern #2136

Open
11 tasks done
TheWalkingLeek opened this issue Jun 15, 2023 · 0 comments · May be fixed by #2138
Open
11 tasks done

PEOPLE: Letzte aktive Rolle auf Person speichern #2136

TheWalkingLeek opened this issue Jun 15, 2023 · 0 comments · May be fixed by #2138
Assignees

Comments

@TheWalkingLeek
Copy link
Member

TheWalkingLeek commented Jun 15, 2023

Das ermitteln von "Personen ohne Rollen" ist technisch jedes Mal ein ziemlicher Aufwand. Insbesondere da es ein Zustand einer Person ist, der nur selten ändert.

Daher ist das Ziel nun, ein separates Feld auf der Person zu hinerlegen welches die ID zur letzen soft-gelöschten Rolle hinterlegt hat.
Das Feld ist nur befüllt wenn die Person sonst keine aktive Rolle hat.

Tech-Spec

  • Umsetzung im Core

ToDo

  • Migration erstellen: last_active_role_id
  • RecurringJob anlegen welcher täglich(?) läuft
    • befüllt last_active_role_id wenn nötig
    • entfernt last_active_role_id wenn nötig
  • Group::DeletedPeople anpassen sodass es mit last_active_role_id arbeitet
  • Evtl. gibt es noch andere Orte an denen die Personen ohne Rollen gesammelt werden, diese auch anpassen
  • Wagons überprüfen
  • Sicherstellen dass alle Specs laufen
  • Specs schreiben
  • Volltextsuche Performance testen
  • Mit angemessener Rolle "durchklicken"
@TheWalkingLeek TheWalkingLeek self-assigned this Jun 15, 2023
@TheWalkingLeek TheWalkingLeek linked a pull request Jun 19, 2023 that will close this issue
@TheWalkingLeek TheWalkingLeek removed their assignment Jun 19, 2023
@mtnstar mtnstar self-assigned this Jun 20, 2023
@mtnstar mtnstar assigned TheWalkingLeek and unassigned mtnstar Jun 28, 2023
@TheWalkingLeek TheWalkingLeek removed their assignment Jun 30, 2023
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