Skip to content

Conversation

@ajmcgraw
Copy link
Collaborator

No description provided.

@ajmcgraw ajmcgraw requested a review from Copilot June 20, 2025 01:55
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the project to version 0.11.6 by updating dependency paths, moving to Python 3.12, and adding a middleware to block VRT-related requests.

  • Updated pyproject.toml files to adjust dependency paths (introducing an extra forward slash).
  • Upgraded the Python requirement in the root and AWS Lambda Dockerfile to 3.12.
  • Introduced BlockVRTMiddleware to reject requests involving VRT files.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/titiler/mosaic/pyproject.toml Adjusted dependency path to use an extra forward slash.
src/titiler/extensions/pyproject.toml Adjusted dependency path to use an extra forward slash.
src/titiler/core/titiler/core/middleware.py Added BlockVRTMiddleware to block VRT files.
src/titiler/application/titiler/application/main.py Added BlockVRTMiddleware to the middleware stack (appears twice).
src/titiler/application/pyproject.toml Adjusted dependency paths with an extra forward slash.
pyproject.toml Upgraded Python version requirement to 3.12 and updated dependency paths.
dockerfiles/Dockerfile.gunicorn Commented out removal of temporary files.
deployment/aws/lambda/Dockerfile Updated to Python 3.12 and installed additional system dependencies.

LoggerMiddleware,
LowerCaseQueryStringMiddleware,
TotalTimeMiddleware,
BlockVRTMiddleware,
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

BlockVRTMiddleware appears to be added twice to the middleware stack; consider consolidating its registration to a single instance to avoid potential duplicate processing.

Copilot uses AI. Check for mistakes.
# Configured for volume-mount path of Lambda Dockerfile. For local
# development, update accordingly for your local filesystem path:
"titiler.core @ file:///titiler/src/titiler/core",
"titiler.core @ file:///titiler/src//titiler/core",
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

The dependency path includes an extra forward slash which might be redundant; verify if this is intentional or if it could be standardized to ensure consistency.

Suggested change
"titiler.core @ file:///titiler/src//titiler/core",
"titiler.core @ file:///titiler/src/titiler/core",

Copilot uses AI. Check for mistakes.
RUN python -m pip install -U pip
RUN python -m pip install /tmp/titiler/core /tmp/titiler/extensions["cogeo,stac"] /tmp/titiler/mosaic /tmp/titiler/application --no-cache-dir --upgrade
RUN rm -rf /tmp/titiler
# RUN rm -rf /tmp/titiler
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

[nitpick] The removal of the temporary titiler directory is commented out; clarify whether this is for debugging purposes or if it should be restored for production cleanliness.

Suggested change
# RUN rm -rf /tmp/titiler
RUN rm -rf /tmp/titiler

Copilot uses AI. Check for mistakes.
@DanSchoppe DanSchoppe closed this Aug 7, 2025
@ajmcgraw ajmcgraw deleted the 0.11.6-upgrade-anna branch October 14, 2025 19:48
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.

3 participants