Repository navigation
Fix Apple Developer Docs search API - #28149
dustPyrotechnic wants to merge 20 commits into
Conversation
|
Thank you for your contribution! 🎉 🔔 @CaliCastle you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. 📋 Quick checkout commandsBRANCH="fix/apple-developer-docs-search-api"
FORK_URL="https://github.com/dustPyrotechnic/extensions.git"
EXTENSION_NAME="apple-developer-docs"
REPO_NAME="extensions"
git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run devWe're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days. |
Greptile SummaryThis PR fixes the broken Apple Developer search by replacing the deprecated endpoint with the current production API, and adds an opt-in archive search feature that downloads and indexes Apple's retired Documentation Archive for chapter-level search alongside live results.
Confidence Score: 4/5The core search fix and archive feature are structurally sound but the async state machine in useArchiveResults warrants careful manual testing before merge. The useArchiveResults hook coordinates three separate effects, two mutable refs, concurrent fetch workers, and progress callbacks that interact during rapid query changes or unmounts. Previous review rounds identified several issues and the current code appears to address most of them, but the combination of isMounted guards, AbortController chaining, and ref-based deduplication is difficult to fully verify statically. extensions/apple-developer-docs/src/hooks/useArchiveResults.ts — specifically the three-effect interplay around isTocBuildRunningRef, hasCompleteTocIndexRef, and cleanup paths when shouldLoadArchive toggles rapidly. Important Files Changed
Reviews (13): Last reviewed commit: "fix: reset archive TOC index flag after ..." | Re-trigger Greptile |
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
0xdhrv
left a comment
There was a problem hiding this comment.
Hey @dustPyrotechnic 👋
Thank you for your contribution 🔥
Can you check this merged PR #27963
I feel like it addresses the issues you mentioned, incase you have some enhancements on top of that, can you please fix the conflicts and update the branch?
I converted this PR into a draft until it's ready for the review, please press the button Ready for review when it's ready and we'll have a look 😊
8310092 to
d94a5c3
Compare
d94a5c3 to
241ac8a
Compare
|
Hey @CaliCastle @dustPyrotechnic 👋 Any thoughts on this? |
|
Hey @0xdhrv 👋 Thanks for flagging #27963 — I've taken a look. That PR restores the basic search endpoint, and this PR builds on top of it with additional enhancements:
I've also addressed the earlier review feedback (multiple follow-up commits). CI is green and the branch is mergeable. Ready for another look whenever you have a moment 🙏 |
dff1649 to
c2b6000
Compare
|
Hi @0xdhrv @CaliCastle 👋 Rebased on latest
Earlier P1 items were already fixed in previous follow-up commits:
Regarding the P1 endpoint concern: the new CI is green and the branch is mergeable. Ready for another look 🙏 |
|
This pull request has been automatically marked as stale because it did not have any recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊 |
|
This pull request has been automatically closed due to inactivity. Feel free to comment in the thread when you're ready to continue working on it 🙂 You can also catch us in Slack if you want to discuss this. |
Description
Validation