-
Under user_type, we need to create a new
acceptedOrganizationsconnection. This will return all the orgs that the current user is accepted into (based on funnel_state). -
Under user_type, we need to create a new connection named
pendingAcceptedOrganizations. This will return all the orgs that a user hasuos.pending_acceptedfield set for. -
The client is responsible for merging the result of #1 and #2. (Client's responsibility)
-
For each item in the accepted organization listing, we rely on
amAcceptedfield under organization_type. If it resolves totrue, we showSet Goingbutton. If it'sfalse, we don't show that button and instead, the mobile client checks foramPendingAcceptedfield under organization_type. If that value is set, the mobile client shows "Pending Verification" badge. -
To upload the acceptance letter the mobile client needs to use FilePicker's client library to directly do the upload, and then it will supply the returned photo url to
UpdateUserOrganizationPendingAcceptedmutation. The inputs for that mutation areorganizationIdandacceptanceLetterUrl. This will setpending_acceptedfield on UOS. Note: WhenUpdateUserOrganizationPendingAcceptedmutation is called, backend needs to make sure that user is following that organization. -
To change the going status,
UpdateUserOrganizationGoingmutation needs to be called. The inputs for that mutation areorganizationIdandgoing.goingparam should be one of the following:going notgoing undecided. Note: definition of mark_going method under UOS model needs to be changed. Currently, it relies on UOSacceptedfield -
A new field named
goingToneeds to be added to user_type. This field returns anOrganizationTypeobject. If the user doesn't have a going org, it will return null. -
accept_rejectclass method inUOSAcceptedToCollegemodule needs to be reworked. -
Upon approval or rejection, the user should receive a push notification
Also, please read the following story in pivotal. It explains different use cases that we need to support: https://www.pivotaltracker.com/n/projects/1164082/stories/153229292