-
Notifications
You must be signed in to change notification settings - Fork 1.5k
add windvane #1657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add windvane #1657
Conversation
WalkthroughA new Windvane subscraping source was added and registered: implementation of the Source type with API communication, pagination, and result emission, and the passive sources registry and tests updated to include Windvane. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Orchestrator as Orchestrator
participant Source as windvane.Source
participant Session as sub.scraping.Session
participant API as Windvane API
Note over Orchestrator,Source: Orchestrator triggers source.Run(domain)
Orchestrator->>Source: Run(ctx, domain, session)
loop for each page
Source->>Session: POST /search (payload with domain, page, apiKey)
Session->>API: HTTP POST request
API-->>Session: JSON response (results + pagination)
Session-->>Source: decoded response
alt has results
Source-->>Orchestrator: emit subscraping.Result (subdomain events)
end
alt more pages
Source->>Source: increment page and continue
else done
Source-->>Orchestrator: close result channel
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-06-24T16:03:30.467ZApplied to files:
🧬 Code graph analysis (1)pkg/subscraping/sources/windvane/windvane.go (2)
🔇 Additional comments (7)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
pkg/passive/sources.go(2 hunks)pkg/passive/sources_test.go(2 hunks)pkg/subscraping/sources/windvane/windvane.go(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
pkg/passive/sources.go (2)
pkg/subscraping/sources/windvane/windvane.go (1)
Source(37-43)pkg/subscraping/types.go (1)
Source(37-62)
pkg/subscraping/sources/windvane/windvane.go (2)
pkg/subscraping/types.go (2)
Session(71-78)Statistics(29-34)pkg/subscraping/utils.go (1)
PickRandom(12-20)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: Test Builds (macOS-latest)
- GitHub Check: Test Builds (windows-latest)
- GitHub Check: Test Builds (ubuntu-latest)
- GitHub Check: Analyze (go)
🔇 Additional comments (3)
pkg/passive/sources_test.go (1)
51-51: LGTM!The windvane source is correctly added to both test arrays, maintaining alphabetical order and aligning with the source's
IsDefault() = trueimplementation.Also applies to: 89-89
pkg/passive/sources.go (1)
54-54: LGTM!The windvane source is properly imported and registered, following the established patterns for other sources.
Also applies to: 99-99
pkg/subscraping/sources/windvane/windvane.go (1)
119-146: LGTM!All interface methods correctly implement the
subscraping.Sourceinterface with appropriate return values that align with the source's registration and test expectations.
|
@coderabbitai resolve |
✅ Actions performedComments resolved. |
Mzack9999
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
closes #1639
Summary by CodeRabbit
New Features
Tests