-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CST] Shifts Claims Letters doctype logic into downloader #19516
[CST] Shifts Claims Letters doctype logic into downloader #19516
Conversation
…identical information
…github.com/department-of-veterans-affairs/vets-api into 96224-additional-claim-development-letters
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: app/controllers/v0/virtual_agent_claim_letters_controller.rb |
…github.com/department-of-veterans-affairs/vets-api into 96224-additional-claim-development-letters
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: spec/controllers/v0/virtual_agent_claim_letters_controller_spec.rb |
@@ -38,10 +42,9 @@ | |||
context 'with a valid response' do | |||
context 'with mobile_filter_doc_27_decision_letters_out flag enabled' do | |||
it 'returns expected decision letters' do | |||
Flipper.enable('mobile_filter_doc_27_decision_letters_out') | |||
Flipper.enable(:mobile_filter_doc_27_decision_letters_out) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know these were already like this, but we have new conventions for Flipper specs. Do you mind updating these in accordance please?
https://depo-platform-documentation.scrollhelp.site/developer-docs/feature-toggles-guide#FeatureTogglesGuide-Backendexample
Particularly this part:
# Recommended to limit the feature flag state to the scope of this test
allow(Flipper).to receive(:enabled?).with(:feature_flag).and_return(true)
# Not recommended. Affects global state and can have unintended side effects when tests run in parallel
Flipper.enable(:feature_flag)
Summary
This is an iterative change to #19241.
That original work there added the claims letters to the controller that is hit by vets-website, and this change moves everything one step upstream: the logic to determine which letter doctypes to retrieve is now located in the
ClaimLetterDownloader
. Prior to this change, the Website was the only client to use the feature flags to determine which letters to get. The Virtual Agent and Mobile were both configured to ignore those flags and only ever get doctype 184.I did this after consulting with the Virtual Agent team and with the mobile team. They agree that the delineation of doctypes between clients is not necessary, and that all letters can be shown to everyone.
There is a separate feature flipper called
mobile_filter_doc_27_decision_letters_out
that now seems redundant. It exists to, even if the feature flipper enabling doctype 27 is turned on in general, strip those letters from the mobile app. We do not know why this exists. (The flipper enabling doctype 27 will remain off, as the Board has not approved digital delivery of these letters.)The testing for the Claims Letters Controller is here, in the aforementioned PR.
cst_include_ddl_5103_letters
cst_include_ddl_sqd_letters
Related issue(s)
Testing done
What areas of the site does it impact?
This affects the Claim Letters view.
Acceptance criteria