Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

node --http-parser=legacy x/db/import-schools.js 

Note that this will fail on recent Node versions with an error on a stray char in the response headers. Node LTS 12 works though, and probably should be the version used for the project in any case.

For Production Cloud Servers

...

Code Block
Inserted 82 schools
Inserted 176 schools
Inserted 266 schools
Inserted 357 schools
Inserted 454 schools
Inserted 545 schools
Inserted 634 schools
Inserted 724 schools
Inserted 813 schools
Inserted 906 schools
Inserted 997 schools
Inserted 1088 schools
Inserted 1183 schools
Inserted 1274 schools
Inserted 1365 schools
Inserted 1453 schools
Inserted 1536 schools
Inserted 1631 schools
Inserted 1724 schools
Inserted 1817 schools
Inserted 1900 schools
Inserted 1983 schools
Inserted 2069 schools
Inserted 2159 schools
Inserted 2250 schools
Inserted 2302 schools
Done

Testing the school invite process (uses local docker dev environment)

  1. Import schools, run these commands to get your local docker environment ready:

    Code Block
    language

...

  1. bash
    x/docker-dev/npm.sh ci

...

  1. 
    x/docker-dev/up.sh

...

  1. 
    

...

  1. x/docker-dev/console.sh

...

  1. 
    
    # you will be prompted to select a container here

...

  1. 
    # press 1<ENTER> to use the web container

...

  1. 
    # this will open a console inside the web container

...

  1. 
    # run this command now:
    
    

...

  1. node --http-parser=legacy x/db/import-schools.js
    exit
    
    

...

  1. # 

...

  1. you 

...

  1. should 

...

  1. now 

...

  1. be back 

...

  1. in your 

...

  1. original terminal
    

...

  1. # 

...

  1. the 

...

  1. rest 

...

  1. of 

...

  1. the 

...

  1. steps 

...

  1. can 

...

  1. be 

...

  1. completed 

...

  1. from 

...

  1. your browser
  2. Open

...

  1. browser

...

  1. and

...

  1. go

...

  1. to

...

  1. local

...

  1. Voluntarily

...

  1. app

...

  1. (http://localhost:3122)

...

  1. Login

...

  1. with

...

  1. an

...

  1. admin

...

  1. account

  2. Go to http://localhost:3122/admin/goals

  3. Click the “Load Goals” button

  4. Go to http://localhost:3122/admin/invite-school

...

  1. Fill

...

  1. out

...

  1. the

...

  1. invite

...

  1. form

...

  1. Logout

...

  1. of

...

  1. Voluntarily

...

  1. with

...

  1. your

...

  1. admin

...

  1. account

...

  1. Open

...

  1. mailhog

...

  1. (http://localhost:8025)

...

  1. You

...

  1. should

...

  1. see

...

  1. an

...

  1. email

...

  1. with

...

  1. the

...

  1. subject

...

  1. "[DEVELOPMENT]

...

  1. Your

...

  1. school

...

  1. has

...

  1. been

...

  1. invited

...

  1. to

...

  1. Voluntarily"

...

  1. Click

...

  1. the

...

  1. button

...

  1. "Sign

...

  1. up

...

  1. and

...

  1. activate

...

  1. your

...

  1. school"

...

  1. in

...

  1. the

...

  1. email

...

  1. This

...

  1. should

...

  1. take

...

  1. you

...

  1. to

...

  1. the

...

  1. Auth0

...

  1. login/sign

...

  1. up

...

  1. screen

...

  1. Either

...

  1. login

...

  1. with

...

  1. an

...

  1. existing

...

  1. account

...

  1. or

...

  1. sign

...

  1. up

...

  1. Once

...

  1. logged

...

  1. in the following should have happened:

    1. you should be redirected to your Voluntarily dashboard

    2. school related goal cards should be displayed displayed

    3. there should have been a new organisation created (based on the school you selected on the invite school form)

    4. your currently logged in account should be an org admin of that organisation

    5. on your profile you should have the “requestor” role

Note: /admin/invite-school can be appended to the environment url for testing

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@aba
showSpacefalse
sortmodified
typepage
reversetrue
labelsschools invite database sysadmin
cqllabel in ( "schools" , "sysadmin" , "database" , "invite" ) and type = "page" and space = "VP"

...