Acciones
Task #600
abiertaUser story #594: Board live search
Javascript method for Ajax POST request
Task #600:
Javascript method for Ajax POST request
Fecha de inicio:
2025-10-16
Fecha fin:
2025-10-24 (Finaliza en 4 días)
% Realizado:
0%
Tiempo estimado:
14:00 h
Company custom field:
Deals:
Contacts:
Checklist custom field:
- Define function signature and validate input
- Implement fetch with JSON and CSRF
- Add error handling and retry logic
- Write unit tests for all cases
- Document usage, examples, and types
Sprint:
Sprint #1 (04 de Oct - 18 de Oct)
Tags:
Descripción
Build a reusable JavaScript method to perform an AJAX POST request using fetch, sending JSON payloads and handling CSRF tokens when required. The method should validate inputs, set correct headers, and serialize/deserialize JSON safely. It must implement robust error handling for non-2xx responses, network failures, and timeouts, returning a clear, Promise-based result. Include concise documentation and examples so it can be dropped into any project with minimal setup.
Actualizado por Smith Paul hace 14 días
- Checklist custom field borrado (
Define the function signature (e.g., post(url, data, { headers, timeout })) and input validation) - Checklist custom field borrado (
Implement fetch with Content-Type: application/json, JSON serialization, and CSRF token injection (if a meta tag or cookie exists)) - Checklist custom field borrado (
Add error handling: treat non-2xx as errors, parse JSON safely with fallback, implement AbortController timeout, and retry once on network errors) - Checklist custom field borrado (
Write unit tests with mocked fetch for success, 4xx/5xx, invalid JSON, timeout, and retry logic; ensure coverage) - Checklist custom field borrado (
Document usage and caveats (CORS, CSRF, timeouts), provide example calls, and ensure linter/TypeScript typings if applicable) - Checklist custom field Define function signature and validate input añadido
- Checklist custom field Implement fetch with JSON and CSRF añadido
- Checklist custom field Add error handling and retry logic añadido
- Checklist custom field Write unit tests for all cases añadido
- Checklist custom field Document usage, examples, and types añadido
Actualizado por Smith Paul hace 14 días
- Checklist custom field Implement fetch with JSON and CSRF marcado como Hecho
Actualizado por Smith Paul hace 8 días
· Edited
- Tags establecido a frontend
Actualizado por Smith Paul hace 8 días
· Edited
- Company custom field establecido a RedmineUP
Actualizado por Smith Paul hace alrededor de 19 horas
· Edited
- Fecha fin establecido a 2019-12-24
- Fecha de inicio cambiado de 2019-12-20 a 2019-12-16
- Tiempo estimado cambiado de 4:00 h a 14:00 h
Actualizado por Smith Paul hace 4 días
· Edited
- Estado cambiado de New a In Progress
Actualizado por Smith Paul hace 4 días
· Edited
- Asignado a establecido a Stone Elizabeth
Actualizado por Smith Paul hace 5 días
· Edited
- Checklist custom field Define the function signature (e.g., post(url, data, { headers, timeout })) and input validation añadido
- Checklist custom field Implement fetch with Content-Type: application/json, JSON serialization, and CSRF token injection (if a meta tag or cookie exists) añadido
- Checklist custom field Add error handling: treat non-2xx as errors, parse JSON safely with fallback, implement AbortController timeout, and retry once on network errors añadido
- Checklist custom field Write unit tests with mocked fetch for success, 4xx/5xx, invalid JSON, timeout, and retry logic; ensure coverage añadido
- Checklist custom field Document usage and caveats (CORS, CSRF, timeouts), provide example calls, and ensure linter/TypeScript typings if applicable añadido
- Se actualizó Descripción (diferencias)
Acciones