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

Merge Development --> Staging #1526

Merged
merged 103 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
66d743a
fix (frontend): remove usage of encode and decode of id's (#1387)
NSUWAL123 Mar 29, 2024
949a789
fix: project edit form update validation (#1397)
NSUWAL123 Mar 29, 2024
428bba6
fix (frontend): required fields, description word limit, odk cred inp…
NSUWAL123 Mar 29, 2024
465d27d
fix: update task activity endpoint (#1406)
Sujanadh Apr 2, 2024
762e86a
fix: more informative browser tab titles/details (#1411)
NSUWAL123 Apr 2, 2024
9070266
fix: default UNDERPASS_API_URL no trailing slash
spwoodcock Apr 3, 2024
5c3d706
build: revert v2024.3.0 --> v2024.1.0
spwoodcock Apr 3, 2024
9d9ef28
bump: version 2024.1.0 β†’ 2024.2.0
spwoodcock Apr 3, 2024
27fe9a5
fix: return proper error message if form edit is invalid (#1415)
Sujanadh Apr 3, 2024
8b66654
refactor: response of update task status and added user info in task …
Sujanadh Apr 3, 2024
ab1a4c1
Return task history instead of db task (#1421)
Sujanadh Apr 4, 2024
1a0389b
fix: project name editing validation (#1416)
Sujanadh Apr 4, 2024
1890669
docs: extra info on production data backup / restore
spwoodcock Apr 4, 2024
6b9bdc2
docs: add section for example xlsforms
spwoodcock Apr 4, 2024
0d9ec9b
docs: fix links for example xlsforms
spwoodcock Apr 4, 2024
8dc9471
docs: update info about example xlsforms
spwoodcock Apr 4, 2024
f70e6b0
docs: link to correct form for each example xlsform/survey
spwoodcock Apr 4, 2024
fbebcd5
docs: link for additional info about monrovia xlsform
spwoodcock Apr 4, 2024
4f7e1fc
refactor: task comment response and schema (#1423)
Sujanadh Apr 4, 2024
10f8a7a
feat: implement ODK Entities for project creation (#1383)
spwoodcock Apr 4, 2024
c779987
build: make xform migration fully idempotent
spwoodcock Apr 4, 2024
853304f
refactor: merged multi polygon to single polygon (#1426)
Sujanadh Apr 5, 2024
84c9448
build: add helm chart for deployment in Kubernetes (#1427)
spwoodcock Apr 8, 2024
d1bb7fe
fix: add odk_token from projectInfo to qrcode creation
spwoodcock Apr 8, 2024
2599280
build: fix add runAsUser to helm securityContext for codecov to pass
spwoodcock Apr 8, 2024
9f08520
ci: update all workflows --> 1.4.10 (fix checkcov false positives)
spwoodcock Apr 8, 2024
a50540a
fix(backend): allow missing odk_token for project, but log warning
spwoodcock Apr 8, 2024
e4b1552
feat: Playwright integration with test cases to be written (#1433)
varun2948 Apr 10, 2024
bc94a84
docs: update info in helm chart readme, creating vars + namespace
spwoodcock Apr 10, 2024
84ef231
build: update osm-login-python --> 1.0.3 for error handling + flexibl…
spwoodcock Apr 10, 2024
b91e687
fix: project details mobile UI, user details in header (#1407)
NSUWAL123 Apr 10, 2024
fee9b23
fix: add optional auth to raw-data-api calls, plus folder structure f…
spwoodcock Apr 10, 2024
a197522
fix: update logic for more flexible submission json --> geojson
spwoodcock Apr 10, 2024
56c9072
build: relock frontend dependencies to fix build
spwoodcock Apr 10, 2024
25f2b11
build: add instructions for using Playwright frontend E2E tests (#1439)
spwoodcock Apr 10, 2024
40a7586
fix: filter task_history endpoint using task_id (#1436)
Sujanadh Apr 11, 2024
e9fd419
build: add Mozilla Dockerflow spec endpoints for devops systems (#1444)
spwoodcock Apr 12, 2024
acee91e
fix: XLSForm template download endpoint for specified categories (#1441)
spwoodcock Apr 12, 2024
4ede724
feat: add /projects/features endpoint for project FeatureCollection (…
spwoodcock Apr 12, 2024
48ab17a
fix: handle multipolygon geometries for project area (#1430)
Sujanadh Apr 15, 2024
89fa574
feat: temporary authentication login for mappers (svcfmtm) (#1410)
Sujanadh Apr 15, 2024
ae7adde
refactor: replace unecessary outline_centroid for tasks with ol.exten…
spwoodcock Apr 15, 2024
97a7c63
fix: activity comment api calls in frontend (#1435)
NSUWAL123 Apr 15, 2024
6195de1
fix: fix list-forms endpoint logic to return list of dicts
spwoodcock Apr 15, 2024
6a7d5f0
feat: endpoints for getting Entity data & updating Entity mapping sta…
spwoodcock Apr 16, 2024
9ed22af
docs: add roadmap badge to main readme
spwoodcock Apr 16, 2024
f9d233c
docs: fix roadmap badge emoji for readme
spwoodcock Apr 16, 2024
bc90ad4
docs: update link to roadmap in readme
spwoodcock Apr 16, 2024
f432316
fix (backend): add custom TMS url during project creation (#1446)
Sujanadh Apr 17, 2024
db9f9a8
fix: role mapper to login required in data extract (#1450)
Sujanadh Apr 17, 2024
f53aa94
docs: update svg label for roadmap badge, task board --> roadmap
spwoodcock Apr 17, 2024
7c56ef2
build: enforce --encoding utf8 on pg_dump database backups
spwoodcock Apr 17, 2024
d37087d
docs: add link to roadmap in docs sidebar
spwoodcock Apr 17, 2024
e0cc117
docs: update link to roadmap to roadmap.fmtm.dev
spwoodcock Apr 17, 2024
8591c7d
docs: add user/dev roadmaps, timeline, update readme badges
spwoodcock Apr 18, 2024
814f743
ci: add action to move assigned tasks to board In Progress column
spwoodcock Apr 18, 2024
3d7ad73
ci: remove workflow to for assignment due to insufficient token permi…
spwoodcock Apr 18, 2024
9f5a18e
docs: add public beta to timeline
spwoodcock Apr 18, 2024
dbdd8eb
fix (frontend): working task history button status updates (#1457)
NSUWAL123 Apr 18, 2024
916ec33
feat: append extra hashtag to projects with domain and project id ide…
spwoodcock Apr 18, 2024
cfe9d3c
fix(frontend): invalidate login if mismatch between existing and new …
spwoodcock Apr 19, 2024
a3e2ecf
fix: basemap tile download, refactor to use /{project_id}/name (#1467)
spwoodcock Apr 22, 2024
9bd5839
feat: distinguish between tasks locked by the current user and tasks …
NSUWAL123 Apr 22, 2024
ac05dea
feat: frontend buttons to load Entities in ODK Collect by intent (#1449)
spwoodcock Apr 23, 2024
43d0bcd
feat (frontend): add custom tms url linked to a project (#1464)
NSUWAL123 Apr 23, 2024
e0a0e85
fix(frontend): do not call introspect endpoint on /osmauth callback
spwoodcock Apr 23, 2024
cc90a1d
feat(frontend): login options to frontend, OSM or temp auth (#1458)
NSUWAL123 Apr 23, 2024
785cb80
fix: login methods after temp cookie auth (#1471)
spwoodcock Apr 24, 2024
a9fa16a
Replace popup auth flow with redirect flow (#1473)
spwoodcock Apr 24, 2024
cbf88aa
feat: use task index as an user facing task_id (#1470)
Sujanadh Apr 24, 2024
6fde4f9
fix: task hover popup & disable splitting algo without linestring (#1…
NSUWAL123 Apr 26, 2024
22e5b92
docs: update timeline with additional dates
spwoodcock Apr 26, 2024
6a56671
docs: simplify readme, move details to docs
spwoodcock Apr 26, 2024
109a33c
docs: reorder readme headings
spwoodcock Apr 26, 2024
1c617a8
docs: correctly format bullet points in readme
spwoodcock Apr 26, 2024
5bfe6c3
docs: add code block style for install script in readme
spwoodcock Apr 26, 2024
befdf9d
fix(backend): get contributors count in project summary (#1484)
Sujanadh Apr 26, 2024
25992b3
fix(backend): use task ids to count validated and mapped status (#1485)
Sujanadh Apr 26, 2024
16a1a9f
docs: add manjitapandey as a contributor for doc (#1486)
allcontributors[bot] Apr 26, 2024
1b2c587
docs: add susmina94 as a contributor for doc, ideas, and bug (#1487)
allcontributors[bot] Apr 26, 2024
76e0695
docs: add manjitapandey as a contributor for ideas (#1489)
allcontributors[bot] Apr 26, 2024
67f303f
docs: add Sujanadh as a contributor for maintenance (#1490)
allcontributors[bot] Apr 26, 2024
fd88fa2
docs: add NSUWAL123 as a contributor for maintenance (#1492)
allcontributors[bot] Apr 26, 2024
5514e48
build: upgrade osm-fieldwork --> v0.9.1 for latest forms
spwoodcock Apr 26, 2024
218eaf0
build: disable vite watch.usePolling due to high cpu usage
spwoodcock Apr 28, 2024
8d7ef9a
feat: prompt user if task area is not fully mapped on mark complete …
NSUWAL123 Apr 29, 2024
fc74358
build: update osm-fieldwork --> 0.9.2 for entities sheet fix
spwoodcock Apr 29, 2024
ae54c4d
feat: add OpenTelemetry configuration for backend API (monitoring) (#…
spwoodcock Apr 30, 2024
5d9cd84
feat (frontend: colour features based on entity mapping status (#1500)
NSUWAL123 Apr 30, 2024
0bb7267
Reduce endpoint calls for project details and submission page (#1501)
spwoodcock May 6, 2024
132402b
fix(dialogTaskActions): same name variable conflict solve (#1506)
NSUWAL123 May 8, 2024
3ebc383
Refactor submission endpoints backend/frontend (#1507)
Sujanadh May 8, 2024
ac9af59
fix: refactored project dashboard and submission graph (#1509)
Sujanadh May 9, 2024
237846b
Fix/frontend state api issues (#1513)
NSUWAL123 May 9, 2024
820e813
Fix/task history tab order (#1514)
NSUWAL123 May 9, 2024
7febda0
fix: populate task_id correctly in feature properties (#1515)
Sujanadh May 13, 2024
a11ea3b
feat: download submissions in geojson (#1517)
Sujanadh May 13, 2024
aff94b0
feat (frontend): submissions geojson download (#1518)
NSUWAL123 May 15, 2024
0da2a50
fix: download submissions(csv,json) & refactor submission endpoints (…
Sujanadh May 15, 2024
ae48dbe
fix: typo error in project name prefix in submission-download-geojson…
Sujanadh May 17, 2024
693ff10
Fix submission download (#1524)
NSUWAL123 May 17, 2024
8e01e65
Fix merge conflict (development -> staging) (#1525)
Sujanadh May 17, 2024
14f237c
Merge branch 'staging' of github.com:hotosm/fmtm into development
Sujanadh May 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"name": "Sujan Adhikari",
"avatar_url": "https://avatars.githubusercontent.com/u/109404840?v=4",
"profile": "https://github.com/Sujanadh",
"contributions": ["code"]
"contributions": ["code", "maintenance"]
},
{
"login": "Mudi-business",
Expand All @@ -77,7 +77,7 @@
"name": "Nishit Suwal",
"avatar_url": "https://avatars.githubusercontent.com/u/81785002?v=4",
"profile": "https://github.com/NSUWAL123",
"contributions": ["code"]
"contributions": ["code", "maintenance"]
},
{
"login": "biomassives",
Expand Down Expand Up @@ -154,7 +154,14 @@
"name": "Manjita Pandey",
"avatar_url": "https://avatars.githubusercontent.com/u/97273021?v=4",
"profile": "https://github.com/manjitapandey",
"contributions": ["bug"]
"contributions": ["bug", "doc", "ideas"]
},
{
"login": "susmina94",
"name": "Susmina_Manandhar",
"avatar_url": "https://avatars.githubusercontent.com/u/108750444?v=4",
"profile": "https://github.com/susmina94",
"contributions": ["doc", "ideas", "bug"]
}
],
"contributorsPerLine": 7,
Expand Down
12 changes: 12 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ OSM_URL=${OSM_URL:-"https://www.openstreetmap.org"}
OSM_SCOPE=${OSM_SCOPE:-"read_prefs"}
OSM_LOGIN_REDIRECT_URI="http${FMTM_DOMAIN:+s}://${FMTM_DOMAIN:-127.0.0.1:7051}/osmauth/"
OSM_SECRET_KEY=${OSM_SECRET_KEY}
OSM_SVC_ACCOUNT_TOKEN=${OSM_SVC_ACCOUNT_TOKEN}

### S3 File Storage ###
S3_ENDPOINT=${S3_ENDPOINT:-"http://s3:9000"}
Expand All @@ -43,3 +44,14 @@ FMTM_DB_NAME=${FMTM_DB_NAME:-"fmtm"}

### Underpass (optional override) ###
UNDERPASS_API_URL=${UNDERPASS_API_URL:-"https://api-prod.raw-data.hotosm.org/v1"}

# Monitoring (OpenTelemetry). Options: 'openobserve', 'sentry'.
MONITORING=${MONITORING}
# Monitoring (OpenObserve)
OPENOBSERVE_USER=${OTEL_USERNAME:-${ODK_CENTRAL_USER:-"[email protected]"}}
OPENOBSERVE_PASSWORD=${OPENOBSERVE_PASSWORD:-"testuserpassword"}
OPENOBSERVE_RETENTION_DAYS=${OPENOBSERVE_RETENTION_DAYS:-90}
OTEL_ENDPOINT=${OTEL_ENDPOINT}
OTEL_AUTH_TOKEN=${OTEL_AUTH_TOKEN}
# Monitoring (Sentry)
SENTRY_DSN=${SENTRY_DSN}
10 changes: 5 additions & 5 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
pytest:
uses: hotosm/gh-workflows/.github/workflows/test_compose.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/test_compose.yml@1.5.1
with:
image_name: ghcr.io/${{ github.repository }}/backend
build_context: src/backend
Expand All @@ -29,20 +29,20 @@ jobs:
secrets: inherit

frontend-tests:
uses: hotosm/gh-workflows/.github/workflows/test_pnpm.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/test_pnpm.yml@1.5.1
with:
working_dir: src/frontend

backend-build:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.5.1
needs: [pytest]
with:
context: src/backend
build_target: prod
image_name: ghcr.io/${{ github.repository }}/backend

frontend-build:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.5.1
needs: [frontend-tests]
with:
context: src/frontend
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
needs:
- smoke-test-backend
- smoke-test-frontend
uses: hotosm/gh-workflows/.github/workflows/remote_deploy.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/remote_deploy.yml@1.5.1
with:
environment: ${{ github.ref_name }}
docker_compose_file: "docker-compose.${{ github.ref_name }}.yml"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_ci_img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:

jobs:
backend-ci-build:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.5.1
with:
context: src/backend
build_target: ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_odk_imgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
build-odkcentral:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.5.1
with:
context: odkcentral/api
image_tags: |
Expand All @@ -26,7 +26,7 @@ jobs:
# multi_arch: true

build-odkcentral-ui:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.5.1
with:
context: odkcentral/ui
image_tags: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build_proxy_imgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build-cert-init-main:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.5.1
with:
context: nginx
build_target: certs-init-main
Expand All @@ -21,7 +21,7 @@ jobs:
multi_arch: true

build-cert-init-dev:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.5.1
with:
context: nginx
build_target: certs-init-development
Expand All @@ -33,7 +33,7 @@ jobs:
multi_arch: true

build-proxy-main:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.5.1
with:
context: nginx
build_target: main
Expand All @@ -44,7 +44,7 @@ jobs:
multi_arch: true

build-proxy-dev:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.5.1
with:
context: nginx
build_target: development
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ on:

jobs:
build_doxygen:
uses: hotosm/gh-workflows/.github/workflows/doxygen_build.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/doxygen_build.yml@1.5.1
with:
output_path: docs/apidocs

build_openapi_json:
uses: hotosm/gh-workflows/.github/workflows/openapi_build.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/openapi_build.yml@1.5.1
with:
image: ghcr.io/${{ github.repository }}/backend:ci-${{ github.ref_name }}
example_env_file_path: ".env.example"
output_path: docs/openapi.json

publish_docs:
uses: hotosm/gh-workflows/.github/workflows/mkdocs_build.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/mkdocs_build.yml@1.5.1
needs:
- build_doxygen
- build_openapi_json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_test_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
pytest:
uses: hotosm/gh-workflows/.github/workflows/test_compose.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/test_compose.yml@1.5.1
with:
image_name: ghcr.io/${{ github.repository }}/backend
build_context: src/backend
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/pr_test_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ on:
workflow_dispatch:

jobs:
frontend-tests:
uses: hotosm/gh-workflows/.github/workflows/test_pnpm.yml@1.4.9
unit-tests:
uses: hotosm/gh-workflows/.github/workflows/test_pnpm.yml@1.5.1
with:
working_dir: src/frontend

e2e-tests:
uses: hotosm/gh-workflows/.github/workflows/test_pnpm.yml@main
with:
container_config: '{"image": "mcr.microsoft.com/playwright:v1.43.0"}'
working_dir: src/frontend
run_command: "test:e2e"
2 changes: 1 addition & 1 deletion .github/workflows/tag_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
backend-build:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@1.5.1
with:
context: src/backend
build_target: prod
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ on:

jobs:
publish-docs-to-wiki:
uses: hotosm/gh-workflows/.github/workflows/wiki.yml@1.4.9
uses: hotosm/gh-workflows/.github/workflows/wiki.yml@1.5.1
with:
homepage_path: "wiki_redirect.md"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@ envsubst

# Scripts
**/openapi.json

# Chart dependencies
chart/charts
20 changes: 13 additions & 7 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ If more details are required, check out the
- [Build the Frontend](#build-the-frontend)
- [Start the Containers](#start-the-containers)
- [Setup ODK Central User (Optional)](#setup-odk-central-user-optional)
- [Import Test Data (Optional)](#import-test-data-optional)
- [Set Up Monitoring (Optional)](#set-up-monitoring-optional)
- [Check Authentication (Optional)](#check-authentication-optional)
- [Alternative Operating Systems](#alternative-operating-systems)
- [Windows](#windows)
Expand Down Expand Up @@ -218,15 +218,21 @@ docker-compose exec central odk-cmd --email [email protected] user-promo

> Note: Alternatively, you may use an external Central server and user.

### Import Test Data (Optional)
### Set Up Monitoring (Optional)

If running a local test version, test data is available to get started quickly.
- There is an optional configuration for application monitoring via OpenTelemetry.
- To enable this set in your `.env` file:

- Navigate to the `import-test-data` endpoint in the API docs page:
```dotenv
# For OpenObserve
MONITORING="openobserve"
# For Sentry
MONITORING="sentry"
```

<http://api.fmtm.localhost:7050/docs#/debug/import_test_data_debug_import_test_data_get>

- Click `Try it out`, then `execute`.
- Check the `.env.example` for additional required parameters.
- Everything should be configured for you to see endpoint calls in the
selected web dashboard, providing full error tracebacks and stats.

### Check Authentication (Optional)

Expand Down
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ test-backend:
docker compose run --rm api pytest

test-frontend:
docker compose run -e CI=True --rm --entrypoint='sh -c' ui 'npm run test'
docker compose run --rm ui-test

test: test-backend test-frontend

Expand Down
Loading
Loading