dify/api/services/plugin
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 Introduce Plugins (#13836) 2025-02-17 17:05:13 +08:00
data_migration.py refactor: replace print statements with proper logging (#25773) 2025-09-18 20:35:47 +08:00
dependencies_analysis.py feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
endpoint_service.py refactor: rename plugin manager to plugin client and rename path from manager to impl (#18876) 2025-04-27 14:22:25 +08:00
oauth_service.py Merge remote-tracking branch 'origin/main' into feat/trigger 2025-09-25 17:14:24 +08:00
plugin_auto_upgrade_service.py Update ast-grep pattern for session.query (#24828) 2025-08-31 17:03:51 +08:00
plugin_migration.py one example of Session (#24135) 2025-09-24 03:32:48 +08:00
plugin_parameter_service.py refactor(api): enhance request handling and time management 2025-09-25 19:46:52 +08:00
plugin_permission_service.py orm filter -> where (#22801) 2025-07-24 00:57:45 +08:00
plugin_service.py Merge remote-tracking branch 'origin/main' into feat/trigger 2025-09-25 17:14:24 +08:00