-
Notifications
You must be signed in to change notification settings - Fork 211
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
[BE] 10-10EZ - Improvement: Update HCA::LogEmailDiffJob to remove the need for a redis key with a ttl of -1 #94285
Comments
@allanto-ah I turned this on in staging. To validate we'll need to compare the va profile email to an in progress form that has an email. The job gets called after saving the in progress form. |
After the second fix for the job, I created a form for a logged in user and set the Veteran email to one different than the profile email for the user account. The metric showed up for them being different here with the toggle turned on. |
Adding this comment for future reference if need be since I talked to a few people about it. Something that I did discover with both the new and old implementation for those metrics. If a Veteran saves an in progress form with an email, it will log the same/different metric, but if they go change the email value on the same in progress form a second time it won't log it again. With the old implementation it won't log more than one for the same user, and with the new it will only log for a unique user/in progress form combo. So if I go start a second form for the same user account, it will increment that metric again based on the new in progress form. I have to imagine creating multiple in progress 10-10EZ forms for the same user account is somewhat rare, but I'm sure it does happen. |
Background
A member of the Platform Product team (DevOps) informed VFS teams of some Redis keys that are not defined in the
redis.yml
configuration file of the vets-api repo. They also have a TTL (Time to live) of -1, which makes them persist indefinitely in the Redis store.One of the keys was removed here, but the
HCA::LogEmailDiffJob
is still using a redis key with a ttl of -1. This implemenation needs updated to still be able to increment the appropriate metric in the job without needing a redis key that does not expire. A database table or new column somewhere may be an approprate solution, but further investigation is needed.Resources
Slack conversation - Expand to view
Tasks
api.1010ez.in_progress_form_email.same
andapi.1010ez.in_progress_form_email.different
, following the existing logic in theHCA::LogEmailDiffJob
by either using the existing job or building something new.redis.yml
configuration file of the vets-api repo.Acceptance Criteria
redis-namespace
gem and follow all expected implementation norms.The text was updated successfully, but these errors were encountered: