fix(sections): ReconstructableSection as policy#1412
Conversation
This is a bug I introduced in my misunderstanding of the work related to #1016 and implementing #1195. This fixes the issue that @kplaneaux caught in manual testing of that work in the AIMS development site. Since it makes the most sense to have these in the Policy service, that's where they are and can be used on the client-side to ensure only the sections appearing in this new class are available to the server and the client. Co-Authored-By: Robert Mitchell <utu9@cdc.gov>
Merge remote-tracking branch 'origin/main' into rogeruiz/1016/policy-for-section-reconstruction
🔒 Security Scan Results
|
| Severity | Total |
|---|---|
| 🟠 High | 12 |
| 🟡 Medium | 3 |
📦 refiner-app
✅ No vulnerabilities found
📦 refiner-lambda
| Severity | Count |
|---|---|
| 🟠 High | 4 |
📦 refiner-ops
| Severity | Count |
|---|---|
| 🟠 High | 8 |
| 🟡 Medium | 3 |
View detailed results: Security tab
Last updated: 2026-06-22 23:37:06 UTC
|
Are we able to see programmatically which sections have a reconstruct option in order to add it to their drop-downs rather than needing to add the option manually as we go? |
Good question @kplaneaux I checked with the team and I believe this is the best alternative we have. This data isn't available to us from the TES. So we are using our Policy service to lock down which Sections are considered Reconstructable. So technically yes, this is all done programmatically, but we will still need to activate Sections as Reconstructable manually by adding/uncommenting them from the introduced class in |
🔀 PULL REQUEST
💡 Summary
This is a bug I introduced in my misunderstanding of the work related to #1016
and implementing #1195. This fixes the issue that @kplaneaux caught in manual
testing of that work in the AIMS development site. Since it makes the most sense
to have these in the Policy service, that's where they are and can be used on
the client-side to ensure only the sections appearing in this new class are
available to the server and the client.
🔗 Related Issue
✅ Acceptance Criteria
Results section only.
🧪 How to test
just server test -vvv refiner/tests/unit/test_service_policy.pyjust dev upand verify that under Sections that Results isthe only one that allows for the Reconstuct option in the dropdown under
the Narrative data column.