Repository navigation
Commit 25d5a5e
committed
fix(databases): graft the descent past a paginated fork page too
The review caught a hole in the walk: descent was grafted only when a
node's lineage fetch FAILED, not when it succeeded with a truncated
fork page. A root with more forks than the page (server clamps to 100,
newest-first) could page out the very generation that leads to the
queried database — the tree then rendered without its '← this database'
row and exited 0, breaking the always-marked contract the skill doc
states.
Now the Ok arm grafts the known descent child whenever the listed page
didn't include it, counting it out of the unlisted tally. Regression
test: fork_count 3, page of 1, queried database off the page.
Also split the Err arm's diagnostics: a 404 stays quiet (the expected
shape of a deleted generation), while any other failure (auth, rate
limit, transport) still renders '⋯ forks unknown' but says why on
stderr, naming the id — so a failed request no longer masquerades as a
deleted-generation artifact.1 parent 2f46826 commit 25d5a5e
1 file changed
Lines changed: 92 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1902 | 1902 | | |
1903 | 1903 | | |
1904 | 1904 | | |
1905 | | - | |
| 1905 | + | |
1906 | 1906 | | |
1907 | 1907 | | |
1908 | 1908 | | |
| |||
1917 | 1917 | | |
1918 | 1918 | | |
1919 | 1919 | | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
1920 | 1937 | | |
1921 | 1938 | | |
1922 | 1939 | | |
1923 | 1940 | | |
1924 | 1941 | | |
1925 | 1942 | | |
1926 | 1943 | | |
1927 | | - | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
1928 | 1958 | | |
1929 | 1959 | | |
1930 | 1960 | | |
| |||
2916 | 2946 | | |
2917 | 2947 | | |
2918 | 2948 | | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
| 3000 | + | |
| 3001 | + | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
| 3006 | + | |
| 3007 | + | |
| 3008 | + | |
2919 | 3009 | | |
2920 | 3010 | | |
2921 | 3011 | | |
| |||
0 commit comments