Closed am-MongoDB closed 3 years ago
@brittanylau is this something you are up for doing? @am-MongoDB will be working on the Realm function regDevUserAgency so you can use a placeholder function that succeeds (or fails) and testing that way.
@Sheeri I'm up for it! I can work on this during the weekend.
Hey @Sheeri, I'm slowly picking away at this one (haven't had as much time as I thought) - are there any dependencies/deadlines for this, aside from being ready for Hacktoberfest?
Hi @brittanylau - Being ready for hacktoberfest includes needing time for testing; It would be great to have a PR submitted by noon UTC on Monday. If not, that's totally OK, just let us know so we can reassign.
@Sheeri that timeline is perfect! Thanks for the heads up :)
@am-MongoDB quick clarification! Should users be able to access this page (and create a new user) without logging in first?
@brittanylau - yes. This page is only enabled if you want to provide a sandbox environment for developers to test the web or mobile apps against. The idea is that we host the backend environment (including the web site) and developers can come to this page to create their own agency and user account, which can then be used for testing. Because everything is partitioned by agency, only users registered against this agency will see the data they then add using the apps.
Thanks @am-MongoDB! This context is very helpful - I'll get a PR out by Monday.
This functionality is to support users creating their own agency-admin user in a shared instance of the O-FISH Realm app.
There is a matching web issue for this feature: https://github.com/WildAid/o-fish-realm/issues/136
#/users/new_dev_user
that's based on#/users/new_user
.The page should look something like this (this is a "backdoor" for developers and so the design doesn't need to be precise):
All of the fields are free text.
When the button is pressed the following should be done:
regDevUserAgency
passing in first name, last name, email, agency name and agency url as arguments(in that orderUser
collection as that's already been done by theregDevUserAgency
function/#/home
(or redirect to the login page if that's a lot simpler