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

Bug: when a user's role is removed in code, role doesn't disappear in CoreData #29

Closed
vdhamer opened this issue Sep 19, 2022 · 1 comment
Labels
Bug Something isn't working

Comments

@vdhamer
Copy link
Owner

vdhamer commented Sep 19, 2022

The update function for MemberPortfolio contains a club member's roles ("Joe is treasurer of photo club HappyPixels") and status ("Joe is a former member of photo club Kodachrome").

If Joe stops being the treasurer of HappyPixels, the MemberPortfolio.isTreasurer flag should be cleared for Joe (and likely set for someone else).

But the update() function that changes these properties gets called with with parameter values corresponding to

  • Joe is currently treasurer
  • no info available about whether Joe is treasurer
@vdhamer vdhamer added the Bug Something isn't working label Sep 19, 2022
@vdhamer vdhamer closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2022
@vdhamer
Copy link
Owner Author

vdhamer commented Sep 24, 2022

Could be solved by adding member info with
memberRolesAndStatus: MemberRolesAndStatus(role: [ .viceChairman: false ], stat: [:])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant