jnioche opened a new pull request, #1870:
URL: https://github.com/apache/stormcrawler/pull/1870

   ## Summary
   - Extracts near-identical delegate loading, JSONResource validation, and 
periodic OpenSearch refresh logic from `JSONURLFilterWrapper` and 
`JSONResourceWrapper` into a new generic `DelegateRefresher<T>` class
   - Reduces each wrapper from ~180 lines to ~75 lines while preserving all 
existing behavior
   - Adds 8 unit tests for `DelegateRefresher` covering delegate loading for 
both URLFilter and ParseFilter, error cases (missing config, wrong base type, 
missing JSONResource), and idempotent cleanup
   
   ## Test plan
   - [x] `mvn test -pl external/opensearch -Dtest=DelegateRefresherTest` — all 
8 new unit tests pass
   - [x] `mvn checkstyle:check -pl external/opensearch` — 0 violations
   - [x] `mvn compile -pl external/opensearch -am` — clean compile
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to