Skip to content

Conversation

@vincentsarago
Copy link
Member

proposed changed for #639

This PR is moving the env configuration into ApiSettings

Copy link
Collaborator

@jonhealy1 jonhealy1 left a comment

Choose a reason for hiding this comment

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

LGTM

@vincentsarago vincentsarago requested a review from jonhealy1 April 11, 2024 11:26
stac_fastapi_title: str = "stac-fastapi"
stac_fastapi_description: str = "stac-fastapi"
stac_fastapi_version: str = "0.1"
stac_fastapi_landing_id: str = "stac-fastapi"
Copy link
Member Author

Choose a reason for hiding this comment

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

as discussed in #639 I think it makes more sense for this variable to be named landing_id

stac_fastapi_title: str = "stac-fastapi"
stac_fastapi_description: str = "stac-fastapi"
stac_fastapi_version: str = "0.1"
stac_fastapi_landing_id: str = "stac-fastapi"
Copy link
Member Author

Choose a reason for hiding this comment

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

I've also reverted to stac-fastapi default as it was before

landing_page_id: str = attr.ib(default="stac-fastapi")

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good to me. The version is the version number of the User's stac_fastapi, not this version ie. soon to be 2.5.0

@vincentsarago
Copy link
Member Author

#657 @jonhealy1 could you check with the latest change 🙏

@m-mohr I'll wait for your 👍

@vincentsarago vincentsarago merged commit 82816fa into landing-page-config-via-env Apr 11, 2024
@vincentsarago vincentsarago deleted the vincents/update-639 branch April 11, 2024 13:30
vincentsarago added a commit that referenced this pull request Apr 11, 2024
* Allow an easy way to configure the landing page id, description, title and version via env variables

* use pydantic settings (#657)

* use pydantic settings

* rename stac_fastapi_id to stac_fastapi_landing_id

* Update docs/src/tips-and-tricks.md

---------

Co-authored-by: vincentsarago <[email protected]>
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