René's URL Explorer Experiment


Title: refactor: dedupe ecosystem dispatch, telemetry, API client, cleanup, get by mikolalysenko · Pull Request #88 · SocketDev/socket-patch · GitHub

Open Graph Title: refactor: dedupe ecosystem dispatch, telemetry, API client, cleanup, get by mikolalysenko · Pull Request #88 · SocketDev/socket-patch

X Title: refactor: dedupe ecosystem dispatch, telemetry, API client, cleanup, get by mikolalysenko · Pull Request #88 · SocketDev/socket-patch

Description: Summary Net ~718 lines removed across six files in the two core crates. No behavior changes; no public API breakage; all 1308 tests pass with no new warnings. ecosystem_dispatch.rs (953 → 556): macro-extracted the 8 per-ecosystem scan blocks duplicated between `find_packages_for_purls` and `find_packages_for_rollback`; the two functions now share a `dispatch_find` core that takes a `pypi_merge` callback for the only meaningful divergence. `commands/get.rs` (1901 → 1767): hoisted `report_error` / `print_json` / `empty_result_json` / `report_fetch_failure` / `write_all_patch_blobs` / `vulnerabilities_for_manifest` / `build_patch_record`; folded the three identical CVE/GHSA/PURL search match arms into one dispatch. `utils/telemetry.rs` (1107 → 1027): replaced ~18 hand-built `HashMap` constructions with a single `fire()` helper plus `serde_json::json!({...})` literals; each per-event tracker is now 3–5 lines instead of 10–20. `api/client.rs` (1336 → 1322): collapsed `search_patches_by_cve` / `by_ghsa` / `by_package` into a shared `search_patches_by_route(route, identifier)`. `api/blob_fetcher.rs` (871 → 833): derived `Default` for `FetchMissingBlobsResult`, introduced `all_failed_result` for the three blocker-on-mkdir branches, removed the redundant `empty_result()` helper. `utils/cleanup_blobs.rs` (585 → 540): unified `cleanup_unused_blobs` / `cleanup_unused_archives` behind a `cleanup_dir(dir, dry_run, is_used)` core taking a closure for the per-file "is this still in use" check. Test plan `cargo test --features cargo` — 499 lib tests + all integration tests pass `cargo test --features "cargo golang maven composer nuget deno"` — all tests pass under every feature gate `cargo build --tests --features "cargo golang maven composer nuget deno"` — no new warnings (only the two pre-existing snake_case warnings in `crawler_maven_e2e.rs`) CI on the PR 🤖 Generated with Claude Code

Open Graph Description: Summary Net ~718 lines removed across six files in the two core crates. No behavior changes; no public API breakage; all 1308 tests pass with no new warnings. ecosystem_dispatch.rs (953 → 556): ma...

X Description: Summary Net ~718 lines removed across six files in the two core crates. No behavior changes; no public API breakage; all 1308 tests pass with no new warnings. ecosystem_dispatch.rs (953 → 556): ma...

