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

Configure (Cloud Function, Security Rules, Front-End) for loading pending users (wait time) #466

Open
ngwattcos opened this issue Jan 22, 2021 · 0 comments

Comments

@ngwattcos
Copy link
Member

ngwattcos commented Jan 22, 2021

(for the short-term)
Front-End Creation of a FireUser/FireUser Type

  • if the user has no corresponding pendingUser entry, change needsPromotion to undefined and proceed with usual

Firebase Functions: onUserCreate

  • on the successful promotion of a user, changes the field needsPromotion to undefined

Security Rules for pendingUsers

  • write, read access: professor
  • read access: student whose email matches the pending users doc's id. (Is this reliable?????)

"Back-end"

  • extend type of FireUser to include needsPromotion: true | undefined = true

Front-end (Talk to the designers about this.)

On the creation of a new user (isNormalEditingMode = false):

  • useEffect() conditioned on [needsPromotion]: stop the animation only when needsPromotion becomes undefined
@ngwattcos ngwattcos changed the title Security Rule Requests for pendingUsers Configure (Security Rules, Front-end) for loading pending users (wait time) Jan 22, 2021
@ngwattcos ngwattcos changed the title Configure (Security Rules, Front-end) for loading pending users (wait time) Configure Security Rules for loading pending users (wait time) Jan 22, 2021
@ngwattcos ngwattcos changed the title Configure Security Rules for loading pending users (wait time) Configure (Cloud Function, Security Rules, Front-End) for loading pending users (wait time) Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant