-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat-project-details-mapper-ui (#861)
* fix (create new project): create new project url updated * fix (create new project): upload area - select a file issue solved * fix (create new project): data extract - select a file issue solved * fix (radiobutton): option selection on label click, UI fix * fix (create new project): initial values for project details form added * feat (select): custom select component added * fix (create new project): data extract - shadcn select replaced with customselect * fix (custom select): updated props * fix (create new project): project detials - shadcn select replaced with customselect * fix (select): shadcn components export removed * fix (create new project): select form - shadcn select replaced with customselect * fix: style fixes on input field * fix radiobutton): - value prop added * fix (create new project): upload area - value prop added to radiobutton, map added * fix (create new project): event cleanup added * fix (create new project): geojson file cleanup added * fix (create new project): upload area - drawgeojson added, geojson file clear when option changed * Feat create new project (#844) * fix (create new project): create new project url updated * fix (create new project): upload area - select a file issue solved * fix (create new project): data extract - select a file issue solved * fix (radiobutton): option selection on label click, UI fix * fix (create new project): initial values for project details form added * feat (select): custom select component added * fix (create new project): data extract - shadcn select replaced with customselect * fix (custom select): updated props * fix (create new project): project detials - shadcn select replaced with customselect * fix (select): shadcn components export removed * fix (create new project): select form - shadcn select replaced with customselect * fix radiobutton): - value prop added * fix (create new project): upload area - value prop added to radiobutton, map added * fix (create new project): event cleanup added * fix (create project): uploadArea/dataExtract - reset and select same file issue solved * feat(select): added responsive * feat(validation) : added validation file on new create project * feat(data-extract): data extract useform integration * fix(dataextract): removed formcategory actions * feat (create project): upload area - total area calculation on upload area drawn * feat: changed step from data extract to select form * feat: changes on steps of create project * feat(File Input): file input component addition * feat(component) : used component for fileinput * feat/fix (create new project): split tasks - radiobutton state changed with redux state, useForm setup * fix (create new project): merge conflict solved * fix (Accordion): custom accordion added * fix (project details): project options accordion added for small screen * fix (project detials): map full screen for small screen on project details section * feat (project details): map legends accordion added for small screen * fix (project details): map legend lock icon size fixed * feat (modal): shadcn modal integrated * feat (project details): map tasks popup replaced with modal * feat (project details): tasks section modal replaced with tasks section popup * feat (project details): map scroll in view added when map clicked * ci: merge pytest workflow fix * Various: task splitting error handling, compose cleanup, default svcfmtm user (#872) * refactor: rename frontend container ui-main --> ui (fmtm) * fix: remove route protection during dev, populate odk vars * docs: lengthen default odk pass example * fix: improve task splitting logs and error handling * fix: handle empty task split on frontend * fix: add default svc user for fmtm * build: remove refs to redundant APP_NAME for frontend * build: add bind mount to migration container * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * ci: debug pytest workflow vars * build: remove bind mount for migration backend container * docs: info on creating and applying db migrations * build: remove gosu from backend ci dockerfile * build: optimise ci image build RUN commands * build: backend ci img install pkgs globally * ci: revert pytest workflow * refactor: replace all process.env refs with environment.ts * build: merge in backend dockerfile edits from dev * fix: set default project user to svcfmtm (if not logged in) * build: migration entrypoint, create svcfmtm user on start * refactor: revert set svcfmtm on frontend (set as backend default) * build: update migrations for all envs, restart 3 times on fail * fix: remove redundant nullable from DbUser.role (default set) * build: fix migrate-entrypoint role enum type * fix: remove additional DbUser nullable=false when default set * build: update migrate-entrypoint to handle incorrect nulllable * build: additional logging to migration script * fix: incorrect defaults for DbProject.author & author_id * refactor: set webpack env vars with defaults (instead of dev/prod) * Various: task splitting error handling, compose cleanup, default svcfmtm user (#872) * refactor: rename frontend container ui-main --> ui (fmtm) * fix: remove route protection during dev, populate odk vars * docs: lengthen default odk pass example * fix: improve task splitting logs and error handling * fix: handle empty task split on frontend * fix: add default svc user for fmtm * build: remove refs to redundant APP_NAME for frontend * build: add bind mount to migration container * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --------- Co-authored-by: NSUWAL123 <[email protected]> Co-authored-by: Nishit Suwal <[email protected]> Co-authored-by: sam <[email protected]> Co-authored-by: Sam <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2dfb69f
commit 3a2c7db
Showing
54 changed files
with
1,474 additions
and
483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
ODK_CENTRAL_VERSION=v2023.2.1 | ||
ODK_CENTRAL_URL=https://central-proxy | ||
ODK_CENTRAL_USER=[email protected] | ||
ODK_CENTRAL_PASSWD=fmtm | ||
ODK_CENTRAL_PASSWD=testuserpassword | ||
|
||
### FMTM ### | ||
# DEBUG=True | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
while !</dev/tcp/${FMTM_DB_HOST:-fmtm-db}/5432; | ||
do | ||
sleep 1; | ||
done; | ||
|
||
# Check all vars present | ||
if [ -z "${FMTM_DB_HOST}" ]; then | ||
echo "Environment variable FMTM_DB_HOST is not set." | ||
exit 1 | ||
fi | ||
if [ -z "${FMTM_DB_USER}" ]; then | ||
echo "Environment variable FMTM_DB_USER is not set." | ||
exit 1 | ||
fi | ||
if [ -z "${FMTM_DB_PASSWORD}" ]; then | ||
echo "Environment variable FMTM_DB_PASSWORD is not set." | ||
exit 1 | ||
fi | ||
if [ -z "${FMTM_DB_NAME}" ]; then | ||
echo "Environment variable FMTM_DB_NAME is not set." | ||
exit 1 | ||
fi | ||
|
||
echo "Crerating default svcfmtm user" | ||
# Create default svc user | ||
psql "postgresql://${FMTM_DB_USER}:${FMTM_DB_PASSWORD}@${FMTM_DB_HOST}/${FMTM_DB_NAME}" \ | ||
-c "INSERT INTO users (id, username, role, mapping_level, tasks_mapped, tasks_validated, tasks_invalidated) \ | ||
VALUES (20386219, 'svcfmtm', 'MAPPER', 'BEGINNER', 0, 0, 0) \ | ||
ON CONFLICT (id) DO NOTHING;" | ||
echo "User creation complete" | ||
|
||
exec "$@" |
Oops, something went wrong.