Opengraph URL: https://github.com/SocketDev/socket-patch/pull/88

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits/:range(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:a59ca933-743e-29ba-e0f2-31a01a2c86f6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBF18:1BADE2:20F68A2:2C6D099:6A655670
html-safe-nonce3c0d8f6d52dd96fea448a72664a0d9fd8fbbbfdec7ad5c4ddda3de5df4a38442
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjE4OjFCQURFMjoyMEY2OEEyOjJDNkQwOTk6NkE2NTU2NzAiLCJ2aXNpdG9yX2lkIjoiMTI3MzYyNDY1MTY0MzU3Mzg3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7dea24c7b9f1cbcec131552ded0d0763ef87fa0d38c8fa553e69049e86d9713a
hovercard-subject-tagpull_request:3757590232
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd
twitter:imagehttps://avatars.githubusercontent.com/u/231686?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/231686?s=400&v=4
og:image:altSummary Net ~718 lines removed across six files in the two core crates. No behavior changes; no public API breakage; all 1308 tests pass with no new warnings. ecosystem_dispatch.rs (953 → 556): ma...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/SocketDev/socket-patch git https://github.com/SocketDev/socket-patch.git
octolytics-dimension-user_id69326764
octolytics-dimension-user_loginSocketDev
octolytics-dimension-repository_id1093661456
octolytics-dimension-repository_nwoSocketDev/socket-patch
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1093661456
octolytics-dimension-repository_network_root_nwoSocketDev/socket-patch
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release309153364422b3c499922d1a2a6404910a58ed8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSocketDev%2Fsocket-patch%2Fpull%2F88%2Fcommits%2F95f8cc49bc3da5c527b247d7474dd30ec2b343fd
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSocketDev%2Fsocket-patch%2Fpull%2F88%2Fcommits%2F95f8cc49bc3da5c527b247d7474dd30ec2b343fd
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=SocketDev%2Fsocket-patch
Reloadhttps://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd
Reloadhttps://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd
Reloadhttps://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd
Please reload this pagehttps://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd
SocketDev https://github.com/SocketDev
socket-patchhttps://github.com/SocketDev/socket-patch
Notifications https://github.com/login?return_to=%2FSocketDev%2Fsocket-patch
Fork 0 https://github.com/login?return_to=%2FSocketDev%2Fsocket-patch
Star 4 https://github.com/login?return_to=%2FSocketDev%2Fsocket-patch
Code https://github.com/SocketDev/socket-patch
Issues 1 https://github.com/SocketDev/socket-patch/issues
Pull requests 3 https://github.com/SocketDev/socket-patch/pulls
Actions https://github.com/SocketDev/socket-patch/actions
Models https://github.com/SocketDev/socket-patch/models
Security and quality 0 https://github.com/SocketDev/socket-patch/security
Insights https://github.com/SocketDev/socket-patch/pulse
Code https://github.com/SocketDev/socket-patch
Issues https://github.com/SocketDev/socket-patch/issues
Pull requests https://github.com/SocketDev/socket-patch/pulls
Actions https://github.com/SocketDev/socket-patch/actions
Models https://github.com/SocketDev/socket-patch/models
Security and quality https://github.com/SocketDev/socket-patch/security
Insights https://github.com/SocketDev/socket-patch/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FSocketDev%2Fsocket-patch%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FSocketDev%2Fsocket-patch%2Fissues%2Fnew%2Fchoose
Mikola Lysenko (mikolalysenko)https://github.com/mikolalysenko
mainhttps://github.com/SocketDev/socket-patch/tree/main
cleanuphttps://github.com/SocketDev/socket-patch/tree/cleanup
Conversation 0 https://github.com/SocketDev/socket-patch/pull/88
Commits 2 https://github.com/SocketDev/socket-patch/pull/88/commits
Checks 42 https://github.com/SocketDev/socket-patch/pull/88/checks
Files changed https://github.com/SocketDev/socket-patch/pull/88/files
Please reload this pagehttps://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd
refactor: dedupe ecosystem dispatch, telemetry, API client, cleanup, get https://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd#top
Show all changes 2 commits https://github.com/SocketDev/socket-patch/pull/88/files
95f8cc4 refactor: dedupe ecosystem dispatch, telemetry, API, cleanup, get/blo… mikolalysenko May 27, 2026 https://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd
596d519 refactor(ecosystem_dispatch): hoist MergeFn type alias for clippy mikolalysenko May 27, 2026 https://github.com/SocketDev/socket-patch/pull/88/commits/596d5191c79814266f90ea95026fc7b479357251
Clear filters https://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd
Please reload this pagehttps://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd
Please reload this pagehttps://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd
get.rs https://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
ecosystem_dispatch.rs https://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd#diff-b4621fd545be96d70879527496ba97342c59039dfb7683fbf42fdd3396dce794
blob_fetcher.rs https://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd#diff-00490d96a8b2f80de48f84a6d71170d2f0450b3ba6edc48c1b92daad1eeed538
client.rs https://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd#diff-652ed2c2a64b0ce6c9a28de4700183473d9a456a105a06c6e0e1ab5251dfad0c
cleanup_blobs.rs https://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd#diff-f8b140336400afbbbfac403cd4363062637f075f677ac1273e492813030fb9e8
telemetry.rs https://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd#diff-ae93ad10cb6df2b6812e021c9170bf85fea1cad3e0940d1b47caccbe9508b22b
Next https://github.com/SocketDev/socket-patch/pull/88/commits/596d5191c79814266f90ea95026fc7b479357251
Please reload this pagehttps://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd
https://github.com/mikolalysenko
https://github.com/claude
mikolalysenkohttps://github.com/SocketDev/socket-patch/commits?author=mikolalysenko
claudehttps://github.com/SocketDev/socket-patch/commits?author=claude
Please reload this pagehttps://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd
Please reload this pagehttps://github.com/SocketDev/socket-patch/pull/88/commits/95f8cc49bc3da5c527b247d7474dd30ec2b343fd
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.