dify/api/repositories
Harry d5ff89f6d3 refactor(api): enhance request handling and time management
- Initialized `response` variable in `trigger.py` to ensure proper handling in the trigger endpoint.
- Updated `http_parser.py` to conditionally set `CONTENT_TYPE` and `CONTENT_LENGTH` headers for improved robustness.
- Changed `datetime.utcnow()` to `datetime.now(UTC)` in `sqlalchemy_workflow_trigger_log_repository.py` and `rate_limiter.py` for consistent time zone handling.
- Refactored `async_workflow_service.py` to use the public method `get_tenant_owner_timezone` for better encapsulation.
- Simplified subscription retrieval logic in `plugin_parameter_service.py` for clarity.

These changes improve code reliability and maintainability while ensuring accurate time management and request processing.
2025-09-25 19:46:52 +08:00
..
__init__.py feat(api/repo): Allow to config repository implementation (#21458) 2025-07-14 14:54:38 +08:00
api_workflow_node_execution_repository.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
api_workflow_run_repository.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
factory.py feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00
sqlalchemy_api_workflow_node_execution_repository.py feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
sqlalchemy_api_workflow_run_repository.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
sqlalchemy_workflow_trigger_log_repository.py refactor(api): enhance request handling and time management 2025-09-25 19:46:52 +08:00
workflow_trigger_log_repository.py feat/trigger universal entry (#24358) 2025-08-23 20:18:08 +08:00