tududi/backend/tests/integration
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
..
admin-users-cascade.test.js Fix bug 578 (#648) 2025-12-04 14:00:51 +02:00
admin-users.test.js chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
admin.test.js admin,shares: add authentication tests for all endpoints 2025-09-22 15:20:46 +03:00
api-tokens.test.js API Access (#495) 2025-11-07 15:19:30 +02:00
areas.test.js Fix notes.js & areas.js UID usage and remove IDs. (#355) 2025-09-29 16:03:46 +03:00
auth.test.js Fix E2E test breakage (#380) 2025-10-05 16:04:46 +03:00
first-time-setup.test.js Set first user role as admin 2025-10-25 21:48:28 +03:00
inbox-no-tags.test.js Feat add inbox flow (#676) 2025-12-08 09:21:35 +02:00
inbox.test.js Fix inbox items refresh (#398) 2025-10-07 17:10:33 +03:00
monthly-recurrence-current-month.test.js Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
notes.test.js Merge branch 'cleanups' into pro/user-perms 2025-10-02 15:42:42 +03:00
notification-preferences.test.js Feat telegram notifications (#692) 2025-12-09 20:26:53 +02:00
notification-soft-delete.test.js Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
notification-telegram-rate-limit.test.js Fix Telegram notification spam with channel-level rate limiting (#951) 2026-03-19 20:26:11 +02:00
permissions-admin.test.js Feat refactor tasks pt1 (#536) 2025-11-15 14:02:06 +02:00
permissions-notes.test.js merge fixes. 2025-10-03 14:16:01 +03:00
permissions-projects.test.js chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
permissions-tasks.test.js Fix an issue with task not completing in TaskDetails view (#620) 2025-11-30 14:51:49 +02:00
project-notes-deletion.test.js Fix an issue with task not completing in TaskDetails view (#620) 2025-11-30 14:51:49 +02:00
project-recurring-filter.test.js Limit recurring tasks in tasks list view (#298) 2025-09-04 17:00:33 +03:00
project-sharing.test.js Fix an issue with attachment permissions 2025-12-08 16:33:49 +02:00
projects.test.js Fix project update API to support clearing nullable fields (#961) 2026-03-22 22:17:23 +02:00
quotes.test.js Linting cleanup (#99) 2025-07-01 11:40:09 +03:00
recurring-display-fixes.test.js Replace ?uid with /:uid (#482) 2025-11-04 14:29:31 +02:00
recurring-tasks-dst.test.js Fix recurring task initial due date calculation to match recurrence pattern (#965) 2026-03-23 18:24:54 +02:00
recurring-tasks.test.js Fix initial due date calculation for weekly tasks with multiple weekdays (#974) (#975) 2026-03-26 17:19:59 +02:00
search.test.js Show original task names for recurring tasks in search results (#914) (#915) 2026-03-06 08:57:10 +02:00
shares.test.js chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
smart-recurring-deletion.test.js Fix an issue with task not completing in TaskDetails view (#620) 2025-11-30 14:51:49 +02:00
subtask-ordering.test.js Fix refactor pt2 (#734) 2025-12-27 17:46:34 +02:00
subtasks-completion.test.js Fix cancelled control tasks and subtasks (#867) 2026-02-26 23:54:09 +02:00
subtasks.test.js Fix subtask completion auto-completing parent task (#792) 2026-01-23 20:04:58 +02:00
tags.test.js Fix tags deletion (#447) 2025-10-23 23:28:56 +03:00
task-attachments.test.js Add test coverage 2025-12-07 14:12:38 +02:00
task-edit-shared-project.test.js Fix an issue with task not completing in TaskDetails view (#620) 2025-11-30 14:51:49 +02:00
tasks-metrics.test.js Fix deferred planned tasks not appearing in Today view after defer time (#892) 2026-03-03 12:52:53 +02:00
tasks-pagination.test.js Fix smart view pagination (#557) 2025-11-17 18:39:14 +02:00
tasks-today-plan.test.js Fix deferred planned tasks not appearing in Today view after defer time (#892) 2026-03-03 12:52:53 +02:00
tasks.test.js fix: prevent task name truncation when creating from inbox (#1020) 2026-04-13 23:14:52 +03:00
telegram-duplicate-scenario.test.js Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
telegram-duplicates.test.js Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
telegram.test.js Linting cleanup (#99) 2025-07-01 11:40:09 +03:00
timezone-fixes.test.js Add defer until to upcoming (#739) 2025-12-28 08:39:21 +02:00
url.test.js Fix sequelize issue (#678) 2025-12-08 11:27:00 +02:00
user-create-script.test.js Fix user service tests. 2025-07-31 14:02:42 +03:00
users.test.js Fix/descriptive ai feat (#464) 2025-11-02 14:14:55 +02:00
views.test.js Reorder elements (#687) 2025-12-09 10:51:51 +02:00