Friendsofthepeople / recall-server

A Node server for managing the verification of constituents, publishing of representative information, and signing to recall them.
MIT License
19 stars 6 forks source link

Voters Module #2

Open timothygachengo opened 3 months ago

Gabriel-Mbugua commented 3 months ago

Will voters and users be separate modules or the same? Personally think they should be the same since the data will be practically identical, but I'm open to hearing the benefits of separating them.

YTeyddie22 commented 3 months ago

I think the voters are the same as the users. If so, then there is no need to create extra modules.

timothygachengo commented 3 months ago

My thinking was creating users then we can assign them roles like Voters, Agents e.t.c. @Gabriel-Mbugua and @YTeyddie22 What do you think?

YTeyddie22 commented 3 months ago

That is a good idea @timothygachengo . If I may ask, how many roles are we planning to have? I thought two roles were going to be enough, the voters' role and the leaders being recalled but I could be wrong.

timothygachengo commented 3 months ago

Based on the initial discussion that can be found here https://discord.com/channels/1252907498571042816/1252992937860661288/1253027130007097355 we were to have the following:

We can have one user (accounts) module to act as a source of truth for all the users in the system.

On Mon, 1 Jul 2024 at 19:23, Teddy Yongo @.***> wrote:

That is a good idea @timothygachengo https://github.com/timothygachengo . If I may ask, how many roles are we planning to have? I thought two roles were going to be enough, the voters' role and the leaders being recalled but I could be wrong.

— Reply to this email directly, view it on GitHub https://github.com/Friendsofthepeople/recall-server/issues/2#issuecomment-2200574343, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANKPJ3OUJVBFARJKWS2VCO3ZKF7ADAVCNFSM6AAAAABJXOMNYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBQGU3TIMZUGM . You are receiving this because you were mentioned.Message ID: @.***>

YTeyddie22 commented 3 months ago

Thank you @timothygachengo for the input. Sorry for the late reply. I think having one user module that holds the different roles as you have suggested will be a better way forward as it will also help in preventing repetition.