dify/api/tests/unit_tests/services
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
..
auth update sql in batch (#24801) 2025-09-10 13:00:17 +08:00
tools refactor: Fix some type error (#22594) 2025-07-18 09:26:29 +08:00
workflow feat(api): limit conversation variable description length 2025-09-11 17:42:30 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
services_test_help.py Add unit test for account service (#22278) 2025-07-12 19:58:42 +08:00
test_account_service.py Fix basedpyright type errors (#25435) 2025-09-10 01:54:26 +08:00
test_clear_free_plan_tenant_expired_logs.py Update ast-grep pattern for session.query (#24828) 2025-08-31 17:03:51 +08:00
test_conversation_service.py fix: conversation pinned filter returns incorrect results when no conversations are pinned (#23670) 2025-08-09 22:40:28 +08:00
test_dataset_permission.py Refactor: use logger = logging.getLogger(__name__) in logging (#24515) 2025-08-26 18:10:31 +08:00
test_dataset_service_batch_update_document_status.py [Chore/Refactor] Use centralized naive_utc_now for UTC datetime operations (#24352) 2025-08-22 23:53:05 +08:00
test_dataset_service_update_dataset.py more assert (#24996) 2025-09-08 09:59:43 +08:00
test_metadata_bug_complete.py more assert (#24996) 2025-09-08 09:59:43 +08:00
test_metadata_nullable_bug.py more assert (#24996) 2025-09-08 09:59:43 +08:00