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

Create classes for tracking Attempts API events #11716

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mitchellhenke
Copy link
Contributor

🎫 Ticket

https://gitlab.login.gov/lg-teams/Melba/protocols-backlog/-/issues/142

🛠 Summary of changes

A follow up to #11692 to create an interface to begin logging events to the previously implemented storage. This is also heavily based on the 2022 implementation with similar changes to accommodate multiple service providers. This PR creates an initial stub module for the list of events as well.

changelog: Internal, Attempts API, Create class for tracking Attempts API events
if metadata.has_key?(:failure_reason) &&
(metadata[:failure_reason].blank? ||
metadata[:success].present?)
metadata.delete(:failure_reason)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we do metadata.dup so we're not mutating an input?

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/attempts-api-tracker branch from 003640a to 031b693 Compare January 7, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants