mozilla / network-pulse-api

API for the Network-Pulse project
Mozilla Public License 2.0
12 stars 22 forks source link

updating profile.is_active flag based on user_account.is_active #799

Closed danielfmiranda closed 2 years ago

danielfmiranda commented 2 years ago

[NOTE:] We should coordinate when this can merge into the codebase, as this will allow "spam accounts" to sign up and to create posts without moderation

Closes: #798 Related PRs: #788, #789

In an effort to prepare for the tickets that will implement the new sign up flow:

  1. New user logs in
  2. They can access their profile and make entries
  3. These posts and profile will be omitted from frontend until a admin updates their profile to "is_active".

We are now updating the app from "setting user_account.is_active to False on initial login" to "setting profile.is_active to False on initial login". That way the user can view/edit their profile, and we can then filter posts based on profile.is_active.

danielfmiranda commented 2 years ago

Hi Tibor! Thanks for the great suggestions, I have implemented your feedback, re-requested review, and have created https://github.com/mozilla/network-pulse-api/issues/800 to investigate the user accounts with missing linked profiles.