-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Summary
JMeter HAR import filtering currently happens client-side in Java. This violates the server-first design principle. Move it server-side to match the Locust path.
Current State
| Path | Filtering Location | Server-First? |
|---|---|---|
| Locust editor | Client sends exclude_patterns regex → _prepare_har_for_upload() in app.py applies it |
Yes |
| JMeter plugin | HarConvertorGui.java + DCAIHarImportGui.java apply include/exclude regex during JMX generation in Java |
No |
Problem
- Filtering logic in Java means we can't improve it without releasing a new JMeter plugin JAR
- Can't add the smart platform-agnostic heuristics (Platform-agnostic HAR import intelligence (smart filtering & analysis) #88) to JMeter path without server-side processing
- Two separate codebases doing the same job = maintenance burden
- JMeter users don't benefit from improvements made to the Locust filtering path
Proposed Change
- JMeter plugin sends the raw HAR (or user's filter preferences) to server
- Server applies filtering (same
_prepare_har_for_upload()path, or new endpoint) - Server returns filtered/processed HAR data
- JMeter plugin generates JMX from the server-filtered data
- Remove client-side filtering logic from Java
Files Affected
DCAIHarImportGui.java(3,636 lines) — remove client-side filteringHarConvertorGui.java— remove include/exclude regex applicationDO/har-service/app.py— extend_prepare_har_for_upload()or add new endpoint for JMeter HAR processing
Related
- Salesforce platform support — dynamic parameter correlation POC #86 — Salesforce POC (revealed the gap)
- Platform-agnostic HAR import intelligence (smart filtering & analysis) #88 — Platform-agnostic HAR intelligence (depends on server-side filtering)
Reactions are currently unavailable