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

Closes #21 - supports org enrolment #49

Open
wants to merge 18 commits into
base: development
Choose a base branch
from
Open

Closes #21 - supports org enrolment #49

wants to merge 18 commits into from

Conversation

ortonomy
Copy link
Owner

@ortonomy ortonomy commented Feb 27, 2018

  • new Org state object to track enrolment and access validation
  • two new routes /enroll and /validateorg support org enrollment
  • new registered and activated user is redirected to enrolment process
  • user can search for org and if found, request access to existing org
  • user can search and if not found, can create and take ownership of an organization

Needs testing

  • User login details [email protected] can login, create and own new org
  • User login details [email protected] can login, search for Ortonomy Labs and request access. Log out and log back in with [email protected]. Link with generated code will activated user. (suggest changing your test users to an email address you control for verification``

Dependencies
Make sure you're running the code from PR at backend: ortonomy/fling-server#17

ortonomy added 18 commits February 5, 2018 17:23
- [x] uses createOrganization mutation
- [x] supported by issue 13 in backend adding permission for INSERT to postgraphql user
- [x] added new state object for 'Org' which tracks enrolment process for user into organization
- [x] adds all necessary logic
- [x] adds preventDefault from pressing Enter on form
…ess requests

- [x] new api queries to support initial state hydration with whether or not user has requested access to an org
- [x] adds actions to request access to org and relevant logic and reducers
- [x] makes sure form does not 'submit' when enter is pressed
- [x] enables 'back to search' functionality in enrolment process
…nization

- [x] adds hasOrgRedirect to go to /main if on /enroll and has an org already
- [x] adds withOrg to send back to /enroll if on /main and you don't have an org yet
- [x] wraps /enroll and /main components in protection
- [x] updates redux hydration to make sure correct data is sent back and not null errors occur
- new route /validateorg for admins to validate org access requests
- new component ValidateOrg handling new route
- updated logic and reducers for actions VALIDATE_ORG_ACCESS_REQUEST
- added new API calls for logic
- added new state object ``Org.validation``
- updated hasOrgRedirect to not redirect after initial org creation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant