fix: filter JSON/raw output by record type (#986)#988
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThe PR fixes output filtering for explicit DNS record-type selectors in JSON and raw output modes. Three changes work together: a new Options field tracks explicit type selection, a helper validates whether responses contain selected record types, and the worker loop uses that helper to skip output for non-matching responses. ChangesDNS Record-Type Output Filtering
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Closes #986.
JSON/raw output emitted every resolved host regardless of the requested record type, unlike text output. Now filtered to hosts with a matching record. Default,
-alland AXFR are untouched.Note:
-cnameetc. now also filter JSON/raw output, not just query. Tightly scoped to explicit selectors so existing-jfull-dump pipelines are unaffected.Summary by CodeRabbit