-
Under user_type, we need to create a new
acceptedOrganizations
connection. 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_accepted
field 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
amAccepted
field under organization_type. If it resolves totrue
, we showSet Going
button. If it'sfalse
, we don't show that button and instead, the mobile client checks foramPendingAccepted
field 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
UpdateUserOrganizationPendingAccepted
mutation. The inputs for that mutation areorganizationId
andacceptanceLetterUrl
. This will setpending_accepted
field on UOS. Note: WhenUpdateUserOrganizationPendingAccepted
mutation is called, backend needs to make sure that user is following that organization. -
To change the going status,
UpdateUserOrganizationGoing
mutation needs to be called. The inputs for that mutation areorganizationId
andgoing
.going
param 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 UOSaccepted
field -
A new field named
goingTo
needs to be added to user_type. This field returns anOrganizationType
object. If the user doesn't have a going org, it will return null. -
accept_reject
class method inUOSAcceptedToCollege
module 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