Akcje
Task #600
otwarteUser story #594: Board live search
Javascript method for Ajax POST request
Task #600:
Javascript method for Ajax POST request
Data rozpoczęcia:
2025-11-16
Data oddania:
2025-11-24 (Termin za 3 dni)
% Wykonania:
0%
Szacowany czas:
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 lis - 18 lis)
Tags:
Opis
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.
Uaktualnione przez Smith Paul 15 dni temu
· Edytowano
- Checklist custom field usunięty (
Define the function signature (e.g., post(url, data, { headers, timeout })) and input validation) - Checklist custom field usunięty (
Implement fetch with Content-Type: application/json, JSON serialization, and CSRF token injection (if a meta tag or cookie exists)) - Checklist custom field usunięty (
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 usunięty (
Write unit tests with mocked fetch for success, 4xx/5xx, invalid JSON, timeout, and retry logic; ensure coverage) - Checklist custom field usunięty (
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 dodany
- Checklist custom field Implement fetch with JSON and CSRF dodany
- Checklist custom field Add error handling and retry logic dodany
- Checklist custom field Write unit tests for all cases dodany
- Checklist custom field Document usage, examples, and types dodany
Uaktualnione przez Smith Paul 15 dni temu
· Edytowano
- Checklist custom field Implement fetch with JSON and CSRF ustaw jako Wykonane
Uaktualnione przez Smith Paul 9 dni temu
· Edytowano
- Ustawiono Tags na frontend
Uaktualnione przez Smith Paul 9 dni temu
· Edytowano
- Ustawiono Company custom field na RedmineUP
Uaktualnione przez Smith Paul 2 dni temu
· Edytowano
- Ustawiono Data oddania na 2019-12-24
- Zmieniono Data rozpoczęcia z 2019-12-20 na 2019-12-16
- Zmieniono Szacowany czas z 4:00 h na 14:00 h
Uaktualnione przez Smith Paul 3 dni temu
· Edytowano
- Zmieniono Status z New na In Progress
Uaktualnione przez Smith Paul 3 dni temu
· Edytowano
- Ustawiono Przypisany do na Stone Elizabeth
Uaktualnione przez Smith Paul 4 dni temu
· Edytowano
- Checklist custom field Define the function signature (e.g., post(url, data, { headers, timeout })) and input validation dodany
- Checklist custom field Implement fetch with Content-Type: application/json, JSON serialization, and CSRF token injection (if a meta tag or cookie exists) dodany
- 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 dodany
- Checklist custom field Write unit tests with mocked fetch for success, 4xx/5xx, invalid JSON, timeout, and retry logic; ensure coverage dodany
- Checklist custom field Document usage and caveats (CORS, CSRF, timeouts), provide example calls, and ensure linter/TypeScript typings if applicable dodany
- Zaktualizowano Opis (różnice)
Akcje