Refactor Archiver Client for large requests#196
Open
jacomago wants to merge 7 commits intoChannelFinder:masterfrom
Open
Refactor Archiver Client for large requests#196jacomago wants to merge 7 commits intoChannelFinder:masterfrom
jacomago wants to merge 7 commits intoChannelFinder:masterfrom
Conversation
Collaborator
|
This does sound like a good codeathon task |
f0f092d to
1edb6fe
Compare
1edb6fe to
e9679d1
Compare
src/main/java/org/phoebus/channelfinder/service/external/ArchiverService.java
Show resolved
Hide resolved
src/main/java/org/phoebus/channelfinder/service/external/ArchiverService.java
Outdated
Show resolved
Hide resolved
| List<String> failedPvs = new ArrayList<>(); | ||
| for (int i = 0; i < response.size(); i++) { | ||
| Map<String, String> result = response.get(i); | ||
| String pv = (i < pvs.size()) ? pvs.get(i) : "UNKNOWN_PV"; |
Contributor
There was a problem hiding this comment.
Hmmm, what are we hedging against here, where response.size > pvs.size?
| } | ||
|
|
||
| @Test | ||
| void testGetStatusesInvalidResponse() { |
Contributor
There was a problem hiding this comment.
Nitpick, but test naming is a bit inconsistent: for the previous two you only described action, where you here now also describe the consequence
src/main/java/org/phoebus/channelfinder/service/external/ArchiverService.java
Outdated
Show resolved
Hide resolved
src/test/java/org/phoebus/channelfinder/service/external/ArchiverServiceTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/phoebus/channelfinder/configuration/AAChannelProcessor.java
Outdated
Show resolved
Hide resolved
georgweiss
reviewed
Feb 13, 2026
src/main/java/org/phoebus/channelfinder/configuration/AAChannelProcessor.java
Show resolved
Hide resolved
georgweiss
reviewed
Feb 13, 2026
src/test/java/org/phoebus/channelfinder/service/external/ArchiverServiceTest.java
Outdated
Show resolved
Hide resolved
georgweiss
reviewed
Feb 13, 2026
Collaborator
georgweiss
left a comment
There was a problem hiding this comment.
Had some Spring Boot related comments....
e9679d1 to
22427d3
Compare
This was used to distinguish support for getting status via post or query Now (from an earlier merge) we explicitly configure it instead.
8ed48ac to
3eac53e
Compare
georgweiss
previously approved these changes
Feb 16, 2026
3eac53e to
2db924e
Compare
Adds Validation checking of responses from ArchiveAction s Adds a test for ArchiverService with some example responses from a live archiver
Instead of the mockresponses
2db924e to
82ae89d
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Refactored the Archiver Client to make sure it can stream large requests.
Swapped to the Spring boot RestClient
Added a test ArchiverServiceTest
Reduced the scope of the AAProcessorIT tests to mock the ArchiverService
For future I'd like to use openapi definition from the archiver to generate a client, maybe that's a good codathon ticket.