Closed JaeAeich closed 3 days ago
This pull request introduces new base classes TESK
, requests
, and model validators. It also includes significant enhancements to the documentation, Helm chart configurations, and Kubernetes Ingress settings. Additionally, new unit tests have been added for various modules, and a GitHub Actions workflow has been set up to check for vulnerabilities.
Files | Changes |
---|---|
tesk/app.py tesk/tesk_app.py |
Refactored the application initialization to use the new TeskApp class, simplifying the main entry point and configuration loading. |
tesk/api/ga4gh/tes/models/base/base_validator.py tesk/api/ga4gh/tes/base/base_tesk_request.py tesk/api/ga4gh/tes/base/__init__.py tesk/api/ga4gh/tes/models/base/__init__.py |
Introduced new base classes for TES API requests and custom Pydantic validators, providing a structured approach for request handling and validation. |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 98.21%. Comparing base (
c5128a9
) to head (bf33bc8
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@sourcery-ai review
I'm sorry, I don't understand the command @sourcery-ai review
Please use @sourcery-ai review
to request a review
@sourcery-ai review
🧙 Sourcery is reviewing your pull request!
please check #198
Summary by Sourcery
This pull request introduces new base classes for the TESK API, including
TeskApp
for application initialization and running,BaseValidator
for custom validation logic, andBaseTeskRequest
for common TES API endpoint logic. Additionally, it refactors the existing application initialization logic to utilize the newTeskApp
class.TeskApp
class to encapsulate the initialization and running of the TESK API server, extending the Foca framework.BaseValidator
class for custom validation logic, which must be implemented by all custom validators.BaseTeskRequest
class to define common properties and methods for TES API endpoint business logic.app.py
to the newTeskApp
class.