data-for-change / anyway

ANYWAY - Car accidents map
http://www.anyway.co.il
MIT License
77 stars 242 forks source link

Improve user system functionality #2586

Open atalyaalon opened 6 months ago

atalyaalon commented 6 months ago

Current BE user system API: https://github.com/data-for-change/anyway/blob/dev/anyway/views/user_system/api.py Curr API documentation: https://github.com/data-for-change/anyway/blob/dev/docs/USERAPI.md

Improvements we want to add (sorted by priority):

  1. Possibility for Local development of user system for FE developers (sign in locally as various users). Note: FE uses our production BE. FE repo @shaked-hayek would be happy to explain her challenges as FE developer with the user system (debugging as N12 user, as Admin, as regular user, etc) Please look for best practices.
  2. Debug location qualification functionality, make sure it works well (together with @shaked-hayek )
  3. Admin permission has by default "Location Qualification" abilities (אישור מיקום) We want to enable "Location Qualification" feature for "non-admin" (only by assigning it to user - see part 4)
  4. User management: As admin, we can manage users. We want to add the option to:
    • Add a new user and assign them an organization, and the possibility to assign "location qualification" OR admin permissions (Since Admin by default have location qualification)
    • Modify existing user: add Admin OR add/remove "location qualification" OR change organization Part 4 requires a FE modification of current user management UI - @shaked-hayek FYI