Skip to content

Conversation

@oschwald
Copy link
Member

@oschwald oschwald commented Nov 6, 2025

  • Add CLAUDE.md documentation for AI assistants
  • Add anonymizer and IP risk data to Insights web service

This adds guidance for Claude Code and other AI assistants when working
with the codebase, including architecture patterns, testing conventions,
and development workflows.

Also update .gitignore to exclude Claude Code directories.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@oschwald oschwald force-pushed the greg/eng-3314-ip-risk-and-anonymous-plus-outputs-are-supported-by-geoip2 branch from ee46b69 to b2d7444 Compare November 6, 2025 22:56
@oschwald oschwald requested a review from Copilot November 6, 2025 23:04
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds anonymizer data and IP risk scoring to the GeoIP2 Insights model. It introduces a new Anonymizer record class and deprecates the corresponding properties in the Traits class in favor of the new dedicated anonymizer object.

  • Adds a new Anonymizer record class with VPN and anonymity detection properties
  • Adds ipRiskSnapshot property to the Traits class for static risk scoring
  • Deprecates anonymity-related boolean properties in Traits in favor of the new anonymizer object

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Record/Anonymizer.php New record class containing anonymizer data including confidence scores, VPN provider information, and various anonymity flags
src/Model/Insights.php Extended to include an anonymizer property and properly serialize it
src/Record/Traits.php Added ipRiskSnapshot property and deprecated six anonymity-related properties in favor of the anonymizer object
tests/GeoIp2/Test/Model/InsightsTest.php Comprehensive test coverage for the new anonymizer property and ipRiskSnapshot field
CHANGELOG.md Documents the new features and deprecations for version 3.3.0
CLAUDE.md New documentation file providing guidance for Claude Code when working with this repository
.gitignore Added exclusions for Claude Code directories

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This commit adds support for the new anonymizer object and IP risk
snapshot field in the GeoIP2 Insights web service response.

Key changes:
- Add new Anonymizer record class with VPN detection fields (confidence,
  provider name, network last seen, and anonymity flags)
- Add anonymizer property to Insights model
- Add ipRiskSnapshot field to Traits record for static IP risk scoring
- Deprecate anonymous IP flags in Traits (isAnonymous, isAnonymousVpn,
  isHostingProvider, isPublicProxy, isResidentialProxy, isTorExitNode)
  in favor of the new anonymizer object
- Update tests to cover new fields
- Update CHANGELOG for version 3.3.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@oschwald oschwald force-pushed the greg/eng-3314-ip-risk-and-anonymous-plus-outputs-are-supported-by-geoip2 branch from b2d7444 to 341119e Compare November 7, 2025 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants