-
Notifications
You must be signed in to change notification settings - Fork 12
Conflation project type osm ref #1051
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
Merged
ofr1tz
merged 12 commits into
conflation-project-type
from
conflation-project-type-osm-ref
Oct 22, 2025
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7c6d023
feat:add osm ref to results (wip)
ofr1tz 25d9de7
feat(conflation): adjust sql script to add ref colum to results_temp …
ofr1tz 10b03c2
fix: replace empty string with null
ofr1tz afec6a8
fix(conflation): ref column in agg_results
ofr1tz 8fa1bba
style(conflation): formatting
ofr1tz a562833
fix: remove numpy from requirements
ofr1tz bb0d012
feat(conflation): add ref column to postgres results tables
ofr1tz 2658c06
feat(conflation): add ref columns in postgres test setup
ofr1tz 73b53ac
feat(conflation): use separate mapping_sessions_refs table
ofr1tz c0dd1a3
fix(conflation): add ref to results_geometry_temp
ofr1tz fb074d6
fix(conflation): add conflation project draft to integration fixtures…
ofr1tz 004ac56
remove unnecessary comments
ofr1tz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
25 changes: 25 additions & 0 deletions
25
mapswipe_workers/tests/integration/fixtures/conflation/projectDrafts/conflation.json
This file contains hidden or 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,25 @@ | ||
| { | ||
| "createdBy": "atCSosZACaN0qhcVjtMO1tq9d1G3", | ||
| "geometry": "https://firebasestorage.googleapis.com/v0/b/dev-mapswipe.appspot.com/o/all_predictions_192.geojson?alt=media&token=b7a85e56-6ab1-4e0d-a734-a772025a88b8", | ||
| "filter": "way['building']", | ||
| "groupSize": 25, | ||
| "image": "https://firebasestorage.googleapis.com/v0/b/dev-mapswipe.appspot.com/o/projectImages%2F1742895229710-project-image-1x1.png?alt=media&token=26cf1956-9ab7-4348-b529-9952f2f8424e", | ||
| "lookFor": "Buildings", | ||
| "manualUrl": "https://fair-dev.hotosm.org/start-mapping/358", | ||
| "name": "Conflate fAIr buildings - Kathmandu (1)\nHOT", | ||
| "projectDetails": "This is a test.", | ||
| "projectNumber": 1, | ||
| "projectRegion": "Kathmandu", | ||
| "projectTopic": "Conflate fAIr buildings", | ||
| "projectTopicKey": "conflate fair buildings - kathmandu (1) hot", | ||
| "projectType": 8, | ||
| "requestingOrganisation": "HOT", | ||
| "tileServer": { | ||
| "credits": "Please add imagery credits here.", | ||
| "name": "custom", | ||
| "url": "https://2glp8ghj65.execute-api.us-east-1.amazonaws.com/cog/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?url=https%3A%2F%2Foin-hotosm-temp.s3.us-east-1.amazonaws.com%2F62d85d11d8499800053796c1%2F0%2F62d85d11d8499800053796c2.tif", | ||
| "wmtsLayerName": "-" | ||
| }, | ||
| "tutorialId": "tutorial_-MQsj5VWpNcJxCTVTOyH", | ||
| "verificationNumber": 3 | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,14 @@ | ||
| ALTER TABLE results_temp | ||
| ADD COLUMN ref jsonb; | ||
|
|
||
| ALTER TABLE results_geometry_temp | ||
| ADD COLUMN ref jsonb; | ||
|
|
||
| CREATE TABLE IF NOT EXISTS public.mapping_sessions_refs ( | ||
| mapping_session_id int8, | ||
| task_id varchar, | ||
| ref JSONB not null, | ||
| PRIMARY KEY (mapping_session_id, task_id), | ||
| FOREIGN KEY (mapping_session_id) | ||
| references mapping_sessions (mapping_session_id) | ||
| ); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.