discourse/spec/lib/middleware
Krzysztof Kotlarek a036aacbed
DEV: Add country code to browser pageview payloads (#39681)
This adds country_code to the browser pageview event payload emitted by
RequestTracker.

The value is resolved in core using
DiscourseIpInfo.get(data[:request_remote_ip])[:country_code], so both
normal browser pageview events and beacon pageview events can persist
the visitor country when the browser pageview events plugin handles
them.
2026-05-01 12:21:58 +08:00
..
anonymous_cache_spec.rb DEV: Fix AnonymousCache for pitchfork in dev/test modes (#37852) 2026-02-17 09:12:02 +00:00
crawler_hooks_spec.rb PERF: Skip locale param rewriting for upload paths in CrawlerHooks (#39611) 2026-04-28 13:31:52 -03:00
discourse_public_exceptions_spec.rb DEV: Don’t replace Rails logger in specs (#29721) 2024-11-13 08:47:39 +08:00
enforce_hostname_spec.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00
overload_protections_spec.rb PERF: Reject anonymous requests with 503 upon aggressive queuing (#36519) 2025-12-18 10:23:42 +08:00
processing_request_spec.rb PERF: Reject anonymous requests with 503 upon aggressive queuing (#36519) 2025-12-18 10:23:42 +08:00
request_tracker_spec.rb DEV: Add country code to browser pageview payloads (#39681) 2026-05-01 12:21:58 +08:00