dify/api/tests
QuantumGhost 81d9a9d00d feat(api): limit conversation variable description length
Previously, conversation variable descriptions had no length limit, causing errors
when debugging chatflows. These descriptions are saved as draft variable descriptions
during debugging, which have a 256-character limit. Variables with descriptions
exceeding this limit could not be saved, resulting in 500 errors and "Internal
Server Error" messages during chatflow debugging.

This commit implements description length limits for conversation variables:

- New chatflows: Hard limit of 256 characters for descriptions. Longer
  descriptions are rejected and prevent chatflow saving.
- Existing chatflows: If all conversation variable descriptions are under
  256 characters, the same limit applies as new chatflows. Otherwise, no limit
  is enforced to maintain backward compatibility.
2025-09-11 17:42:30 +08:00
..
artifact_tests/dependencies build: introduce uv as Python package manager (#16317) 2025-04-15 16:16:49 +08:00
integration_tests feat(api): limit conversation variable description length 2025-09-11 17:42:30 +08:00
test_containers_integration_tests security(api): fix privilege escalation vulnerability in model config and chat message APIs (#25518) 2025-09-11 14:53:35 +08:00
unit_tests feat(api): limit conversation variable description length 2025-09-11 17:42:30 +08:00
__init__.py Initial commit 2023-05-15 08:51:32 +08:00