Commit Graph

120 Commits

Author SHA1 Message Date
496aea9d0d refactor: shorten function names in jikan relations 2026-06-25 02:36:19 +02:00
3c50fc5d53 refactor: remove display methods from anime type 2026-06-25 02:36:19 +02:00
3dfbcdb815 refactor: move producer type and method out of studio.go 2026-06-25 02:36:19 +02:00
6a039dc9ac refactor: move top anime and genres to anime.go 2026-06-25 02:36:19 +02:00
3515476374 refactor: shorten verbose variable names across codebase 2026-06-25 02:36:19 +02:00
2724f0f7ed refactor: inline single-use helpers in jikan relations 2026-06-25 02:36:19 +02:00
e40e657d60 refactor: inline single-use helpers in jikan client 2026-06-25 02:36:19 +02:00
7e26f2ee77 refactor: rename constants.go to cache_policy.go 2026-06-25 02:36:19 +02:00
9a0a6d74bb refactor: rename more.go to anime_resources.go 2026-06-25 02:36:19 +02:00
454b5a0cb3 refactor: replace type switch with reflect map in isemptyresult 2026-06-25 02:36:19 +02:00
fe2f5be812 fix: capture jikan api error body in api error struct 2026-06-25 02:36:19 +02:00
0d53d5efdc refactor: remove metrics from jikan client 2026-06-25 02:36:19 +02:00
01564ffd52 feat: observe jikan cache stats 2026-06-25 02:36:19 +02:00
e87af49dff fix: ignore expired anime in random pool cache 2026-06-25 02:35:53 +02:00
5ddfd78240 refactor: update jikan transport errlog import 2026-06-25 02:35:52 +02:00
d994647e62 Handle Jikan transport errors 2026-06-25 02:35:51 +02:00
1c21474ff6 Handle relation refresh errors 2026-06-25 02:35:51 +02:00
c668914edd Handle Jikan test cleanup errors 2026-06-25 02:35:51 +02:00
087ff429ab Handle Jikan cache refresh errors 2026-06-25 02:35:51 +02:00
6bf91f293b Handle anime refresh errors 2026-06-25 02:35:51 +02:00
9e0f2231b5 fix: stop stale request retries 2026-06-25 02:35:51 +02:00
16ba3d25ba refactor: split fetchRelationResults to satisfy funlen 2026-06-25 02:35:51 +02:00
bb8aac06eb fix: allow empty search results from jikan 2026-06-25 02:35:51 +02:00
bc7a3f58cf fix: apply go fix updates (any, range loop, slices, maps) 2026-06-25 02:35:51 +02:00
656ddbd005 fix: defer resp.Body.Close in handleResponseRetry 2026-06-25 02:35:51 +02:00
c9bdc4a75e fix: unblock jikan limiter waits 2026-06-25 02:35:51 +02:00
ec10fa56b4 fix: replace package-level traceEnabled with per-client field 2026-06-25 02:35:51 +02:00
9e25745804 refactor: split jikan client into transport/cache/rate subpackages 2026-06-25 02:35:51 +02:00
b88a859b66 fix: log jikan cache set failures instead of silently discarding 2026-06-25 02:35:50 +02:00
fda2346d9a fix: log silent gaps in fetchRelationResults 2026-06-25 02:35:50 +02:00
263bfafd04 style: use http status constant 2026-06-13 21:32:23 +02:00
ea411e5feb perf: preallocate fetchedAnimes in fetchBaselineAnime 2026-06-13 21:30:49 +02:00
36c0e87ae8 feat: add watch order mode toggle 2026-06-12 13:39:50 +02:00
164232cf0d fix: prefer original over japanese in jikan displaytitle 2026-06-12 13:17:51 +02:00
ed90b5c7aa fix: remove nil error return 2026-06-11 14:51:57 +02:00
ba578d969a refactor: split seedRandomPool to reduce gocognit 2026-06-11 14:33:29 +02:00
5998b59e81 refactor: extract helpers from fetchWithRetry to reduce gocognit 2026-06-11 14:32:02 +02:00
7af597d8fc refactor: reduce DurationSeconds complexity with token parsing 2026-06-11 12:31:33 +02:00
5ada1f72e4 feat: add shared query param helpers for jikan 2026-06-11 12:27:56 +02:00
4b95f85d4d chore: remove stray blank line in test 2026-06-11 12:19:59 +02:00
c36f02862d refactor: split getFullRelations into smaller helpers 2026-06-11 12:19:43 +02:00
704058a512 refactor: extract helpers from TestGetWithCacheReturnsStaleAndRefreshesAsync
Split setup (newTestCacheDB, insertCachedResponse) and async
polling (waitForFreshCache) out of the test to reduce its
cyclomatic complexity below 10. Switch DB calls to ExecContext
/ QueryRowContext to fix noctx lint.
2026-06-11 12:17:40 +02:00
9b19661fa3 refactor: extract skip/level helpers from logJikanCache 2026-06-11 12:15:00 +02:00
3fe1135203 feat: warm anime recommendations in background 2026-06-04 11:28:20 +02:00
342bd096da feat: stale-while-revalidate cache for watch order 2026-06-04 11:28:13 +02:00
d5406a6857 refactor: dedupe jikan refresh 2026-06-01 22:21:19 +02:00
9f754012eb test: dedupe jikan bool cases 2026-06-01 22:20:12 +02:00
58036bea5a refactor: dedupe season fetch 2026-06-01 22:19:10 +02:00
475625de35 docs: add package comments to integrations 2026-06-01 12:55:20 +02:00
3c1e4d34a9 refactor: update jikan imports for flattened pkg/net 2026-05-28 12:35:56 +02:00