dify/api/models
GareArc 83f5850d0a
refactor(telemetry): add resolved_parent_context property and fix edge cases
- Add resolved_parent_context property to BaseTraceInfo for reusable parent context extraction
- Refactor enterprise_trace.py to use property instead of duplicated dict plucking (~19 lines eliminated)
- Fix UUID validation in exporter.py with specific error logging for invalid trace correlation IDs
- Add error isolation in event_handlers.py to prevent telemetry failures from breaking user operations
- Replace pickle-based payload_fallback with JSON storage rehydration for security
- Update TelemetryEnvelope to use Pydantic v2 ConfigDict with extra='forbid'
- Update tests to reflect contract changes and new error handling behavior
2026-03-01 19:33:59 -08:00
..
__init__.py revert: revert human input relevant code (#31766) 2026-01-30 19:18:49 +08:00
_workflow_exc.py feat: Persist Variables for Enhanced Debugging Workflow (#20699) 2025-06-24 09:05:29 +08:00
account.py refactor: migrate some ns.model to BaseModel (#30388) 2026-01-01 00:38:12 +08:00
api_based_extension.py fix: use default_factory for callable defaults in ORM dataclasses (#28730) 2025-11-27 09:39:49 +09:00
base.py revert: revert human input relevant code (#31766) 2026-01-30 19:18:49 +08:00
dataset.py feat: Summary index for knowledge. (#31719) 2026-01-30 11:08:09 +08:00
engine.py feat(api): Add image multimodal support for LLMNode (#17372) 2025-04-30 17:28:02 +08:00
enums.py revert: revert human input relevant code (#31766) 2026-01-30 19:18:49 +08:00
model.py refactor(telemetry): add resolved_parent_context property and fix edge cases 2026-03-01 19:33:59 -08:00
oauth.py fix: use default_factory for callable defaults in ORM dataclasses (#28730) 2025-11-27 09:39:49 +09:00
provider_ids.py feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00
provider.py chore: use from __future__ import annotations (#30254) 2026-01-06 23:57:20 +09:00
source.py fix: use default_factory for callable defaults in ORM dataclasses (#28730) 2025-11-27 09:39:49 +09:00
task.py fix: use default_factory for callable defaults in ORM dataclasses (#28730) 2025-11-27 09:39:49 +09:00
tools.py chore: use from __future__ import annotations (#30254) 2026-01-06 23:57:20 +09:00
trigger.py fix: flask db check fails due to nullable mismatch between migrations and models (#30474) 2026-01-06 20:23:59 +08:00
types.py [Bugfix] Fixed an issue with UUID type queries in MySQL databases (#28941) 2025-12-02 14:37:23 +08:00
web.py fix: use default_factory for callable defaults in ORM dataclasses (#28730) 2025-11-27 09:39:49 +09:00
workflow.py refactor(typing): Fixup typing A2 - workflow engine & nodes (#31723) 2026-01-31 18:00:56 +09:00