Closed palisadoes closed 7 months ago
Hey @palisadoes can you assign this issue to me?
I would like to work on it.
I'd like work on this
i would like to work on this sir please assign me this issue
Hey, I am facing a problem, when an user is created an organization is asked from the user itslef And when membership request is made, a check is made that too with the admin of organization not superadmin So which registration is being talked about here? Can I get little more context?
This is related to a brand new user registering via the API selecting the organization that they want to be a member of.
BTW organizationUserBelongsto
was deprecated yesterday
Is there other clarification you require?
So most of the logic has been made by me, please see the steps: (Only an overview)
1) As said in above comment organizationUserBelongsto
is deprecated but not completely removed yet. That check will be removed completely in this issue.
2) The mutation SignUp
will take Organization as a parameter, if it is null
, default organization will be added in that user schema.
3) A membership request will be sent to the organization in this mutation.
4) createMember
mutation will get rid of superAdmin
5) The isAdminAprooved
will be made true in SignUp
mutation.
6) The default organization will always be present no matter how many more organizations are joined by user.
My Questions:
1) The problem which I am facing is creating that default organization, should I add more commands to generate this default organization or just add this in the sample database?
2) Should I try for getting rid of isAdminAprooved
variable as it will always be true?
isAdminApproved
logic do?organizationUserBelongsto
Clear! gonna check Talawa Admin for handling this logic. Will raise the PR as soon as possible! Thanks for your cooperation!
You still haven't explained what the isAdminApproved
logic does
You still haven't explained what the
isAdminApproved
logic does
The unauthorised error is being sent by Talawa Admin when isAdminAprooved
is false. Now there are two cases:
1) User tries to enter the Admin site without any Organization.
2) User already know his Organization.
For the first case, the registration mutation has to make this bool variable true, so that User can enter the Admin pannel and then select organization. In the second case a membership request has to be made, then only this variable will become true.
Initially I thought to make this variable as true
in the SignUp mutation but then the need wouldn't be followed as then all users would enter the Admin Panel to select organizations but this is very unsecured and unnecessary. So in the end my approach will be:
If organization provided by user is null
then isAdminAprooved
has to become true in the registration mutation itself.
Else a membership request will be sent to the organization with isAdminAprooved
as false.
It seems like unnecessary logic.
- Why can't the user select the organization as part of a dropdown in the registration process so that they never have to get access to an Admin screen? The request would go straight to the Admin.
- If the the registration is approved, the user would go straight to their selected organization user portal screens
It seems like unnecessary logic.
So you are saying, Choosing Organization will be necessary. If user chooses the Default Organization, then membership request will be made to that default organization. Thanks for this clarification!
Yes, we should be able to deprecate the field if we make selecting an organization on registration mandatory
I want to ask whether acceptAdmin
mutation should be removed or not, because I think that it's only use is to accept the request of newly created member by superAdmin
, Please let me know if I am wrong! Thanks
userRegistrationRequired
flag in the schema that is used to determine whether newly registered users need to be approved by an Admin to join the organization. It should really be named userRegistrationApprovalRequired
No, I am talking about this adminAprooved
in Talawa Admin
This is the mutation in Talawa API making it true
The logic is used throughout the Admin code but seems to be only set to false
for testing purposes. Is that what you mean?
This will need to be fixed as part of this issue. We need:
userRegistrationRequired
flag.User
schema.
So I have prepared two workflows, the only difference between those workflows is when user tries to SignUp with the organization which has userRegistrationRequired=false
:
1) A membership request will be made and no matter whether the above flag is true
or false
, Admins of the organization has to review the request.
2) Or for only those users who have chosen that organization which have the above flag as false, request can be sent to superAdmins
If the requirement is to automatic approve the request sent to these organizations, then that can be also implemented but that will not be secured as any spam user could enter with that organization. I can think of more ways also, if you don't like the above workflows!
The super admin is not required. If an admin says that they don't need to approve registrations / signups then the user should just log straight in.
Most cloud services are like this, there is an email verification step on signup, then you login. There is no human interaction. The registration approval required step is to involve a human, namely the Admin and in the Organization level screens.
The super admin role is primarily for the oversight of organizations. They should see organization specific alerts when they click through to the organizations from the Admin orglist screen.
Ok, so will work on this. Thanks!
@Manik2708 ,Wanted to know will the membershipRequests key in the Organization model be populated in your solution so that it can be accessed from the admin repo as it wasn't previously? Thanks.
@Manik2708 ,Wanted to know will the membershipRequests key in the User model be populated in your solution so that it can be accessed from the admin repo as it wasn't previously? Thanks.
Please can you provide a little more description?
Is the membershipRequest array in the Organization model definition populated with the requested organization in your solution? It was not getting populated until now. I need to know this so that I can access it in the request section for an organization in the Admin repo. @Manik2708
Is the membershipRequest array in the Organization model definition populated with the requested organization in your solution? It was not getting populated until now. I need to know this so that I can access it in the request section for an organization in the Admin repo. @Manik2708
I haven't changed any mutation other than signUp
and acceptMembershipRequest
. In first mutation User
is sent while in other MembershipRequest
is sent.
@Manik2708
This had to be reverted. It was causing these issues
Please resubmit your PR
@Manik2708
This had to be reverted. It was causing these issues
Please resubmit your PR
Ok, will fix it!
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.
Working
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.
@Manik2708 are you still working on this ?
Yes, the PR is under review.
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.
I would like to work on it .
@AVtheking You should also work on this issue as it's related. Please ask to be assigned.
Ok sir.
Is your feature request related to a problem? Please describe.
We are working on migrating the approval of requests to join organizations to a new Admin screen as outlined in this issue:
Prior to this the process was:
There were disadvantages to this approach:
Describe the solution you'd like
TALAWA API
USER
s andNON_USER
s will need to select an organization when registering so that the request can be directed to the correct organization's Admin screens.TALAWA MOBILE
Talawa API
registration mutation.TALAWA ADMIN
Talawa API
registration mutation.OTHER
Describe alternatives you've considered
Approach to be followed (optional)
Additional context
Potential internship candidates Please read this if you are planning to apply for a Palisadoes Foundation internship