Added first_attempt as a filter in PaymentFilters.
This is required for the new Analytics v2 Smart Retries Metrics, specifically Smart Retries Successful Distribution and Smart Retries Failure Distribution, for calculations only involving smart retries (ignoring first attempts).
Additional Changes
[ ] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables
Now this response will only have data related to the attempts which are not the first attempt, and are only subsequent smart rertries.
Fields that can be observed in the queryData:
Type of Change
Description
Added
first_attempt
as a filter inPaymentFilters
.This is required for the new Analytics v2
Smart Retries
Metrics, specificallySmart Retries Successful Distribution
andSmart Retries Failure Distribution
, for calculations only involving smart retries (ignoring first attempts).Additional Changes
Motivation and Context
Helps in calculating certain metrics seamlessly.
How did you test it?
Hit the curl:
Response body:
Now this response will only have data related to the attempts which are not the first attempt, and are only subsequent smart rertries. Fields that can be observed in the
queryData
:Checklist
cargo +nightly fmt --all
cargo clippy