-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(routing): Integrate global success rates #6950
base: main
Are you sure you want to change the base?
Conversation
Changed Files
|
crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs
Outdated
Show resolved
Hide resolved
crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs
Outdated
Show resolved
Hide resolved
))?; | ||
|
||
let outcome = get_success_based_metrics_outcome_for_payment( | ||
payment_status_attribute, | ||
payment_connector.to_string(), | ||
first_success_based_connector.to_string(), | ||
first_merchant_success_based_connector.to_string(), | ||
); | ||
|
||
let dynamic_routing_stats = DynamicRoutingStatsNew { |
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.
should we create a new column here which stores the globally_top_performing_connector
at the time this particular payment was made?
cc: @prajjwalkumar17
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.
Yes we should do this.
there's conflicts too. please add test cases as well |
Type of Change
Description
Integrate global Success rates for dynamic routing
Additional Changes
Motivation and Context
How did you test it?
Checklist
cargo +nightly fmt --all
cargo clippy