[CIRCSTORE-647] Add Request Anonymization Endpoint - #581
Conversation
|
Summary
Core changes
Other notable changes
Merge readiness and risk assessment
Critical issues to address (actionable, mapped to specific places in the diff)
Possible improvements (actionable suggestions tied to diff locations)
Explanation and suggested code-level fixes
Minor / stylistic
|
|
@julianladisch @roman-barannyk Hello, is there any further feedback for this PR? Thank you. |
|
@brycekbargar I've re-created this PR to make the checks pass (#590), but test coverage is still very low at<2% (new code coverage threshold is 80%). Here's AI analysis of this PR, seems to be correct: The key bit is in pom.xml (line 540): Surefire excludes org/folio/rest/api/**/*Test.java, then runs StorageTestSuite.java (line 55). That suite explicitly lists test classes, and it includes AnonymizeLoansApiTest.class but not the new AnonymizeRequestsApiTest.class at lines 56-87. |
@alexanderkurash Thank you for pointing me to the test suite file. I had been explicitly selecting the tests with |
|
Thank you for the feedback @alexanderkurash ! I've made and pushed the changes. |
I took the code from the Anonymizing Loans codepaths and used it to implement Anonymization for requests. Reusing the loan implementation carries over at least one weirdness where we don't actually check if an id can be anonymized, we just don't anonymize it and tell the user we did. There's probably more that I'm not aware of.
I'm picking up this work because the initial developers have other commitments now. This PR is I think implementing this ticket: https://folio-org.atlassian.net/browse/CIRCSTORE-647 .