Skip to content
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

rename /crop endpoints to /bbox or /feature #704

Merged
merged 3 commits into from
Sep 28, 2023
Merged

Conversation

vincentsarago
Copy link
Member

@vincentsarago vincentsarago commented Sep 27, 2023

closes #702

This PR does:

  • rename /crop endpoints to both /bbox and /feature endpoint breaking
  • replace img_dependency with img_preview_dependency and img_part_dependency breaking
  • remove 1024 default for max_size when using bbox and feature endpoints

@@ -33,7 +33,8 @@ dependencies = [
"geojson-pydantic>=1.0,<2.0",
"jinja2>=2.11.2,<4.0.0",
"numpy",
"pydantic~=2.0",
# https://github.com/pydantic/pydantic/pull/7653
"pydantic==2.3",
Copy link
Member Author

Choose a reason for hiding this comment

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

ref #703

This will be fixed with pydantic 2.4.2

@@ -320,6 +320,20 @@ def __post_init__(self):
self.max_size = None


@dataclass
class PartFeatureParams(DefaultDependency):
Copy link
Member Author

Choose a reason for hiding this comment

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

New Dependency for /bbox, /feature and /statistics [POST] endpoint where we don't set max_size default

Copy link
Contributor

Choose a reason for hiding this comment

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

PartFeatureParams is a confusing name but I can't really thing of anything better myself 🤷

@vincentsarago vincentsarago merged commit c6b5468 into main Sep 28, 2023
9 checks passed
@vincentsarago vincentsarago deleted the renameCropEndpoints branch September 28, 2023 08:41
Copy link
Contributor

@geospatial-jeff geospatial-jeff left a comment

Choose a reason for hiding this comment

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

LGTM

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.

rename /crop -> /bbox and /feature ?
2 participants