-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update dependencies in requirements files * Updated __get_value method to convert enum values to string format * Update GitHub Actions workflow to include Codecov token * Bump version to 1.0.0.dev1 in version.py * Refactor project structure - Refactored import statements in various modules to point to the new chalice_support package * update import paths in tests and blueprints to reflect new structure * Enhance generic_query function to accept excluded fields and update decorators to skip private attributes. * refactor: move tests to dedicated test directory * feat: Complete integration of fast_agave * Refactor: Consolidate import statements * Refactor: Update Makefile and improve description formatting in RestApiBlueprint * Refactor: Update import paths in resources and blueprints to reflect new structure * Refactor: Update setup.py to use extras_require for dependencies and add installation validation in agave module * Enhance setup.py to enforce installation with extras * Refactor setup.py to improve installation validation by allowing specific commands to skip checks for required extras * Update version to 1.1.0.dev1 in version.py * Update cuenca-validations version to 2.0.0.dev7 in setup.py * Update version to 1.1.0.dev2 in version.py * Update version to 1.1.0.dev3 and modify installation validation in setup.py to issue a warning instead of an error for missing extras * Enhance import error handling to guide users on required installation options * Refactor: Remove chalice_support and fastapi_support module and update imports to use chalice and fastapi directly * Fix: Rename 'fast_support' to 'fastapi' in setup.py * Update Python version and dependencies; refactor Makefile and requirements files * Update Python version in setup.py and workflows * Update version to 1.1.0.dev5 in version.py * Update dependencies in requirements and setup files * Refactor: Replace 'dict()' method with 'model_dump()' * Fix: Change platform_id in UserQuery to be optional * Refactor: Change type hints from 'Dict' to 'dict' * Refactor: Update type hints from 'List' to 'list' * Update version to 1.1.0.dev7 in version.py * Add logging to SQS task processing in sqs_tasks.py * Update version to 1.1.0.dev8 in version.py * Add logger middlewares and include sensitive fields tracking. * Update version to 1.1.0.dev9 in version.py * Refactor: Update type hint for parse_body function to use Union for better clarity * Enhance SQS task logging by adding detailed task information and result parsing * Update version to 1.1.0.dev10 in version.py * Lint * Update obfuscation logic to include model names for sensitive fields * Update cuenca-validations version to 2.0.0.dev13 in requirements.txt and setup.py * Update version to 1.1.0.dev11 in version.py * Replace mongoengine components with mongoengine_plus * Refactor error handling: Rename FastAgaveError and related classes to AgaveError * Remove sensitive data handling from middleware and related components * Move 'task' package out of FastAPI and update imports * Move aiobotocore and types-aiobotocore-sqs to 'tasks' * Refactor dependency versions in requirements.txt and setup.py * Refactor task remove logging * Added `asyncio_mode = auto` to `setup.cfg` for improved asyncio handling in tests * Remove unused import from base.py * Update README.md to enhance installation instructions * Update version to 1.1.0.dev12 in version.py * Rename chalice and fastapi folders for improved structure * Update GitHub Actions workflows to use latest action versions * Consolidate models and fixtures for reusability * rename 'fast' to 'fastapi' in test * Format * Remove unnecessary db_alias from models * Refactor query method in Card class to specify return type as dict * Promote 'task' folder to top level for clarity * Update setup.py * Fix typo in setup.py dependencies list * Update requirements files to remove commented sections * Update version to 1.1.0.dev13 * Update dependencies in requirements.txt to stable versions * Update mongoengine-plus dependency version in setup.py * Increment version to 1.1.0.dev14 * Remove BaseModel and use mongoengine_plus.BaseModel instead * Fix formatting in requirements.txt by adding a newline at the end of the file * Unify endpoint tests for FastAPI and Chalice * Update dependency version ranges in setup.py * Enhance README.md with detailed installation and usage instructions * Version from 1.1.0.dev14 to 1.0.0 * Standardize Chalice client integration in tests * Replace client fixture with fastapi_client in tests * Remove redundant assignment of wrong_params * Import uuid_field from cuenca-validations * Remove obsolete test files for model helpers, base model, and event handlers * Refactor ChaliceClient to handle JSON requests and remove helper functions * Update cuenca-validations dependency version from 2.0.2.dev1 to 2.0.2 in requirements.txt --------- Co-authored-by: gabino <[email protected]>
- Loading branch information
1 parent
f56c217
commit f0ca00f
Showing
98 changed files
with
2,935 additions
and
781 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
__all__ = ['RestApiBlueprint'] | ||
from .rest_api import RestApiBlueprint |
File renamed without changes.
This file contains 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
This file contains 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
File renamed without changes.
File renamed without changes.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
from dataclasses import dataclass | ||
from typing import Optional | ||
|
||
|
||
@dataclass | ||
class AgaveError(Exception): | ||
error: str | ||
status_code: int | ||
|
||
|
||
@dataclass | ||
class BadRequestError(AgaveError): | ||
status_code: int = 400 | ||
|
||
|
||
@dataclass | ||
class UnauthorizedError(AgaveError): | ||
status_code: int = 401 | ||
|
||
|
||
@dataclass | ||
class ForbiddenError(AgaveError): | ||
status_code: int = 403 | ||
|
||
|
||
@dataclass | ||
class NotFoundError(AgaveError): | ||
status_code: int = 404 | ||
|
||
|
||
@dataclass | ||
class MethodNotAllowedError(AgaveError): | ||
status_code: int = 405 | ||
|
||
|
||
@dataclass | ||
class ConflictError(AgaveError): | ||
status_code: int = 409 | ||
|
||
|
||
@dataclass | ||
class UnprocessableEntity(AgaveError): | ||
status_code: int = 422 | ||
|
||
|
||
@dataclass | ||
class TooManyRequests(AgaveError): | ||
status_code: int = 429 | ||
|
||
|
||
@dataclass | ||
class AgaveViewError(AgaveError): | ||
status_code: int = 500 | ||
|
||
|
||
@dataclass | ||
class ServiceUnavailableError(AgaveError): | ||
status_code: int = 503 | ||
|
||
|
||
@dataclass | ||
class RetryTask(Exception): | ||
countdown: Optional[int] = None |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
__all__ = ['RestApiBlueprint'] | ||
|
||
from .rest_api import RestApiBlueprint | ||
|
||
__all__ = ['RestApiBlueprint'] |
Oops, something went wrong.