vikunja/pkg/webtests
kolaente 39b4568bc5
refactor: centralize HTTP error handling (#2062)
This changes the error handling to a centralized HTTP error handler in `pkg/routes/error_handler.go` that converts all error types to proper HTTP responses. This simplifies the overall error handling because http handler now only need to return the error instead of calling HandleHTTPError as previously.
It also removes the duplication between handling errors with and without Sentry.

🐰 Hop along, dear errors, no more wrapping today!
We've centralized handlers in a shiny new way,
From scattered to unified, the code flows so clean,
ValidationHTTPError marshals JSON supreme!
Direct propagation hops forward with glee,
A refactor so grand—what a sight to see! 🎉
2026-01-08 10:02:59 +00:00
..
_test.go.tpl chore: rename API test suites (#938) 2025-06-13 08:23:17 +00:00
api_tokens_test.go fix: ensure API consistency for /tasks and empty array responses (#1988) 2025-12-15 15:34:13 +00:00
archived_test.go fix: correct comments 2025-07-02 17:46:21 +02:00
caldav_test.go fix(caldav): remove METHOD:PUBLISH from caldav exports (#1576) 2025-09-30 18:16:07 +00:00
error_responses_test.go refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00
healthcheck_test.go feat: introduce shared health check logic (#1073) 2025-07-02 21:01:41 +00:00
integrations.go refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00
kanban_test.go refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00
link_share_avatar_test.go feat!: rename right to permission (#1277) 2025-08-13 11:05:05 +02:00
link_sharing_auth_test.go chore: rename API test suites (#938) 2025-06-13 08:23:17 +00:00
link_sharing_test.go refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00
login_test.go chore: rename API test suites (#938) 2025-06-13 08:23:17 +00:00
project_test.go refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00
register_test.go chore: rename API test suites (#938) 2025-06-13 08:23:17 +00:00
task_attachment_upload_test.go fix(attachments): extend upload file size to form data (#1577) 2025-09-30 22:23:07 +00:00
task_collection_test.go fix(kanban): repeating tasks dates won't update when moved in done bucket (#1638) 2025-11-14 16:57:53 +00:00
task_comment_test.go refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00
task_test.go refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00
token_test.go chore: rename API test suites (#938) 2025-06-13 08:23:17 +00:00
user_change_password_test.go chore: rename API test suites (#938) 2025-06-13 08:23:17 +00:00
user_confirm_email_test.go refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00
user_export_download_test.go refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00
user_export_status_test.go feat: show user export status in settings (#1200) 2025-07-30 15:50:26 +00:00
user_password_request_token_test.go refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00
user_password_reset_test.go refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00
user_project_test.go chore: rename API test suites (#938) 2025-06-13 08:23:17 +00:00
user_show_test.go chore: rename API test suites (#938) 2025-06-13 08:23:17 +00:00
user_totp_test.go refactor: use helper function to check user local 2025-09-04 18:09:21 +02:00