tududi/backend/models
Chris 0265f6e70c
fix: prevent task name truncation when creating from inbox (#1020)
* fix: prevent Telegram polling errors from blocking container startup (#989)

This fix addresses the issue where the container gets stuck in an endless
loop of Telegram connection errors when the bot is configured but Telegram
is unreachable during startup.

Changes:
- Add 10-second startup delay before initializing Telegram polling to allow
  the system to settle
- Implement exponential backoff (5s to 5min) when Telegram connection fails
- Add rate-limited error logging (max once per minute per user) to reduce
  log spam and prevent event loop blocking
- Track error state per user to manage backoff independently
- Auto-reset error state on successful connection
- Update tests to account for new error state tracking

Fixes #989

* fix: prevent task name truncation when creating from inbox

Changes:
- Change task.name from VARCHAR(255) to TEXT to prevent any potential truncation
- Change inbox_items.title and cleaned_content from VARCHAR(255) to TEXT
- Add integration test to verify long task names are preserved
- Add unit test to verify cleaned_content doesn't truncate

While investigation showed no actual truncation occurring in the codebase,
this defensive fix ensures unlimited text length for task names and inbox
content, eliminating any possibility of truncation at the database level.

Fixes #1016
2026-04-13 23:14:52 +03:00
..
action.js chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
api_token.js API Access (#495) 2025-11-07 15:19:30 +02:00
area.js Standardize UID implementation across backend 2025-08-06 15:54:45 +03:00
auth_audit_log.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
backup.js Feat backups (#686) 2025-12-09 08:00:46 +02:00
calendar_token.js Standardize UID implementation across backend 2025-08-06 15:54:45 +03:00
inbox_item.js fix: prevent task name truncation when creating from inbox (#1020) 2026-04-13 23:14:52 +03:00
index.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
note.js Notes page revamp! (#487) 2025-11-06 17:59:30 +02:00
notification.js Fix Telegram notification spam by marking JSON field as changed (#969) 2026-03-24 14:30:31 +02:00
oidc_identity.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
oidc_state_nonce.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
permission.js chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
project.js Fix project name overflow and add 6-word validation limit (#972) 2026-03-24 17:36:24 +02:00
recurringCompletion.js Fix recurring structure (#646) 2025-12-04 13:29:37 +02:00
role.js chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
setting.js Scaffold smtp service (#590) 2025-11-24 17:58:09 +02:00
tag.js Fix tags deletion (#447) 2025-10-23 23:28:56 +03:00
task.js fix: prevent task name truncation when creating from inbox (#1020) 2026-04-13 23:14:52 +03:00
task_attachment.js Add file attacmhments 2025-12-07 14:12:38 +02:00
task_event.js Fix bump issues (#651) 2025-12-04 18:19:40 +02:00
user.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
view.js Reorder elements (#687) 2025-12-09 10:51:51 +02:00