-
Notifications
You must be signed in to change notification settings - Fork 62
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
vi-35 ToU check agreement changed #18534
base: master
Are you sure you want to change the base?
Conversation
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.
Looking good, overall appears to work as expected, but I have a number of comments to clean up the implementation a bit, and to refactor the specs to kinda more closely match how RSpec should be organized
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.
Just some minor logic and style suggestions. Also, if a user has never accepted nor declined an agreement with map will the status endpoint still return something?
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.
Looks good
Note: Delete the description statements, complete each step. None are optional, but can be justified as to why they cannot be completed as written. Provide known gaps to testing that may raise the risk of merging to production.
Summary
Testing done
vets-website
,vets-api
, and start sidekiq in vets-apibundle exec sidekiq
map/sign_up_service/status/default.yml
file.)map/sign_up_service/status/default.yml
to change theagreementSigned
andoptOut
values to what you desire to test.bin/rails c
.TermsOfUse::Acceptor.new(user_account: ua, version: 'v1').perform!
orTermsOfUse::Decliner.new(user_account: ua, version: 'v1').perform!
I setua
to the user_account I am testing. Based on whatagreementSigned
andoptOut
is set to inmap/sign_up_service/status/default.yml
, the logAgreement not changed
could show in sidekiq. The accept/decline possibilities are belowAcceptance criteria
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?