dify/api/tests/unit_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
..
configs Typing test (#24651) 2025-08-28 09:36:39 +08:00
controllers Revert "feat: email register refactor" (#25367) 2025-09-08 19:20:09 +08:00
core remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
extensions chore: bump supabase and pyjwt versions and added tests (#24681) 2025-08-28 13:45:56 +08:00
factories feat: support bool type variable frontend (#24437) 2025-08-26 18:16:05 +08:00
libs test: imporve (#25461) 2025-09-10 11:36:22 +08:00
models [Chore/Refactor] Improve type annotations in models module (#25281) 2025-09-08 09:42:27 +08:00
oss chore: cleanup unnecessary mypy suppressions on imports (#24712) 2025-08-28 23:17:25 +08:00
repositories Fix: Resolve workflow_node_execution primary key conflicts with UUID v7 (#24643) 2025-09-02 14:18:29 +08:00
services feat(api): limit conversation variable description length 2025-09-11 17:42:30 +08:00
tasks Refactor: use logger = logging.getLogger(__name__) in logging (#24515) 2025-08-26 18:10:31 +08:00
utils chore: cleanup unnecessary mypy suppressions on imports (#24712) 2025-08-28 23:17:25 +08:00
.gitignore Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
conftest.py fix: resolve Redis mock import error in test configuration (#22663) 2025-07-20 11:06:38 +08:00