Conversation
3 tasks
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Documentation | 21 minor |
🟢 Metrics 50 complexity · 2 duplication
Metric Results Complexity 50 Duplication 2
🟢 Coverage 96.86% diff coverage · +0.04% coverage variation
Metric Results Coverage variation ✅ +0.04% coverage variation Diff coverage ✅ 96.86% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (9e1cdfb) 21972 20303 92.40% Head commit (7a4e43f) 22163 (+191) 20488 (+185) 92.44% (+0.04%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#2231) 191 185 96.86% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Two new endpoints back the outings search map's density feature: GET /outings/map/heatmap aggregates outings into a PostGIS grid (ST_SnapToGrid) for low/medium zoom levels, and GET /outings/map/tracks returns individual outing tracks for a bbox once zoomed in enough for the result count to stay bounded. Both query PostGIS directly (not Elasticsearch) since geom_detail tracks only exist there, and reuse the existing dogpile/Redis caching idiom. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Nayor
force-pushed
the
feature/outings-heatmap
branch
from
September 13, 2026 12:22
4aaf255 to
7a4e43f
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
GET /outings/map/heatmapendpoint: PostGIS grid aggregation (ST_SnapToGrid) of outings for a bbox, filterable by activity, meant to feed a density heatmap at low/medium map zoom.GET /outings/map/tracksendpoint: individual outing tracks (geom_detail) intersecting a bbox, filterable by activity, capped at 100 results with an explicittruncatedflag rather than a silent partial list — meant to feed a vector layer once the map is zoomed in enough for the outing count to stay bounded.geom_detailtracks only exist there andST_Intersectson the real track is more correct than the existing centroid-onlybbox=filter.cache_outing_mapregion).Related: c2corg/c2c_ui#4573 (frontend counterpart), c2corg/c2c_ui#4573 has the community forum context behind this feature.
Test plan
c2corg_api/tests/views/test_outing_map.py(bbox/zoom/activity validation, heatmap bucket counts, tracks list + activity filter + truncation) — all passing.collections.MappingPython 3.12 incompatibility already tracked by the separatepython-3.12-migrationbranch); none touch the new files.curlsmoke test against a dev instance recommended before merge.🤖 Generated with Claude Code