Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(tests): update GeoIP snapshots for new MaxMind DB postal code (#62822)

Phil Haack013c0051937e
diff --git a/nodejs/src/cdp/hog-transformations/hog-transformer.service.test.ts b/nodejs/src/cdp/hog-transformations/hog-transformer.service.test.ts
index ac4258391cd9..5a644d542266 100644
--- a/nodejs/src/cdp/hog-transformations/hog-transformer.service.test.ts
+++ b/nodejs/src/cdp/hog-transformations/hog-transformer.service.test.ts
@@ -94,7 +94,7 @@ describe('HogTransformer', () => {
"$geoip_country_name": "United States",
"$geoip_latitude": 41.5,
"$geoip_longitude": -81.6938,
- "$geoip_postal_code": "44192",
+ "$geoip_postal_code": "44199",
"$geoip_subdivision_1_code": "OH",
"$geoip_subdivision_1_name": "Ohio",
"$geoip_time_zone": "America/New_York",
@@ -109,7 +109,7 @@ describe('HogTransformer', () => {
"$geoip_country_name": "United States",
"$geoip_latitude": 41.5,
"$geoip_longitude": -81.6938,
- "$geoip_postal_code": "44192",
+ "$geoip_postal_code": "44199",
"$geoip_subdivision_1_code": "OH",
"$geoip_subdivision_1_name": "Ohio",
"$geoip_subdivision_2_code": null,
@@ -126,7 +126,7 @@ describe('HogTransformer', () => {
"$initial_geoip_country_name": "United States",
"$initial_geoip_latitude": 41.5,
"$initial_geoip_longitude": -81.6938,
- "$initial_geoip_postal_code": "44192",
+ "$initial_geoip_postal_code": "44199",
"$initial_geoip_subdivision_1_code": "OH",
"$initial_geoip_subdivision_1_name": "Ohio",
"$initial_geoip_subdivision_2_code": null,
@@ -1157,7 +1157,7 @@ describe('HogTransformer', () => {
"$geoip_continent_code": "NA",
"$geoip_continent_name": "North America",
"$geoip_country_name": "United States",
- "$geoip_postal_code": "44192",
+ "$geoip_postal_code": "44199",
"$geoip_subdivision_1_code": "OH",
"$geoip_subdivision_1_name": "Ohio",
"$geoip_time_zone": "America/New_York",
@@ -1171,7 +1171,7 @@ describe('HogTransformer', () => {
"$geoip_country_name": "United States",
"$geoip_latitude": 41.5,
"$geoip_longitude": -81.6938,
- "$geoip_postal_code": "44192",
+ "$geoip_postal_code": "44199",
"$geoip_subdivision_1_code": "OH",
"$geoip_subdivision_1_name": "Ohio",
"$geoip_subdivision_2_code": null,
@@ -1188,7 +1188,7 @@ describe('HogTransformer', () => {
"$initial_geoip_country_name": "United States",
"$initial_geoip_latitude": 41.5,
"$initial_geoip_longitude": -81.6938,
- "$initial_geoip_postal_code": "44192",
+ "$initial_geoip_postal_code": "44199",
"$initial_geoip_subdivision_1_code": "OH",
"$initial_geoip_subdivision_1_name": "Ohio",
"$initial_geoip_subdivision_2_code": null,
diff --git a/nodejs/src/cdp/legacy-plugins/_transformations/posthog-plugin-geoip/index.test.ts b/nodejs/src/cdp/legacy-plugins/_transformations/posthog-plugin-geoip/index.test.ts
index 4a29478a8235..f44434038972 100644
--- a/nodejs/src/cdp/legacy-plugins/_transformations/posthog-plugin-geoip/index.test.ts
+++ b/nodejs/src/cdp/legacy-plugins/_transformations/posthog-plugin-geoip/index.test.ts
@@ -51,7 +51,7 @@ describe('posthog-plugin-geoip', () => {
"$geoip_country_name": "United States",
"$geoip_latitude": 41.5,
"$geoip_longitude": -81.6938,
- "$geoip_postal_code": "44192",
+ "$geoip_postal_code": "44199",
"$geoip_subdivision_1_code": "OH",
"$geoip_subdivision_1_name": "Ohio",
"$geoip_time_zone": "America/New_York",
@@ -75,7 +75,7 @@ describe('posthog-plugin-geoip', () => {
"$geoip_country_name": "United States",
"$geoip_latitude": 41.5,
"$geoip_longitude": -81.6938,
- "$geoip_postal_code": "44192",
+ "$geoip_postal_code": "44199",
"$geoip_subdivision_1_code": "OH",
"$geoip_subdivision_1_name": "Ohio",
"$geoip_subdivision_2_code": null,
@@ -92,7 +92,7 @@ describe('posthog-plugin-geoip', () => {
"$initial_geoip_country_name": "United States",
"$initial_geoip_latitude": 41.5,
"$initial_geoip_longitude": -81.6938,
- "$initial_geoip_postal_code": "44192",
+ "$initial_geoip_postal_code": "44199",
"$initial_geoip_subdivision_1_code": "OH",
"$initial_geoip_subdivision_1_name": "Ohio",
"$initial_geoip_subdivision_2_code": null,
@@ -122,7 +122,7 @@ describe('posthog-plugin-geoip', () => {
"$geoip_country_name": "United States",
"$geoip_latitude": 41.5,
"$geoip_longitude": -81.6938,
- "$geoip_postal_code": "44192",
+ "$geoip_postal_code": "44199",
"$geoip_subdivision_1_code": "OH",
"$geoip_subdivision_1_name": "Ohio",
"$geoip_subdivision_2_code": null,
@@ -141,7 +141,7 @@ describe('posthog-plugin-geoip', () => {
"$initial_geoip_country_name": "United States",
"$initial_geoip_latitude": 41.5,
"$initial_geoip_longitude": -81.6938,
- "$initial_geoip_postal_code": "44192",
+ "$initial_geoip_postal_code": "44199",
"$initial_geoip_subdivision_1_code": "OH",
"$initial_geoip_subdivision_1_name": "Ohio",
"$initial_geoip_subdivision_2_code": null,
@@ -171,7 +171,7 @@ describe('posthog-plugin-geoip', () => {
"$geoip_country_name": "United States",
"$geoip_latitude": 41.5,
"$geoip_longitude": -81.6938,
- "$geoip_postal_code": "44192",
+ "$geoip_postal_code": "44199",
"$geoip_subdivision_1_code": "OH",
"$geoip_subdivision_1_name": "Ohio",
"$geoip_subdivision_2_code": null,
@@ -190,7 +190,7 @@ describe('posthog-plugin-geoip', () => {
"$initial_geoip_country_name": "United States",
"$initial_geoip_latitude": 41.5,
"$initial_geoip_longitude": -81.6938,
- "$initial_geoip_postal_code": "44192",
+ "$initial_geoip_postal_code": "44199",
"$initial_geoip_subdivision_1_code": "OH",
"$initial_geoip_subdivision_1_name": "Ohio",
"$initial_geoip_subdivision_2_code": null,
diff --git a/nodejs/src/cdp/templates/_transformations/geoip/geoip.template.test.ts b/nodejs/src/cdp/templates/_transformations/geoip/geoip.template.test.ts
index 320efcdc1428..21fe8b733820 100644
--- a/nodejs/src/cdp/templates/_transformations/geoip/geoip.template.test.ts
+++ b/nodejs/src/cdp/templates/_transformations/geoip/geoip.template.test.ts
@@ -39,7 +39,7 @@ describe('geoip.template', () => {
"$geoip_country_name": "United States",
"$geoip_latitude": 41.5,
"$geoip_longitude": -81.6938,
- "$geoip_postal_code": "44192",
+ "$geoip_postal_code": "44199",
"$geoip_subdivision_1_code": "OH",
"$geoip_subdivision_1_name": "Ohio",
"$geoip_time_zone": "America/New_York",
@@ -54,7 +54,7 @@ describe('geoip.template', () => {
"$geoip_country_name": "United States",
"$geoip_latitude": 41.5,
"$geoip_longitude": -81.6938,
- "$geoip_postal_code": "44192",
+ "$geoip_postal_code": "44199",
"$geoip_subdivision_1_code": "OH",
"$geoip_subdivision_1_name": "Ohio",
"$geoip_subdivision_2_code": null,
@@ -71,7 +71,7 @@ describe('geoip.template', () => {
"$initial_geoip_country_name": "United States",
"$initial_geoip_latitude": 41.5,
"$initial_geoip_longitude": -81.6938,
- "$initial_geoip_postal_code": "44192",
+ "$initial_geoip_postal_code": "44199",
"$initial_geoip_subdivision_1_code": "OH",
"$initial_geoip_subdivision_1_name": "Ohio",
"$initial_geoip_subdivision_2_code": null,
@@ -111,7 +111,7 @@ describe('geoip.template', () => {
"$geoip_country_name": "United States",
"$geoip_latitude": 41.5,
"$geoip_longitude": -81.6938,
- "$geoip_postal_code": "44192",
+ "$geoip_postal_code": "44199",
"$geoip_subdivision_1_code": "OH",
"$geoip_subdivision_1_name": "Ohio",
"$geoip_subdivision_2_code": null,
@@ -132,7 +132,7 @@ describe('geoip.template', () => {
"$initial_geoip_country_name": "United States",
"$initial_geoip_latitude": 41.5,
"$initial_geoip_longitude": -81.6938,
- "$initial_geoip_postal_code": "44192",
+ "$initial_geoip_postal_code": "44199",
"$initial_geoip_subdivision_1_code": "OH",
"$initial_geoip_subdivision_1_name": "Ohio",
"$initial_geoip_subdivision_2_code": null,
@@ -178,7 +178,7 @@ describe('geoip.template', () => {
"$geoip_country_name": "United States",
"$geoip_latitude": 41.5,
"$geoip_longitude": -81.6938,
- "$geoip_postal_code": "44192",
+ "$geoip_postal_code": "44199",
"$geoip_subdivision_1_code": "OH",
"$geoip_subdivision_1_name": "Ohio",
"$geoip_subdivision_2_code": null,
@@ -198,7 +198,7 @@ describe('geoip.template', () => {
"$initial_geoip_country_name": "United States",
"$initial_geoip_latitude": 41.5,
"$initial_geoip_longitude": -81.6938,
- "$initial_geoip_postal_code": "44192",
+ "$initial_geoip_postal_code": "44199",
"$initial_geoip_subdivision_1_code": "OH",
"$initial_geoip_subdivision_1_name": "Ohio",
"$initial_geoip_subdivision_2_code": null,