Skip to content
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

API-43192-recordconstent-bug-fix #19792

Merged
merged 10 commits into from
Dec 12, 2024

Conversation

rockwellwindsor-va
Copy link
Contributor

@rockwellwindsor-va rockwellwindsor-va commented Dec 9, 2024

Summary

  • Updates enable_vbms_access check
    • will set eFolder access to 'No if:
      • recordConsent is null or false
      • consentLimits is present
  • Updates related poa_updater , service_base and poa_vbms_updater tests
    • Adds additional test for this scenario
    • Refactors the flipper handling
  • Enables VBMS Updater job to run no matter what and send in 'y' or 'n' as per the form data
  • Adds allow_poa_access and allow_poa_c_add to log out

Related issue(s)

API-43192

Testing done

  • New code is covered by unit tests

Testing Notes

  • Will set eFolder Access to 'No' (any combination should work)
    • "recordConsent": false
    • "consentLimits": ["DRUG_ABUSE"] <--- or any of the other values from the ENUM
  • Verify that the VBMS Updater Job ran successfully. Then go into Citrix and look up the POA history tab for the test user you submitted (found in the 'poa' page for that user)

Screenshots

Screenshot 2024-12-09 at 5 44 08 PM
  • Updated logger details
Screenshot 2024-12-10 at 8 41 51 AM

What areas of the site does it impact?

modified:   modules/claims_api/app/sidekiq/claims_api/poa_updater.rb
modified:   modules/claims_api/app/sidekiq/claims_api/poa_vbms_updater.rb
modified:   modules/claims_api/app/sidekiq/claims_api/service_base.rb
modified:   modules/claims_api/spec/sidekiq/poa_updater_spec.rb
modified:   modules/claims_api/spec/sidekiq/poa_vbms_updater_spec.rb

Acceptance criteria

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No error nor warning in the console.
  • Events are being sent to the appropriate logging solution
  • Documentation has been updated (link to documentation)
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs
  • Feature/bug has a monitor built into Datadog (if applicable)
  • If app impacted requires authentication, did you login to a local build and verify all authenticated routes work as expected
  • I added a screenshot of the developed feature

Requested Feedback

(OPTIONAL)What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?

* Updates `enable_vbms_access` check
	* As per the ticket, the `constentLimits` is not clear on how or if that factors into this so the check doe sremove that and not replace it, discovery to come on that, the check was not really blocking snce it was setting previously to it getting there in the workflow anyways
* Updates related `poa_updater` and `poa_vbms_updater` tests
	* Adds one additional test for this scenario
	* Refactors the flipper handling
* Enables VBMS Updater job to run no matter what and send in 'y' or 'n' as per the form data
	modified:   modules/claims_api/app/sidekiq/claims_api/poa_updater.rb
	modified:   modules/claims_api/app/sidekiq/claims_api/poa_vbms_updater.rb
	modified:   modules/claims_api/app/sidekiq/claims_api/service_base.rb
	modified:   modules/claims_api/spec/sidekiq/poa_updater_spec.rb
	modified:   modules/claims_api/spec/sidekiq/poa_vbms_updater_spec.rb
@rockwellwindsor-va rockwellwindsor-va added the claimsApi modules/claims_api label Dec 9, 2024
@va-vfs-bot va-vfs-bot temporarily deployed to API-43192-recordconstent-bug-fix/main/main December 9, 2024 20:32 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-43192-recordconstent-bug-fix/main/main December 10, 2024 00:30 Inactive
@rockwellwindsor-va rockwellwindsor-va marked this pull request as ready for review December 10, 2024 14:44
@rockwellwindsor-va rockwellwindsor-va requested a review from a team as a code owner December 10, 2024 14:44
@rockwellwindsor-va rockwellwindsor-va marked this pull request as draft December 10, 2024 15:20
@va-vfs-bot va-vfs-bot temporarily deployed to API-43192-recordconstent-bug-fix/main/main December 10, 2024 15:55 Inactive
@rockwellwindsor-va rockwellwindsor-va marked this pull request as ready for review December 10, 2024 18:59
@va-vfs-bot va-vfs-bot temporarily deployed to API-43192-recordconstent-bug-fix/main/main December 10, 2024 19:30 Inactive
Copy link
Contributor

@tycol7 tycol7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good, just some questions on the tests.

* Updates default variable
* Cleans up variable setting in vbms updater
* Cleans up method signature in vbms updater
* Adjusts tests to be inline with other recent code changes
	modified:   modules/claims_api/app/sidekiq/claims_api/poa_vbms_updater.rb
	modified:   modules/claims_api/lib/bgs_service/corporate_update_web_service.rb
	modified:   modules/claims_api/spec/sidekiq/poa_vbms_updater_spec.rb
Copy link
Contributor

@stiehlrod stiehlrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested v2 POA 2122 submit, saw the new log info, saw the update in the poa history section

stiehlrod
stiehlrod previously approved these changes Dec 11, 2024
@rockwellwindsor-va rockwellwindsor-va marked this pull request as draft December 11, 2024 22:50
@rockwellwindsor-va rockwellwindsor-va merged commit 0e3113f into master Dec 12, 2024
25 checks passed
@rockwellwindsor-va rockwellwindsor-va deleted the API-43192-recordconstent-bug-fix branch December 12, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
claimsApi modules/claims_api test-passing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants