diff --git a/development-environment/dev.sh b/development-environment/dev.sh index 06316b39ceb..a097782d1ed 100755 --- a/development-environment/dev.sh +++ b/development-environment/dev.sh @@ -59,7 +59,7 @@ elif $services; then fi echo -echo -e "This command starts the OpenCRVS Core development environment, which consists of multiple NodeJS microservices running in parallel. OpenCRVS requires a companion country configuration server to also be running. \n\nIf you ran our setup command, the country configuration server exists in the directory opencrvs-countryconfig alongside this directory, otherwise you may have cloned or forked it somewhere else.\n\nSo, before we start...\n\n1. Copy this command: \033[32myarn dev \033[0m\n\n2. Create another terminal window.\n\n3. cd into your country config directory and prepare to run the command in that terminal window \033[32mWHEN OPENCRVS CORE HAS FULLY STARTED UP\033[0m\n\nin order to start the country config server and be able to use OpenCRVS.\n\nOpenCRVS has started up fully when the terminal logs slow and stop. \n\nBrowse to this URL in Chrome to check the status:\033[32m\n\nhttps://is-my-opencrvs-up.netlify.app\033[0m \n\nIf your OpenCRVS database is not seeded, open another terminal window and cd into opencrvs-core. Run this command in the opencrvs-core directory \033[32mWHEN OPENCRVS CORE HAS FULLY STARTED UP\033[0m in order to seed the database with data: \033[32m\n\nyarn seed:dev\033[0m\n\n" +echo -e "This command starts the OpenCRVS Core development environment, which consists of multiple NodeJS microservices running in parallel on many ports. OpenCRVS requires a companion country configuration server to also be running. \n\nIf you ran our setup command, the country configuration server exists in the directory opencrvs-countryconfig alongside this directory, otherwise you may have cloned or forked it somewhere else.\n\nSo, before we start...\n\n1. Copy this command: \033[32myarn dev \033[0m\n\n2. Create another terminal window.\n\n3. cd into your country config directory and prepare to run the command in that terminal window \033[32mWHEN OPENCRVS CORE HAS FULLY STARTED UP\033[0m\n\nin order to start the country config server and be able to use OpenCRVS.\n\nOpenCRVS has started up fully when the terminal logs slow and stop. \n\nBrowse to this URL in Chrome to check the status:\033[32m\n\nhttps://is-my-opencrvs-up.netlify.app\033[0m \n\nIf your OpenCRVS database is not seeded, open another terminal window and cd into opencrvs-core. Run this command in the opencrvs-core directory \033[32mWHEN OPENCRVS CORE HAS FULLY STARTED UP\033[0m in order to seed the database with data: \033[32m\n\nyarn seed:dev\033[0m\n\n" echo sleep 3 @@ -110,7 +110,7 @@ done echo echo -e "\033[32m:::::::::: STARTING OPENCRVS ::::::::::\033[0m" echo -echo "If you did not previously run our setup command, Docker is downloading Mongo DB, ElasticSearch, OpenHIM and Hearth docker images. These are large files. Then docker will build them. If you did run our setup command, OpenCRVS will start much faster. Wait for the OpenCRVS client app to build completely (output will stop and you will see the message: @opencrvs/client: Compiled with warnings.), then OpenCRVS Core will be available." +echo "If you did not previously run our setup command, Docker is downloading Mongo DB, ElasticSearch, OpenHIM and Hearth docker images. These are large files. Then docker will build them. If you did run our setup command, OpenCRVS will start much faster. Wait for the OpenCRVS stack to start up completely (output will slow and gradually stop ...), then OpenCRVS Core will be available." echo echo -e "\033[32m:::::::::: PLEASE WAIT for @opencrvs/client ::::::::::\033[0m" echo diff --git a/packages/config/src/handlers/forms/validation.ts b/packages/config/src/handlers/forms/validation.ts index 3127c5cce6e..6082c4b6274 100644 --- a/packages/config/src/handlers/forms/validation.ts +++ b/packages/config/src/handlers/forms/validation.ts @@ -99,6 +99,9 @@ const REQUIRED_PRIMARY_ADDRESS_FIELDS = ['countryPrimary', 'statePrimary'] const OPTIONAL_EVENT_ADDRESS_FIELDS = [ 'district', + 'locationLevel3', + 'locationLevel4', + 'locationLevel5', 'ruralOrUrban', 'city', 'addressLine3UrbanOption', @@ -121,6 +124,9 @@ const OPTIONAL_EVENT_ADDRESS_FIELDS = [ const OPTIONAL_PRIMARY_ADDRESS_FIELDS = [ 'districtPrimary', + 'locationLevel3Primary', + 'locationLevel4Primary', + 'locationLevel5Primary', 'ruralOrUrbanPrimary', 'cityPrimary', 'addressLine3UrbanOptionPrimary',