Skip to content

Locate/Result and Export #242

Open
susilnem wants to merge 2 commits intoproject/locate-feature-workflowfrom
feature/locate-result-export
Open

Locate/Result and Export #242
susilnem wants to merge 2 commits intoproject/locate-feature-workflowfrom
feature/locate-result-export

Conversation

@susilnem
Copy link
Copy Markdown
Member

Addresses

  • Result and export file creation for locate project

Depends on

Changes

  • add new field task_partition_index
  • changes on temp to result table for locate project results

This PR doesn't introduce any:

  • temporary files, auto-generated files or secret keys
  • n+1 queries
  • flake8 issues
  • print
  • typos
  • unwanted comments

This PR contains valid:

  • tests
  • permission checks (tests here too)
  • translations

- add new field task_partition_index
- changes on temp to result table for locate project results
@susilnem susilnem force-pushed the feature/locate-result-export branch from abc0857 to c9aae1d Compare March 20, 2026 06:20
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 20, 2026

Codecov Report

❌ Patch coverage is 77.77778% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.52%. Comparing base (49b7811) to head (00a5cfc).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../project/exports/mapping_results_aggregate/task.py 55.55% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@                         Coverage Diff                         @@
##           project/locate-feature-workflow     #242      +/-   ##
===================================================================
- Coverage                            87.53%   87.52%   -0.02%     
===================================================================
  Files                                  211      211              
  Lines                                12744    12756      +12     
  Branches                              1078     1080       +2     
===================================================================
+ Hits                                 11156    11165       +9     
- Misses                                1188     1191       +3     
  Partials                               400      400              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread apps/project/tests/e2e_create_project_tile_map_service_test.py Outdated
@susilnem susilnem marked this pull request as ready for review March 25, 2026 05:11
@susilnem susilnem requested review from thenav56 and tnagorra March 25, 2026 05:12
groupby_cols = ["project_id", "group_id", "task_id", "result"]
index_cols = ["task_id"]

if "task_partition_index" in results_df.columns and project.project_type_enum == ProjectTypeEnum.LOCATE:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a NOTE why we are doing this.

case Project.Type.LOCATE:
# TODO(susilnem): We might need to adjust this number later.
group_size = 120
group_size = 25
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to add a assert_never here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants