Implement tile aggregation system for efficient map display#1211
Draft
CollinBeczak wants to merge 6 commits intoadd-new-endpointsfrom
Draft
Implement tile aggregation system for efficient map display#1211CollinBeczak wants to merge 6 commits intoadd-new-endpointsfrom
CollinBeczak wants to merge 6 commits intoadd-new-endpointsfrom
Conversation
- Introduced a new `TileAggregate` model to represent pre-computed tile data, including task counts and centroid coordinates. - Added `TileAggregateRepository` for database interactions, enabling retrieval and management of tile aggregates. - Developed `TileAggregateService` to handle tile data processing, including filtering by difficulty and global status. - Enhanced `TaskController` with a new endpoint to fetch task tiles, returning either clusters or individual task markers based on task count. - Implemented a scheduled job for refreshing tile aggregates, ensuring up-to-date data for map displays. - Updated configuration to include tile refresh interval and batch size settings. - Created SQL migrations for the new tile aggregation tables and functions, supporting efficient data management.
- Updated `TileAggregateRepository` to incorporate an effective zoom level for tile calculations, enhancing precision for zoom levels below 14. - Adjusted SQL functions in migration script to align with the new effective zoom logic, ensuring consistent tile coordinate generation across the application.
f1a5621 to
f7fb6cf
Compare
- Implemented `getTaskTile` method in `TaskController` to fetch task data for specific tile coordinates (z/x/y) for zoom levels 14 and above. - Enhanced `TileAggregateRepository` with `getTaskGroupsByTile` method to retrieve pre-computed task groups for specified tile coordinates. - Updated `TileAggregateService` to include `getTileDataByCoords` method for processing tile data with optional difficulty and global filters. - Added corresponding API route for the new endpoint in `task.api` for improved frontend caching capabilities.
|
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.


TileAggregatemodel to represent pre-computed tile data, including task counts and centroid coordinates.TileAggregateRepositoryfor database interactions, enabling retrieval and management of tile aggregates.TileAggregateServiceto handle tile data processing, including filtering by difficulty and global status.TaskControllerwith a new endpoint to fetch task tiles, returning either clusters or individual task markers based on task count.