Skip to content

Conversation

@Datron
Copy link
Collaborator

@Datron Datron commented Nov 21, 2025

Problem

Internal juspay systems require more information from the provider to provide adequate debugging information

Solution

  • refactor resolution
  • expose get_satisfied_experiments
  • Add variants chosen to the Resolution Details so users can validate and debug

Future TODO

Have all s11n providers expose the same interface. This will be done in a future PR

@Datron Datron requested a review from a team as a code owner November 21, 2025 07:18
@semanticdiff-com
Copy link

semanticdiff-com bot commented Nov 21, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/superposition_provider/src/provider.rs  25% smaller
  crates/superposition_provider/src/client.rs  0% smaller
  crates/superposition_provider/src/lib.rs  0% smaller

) -> Result<serde_json::Map<String, Value>> {
self.eval_config(evaluation_context).await
prefix_filters: Option<Vec<String>>,
) -> Result<(serde_json::Map<String, Value>, Vec<String>)> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we make a type for this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Aliasing it for now

@Datron Datron force-pushed the expose-satisfied-experiments branch 2 times, most recently from 46e7325 to 5fdfbca Compare November 21, 2025 10:01
- Add variants chosen to the Resolution Details so users can validate
  and debug
@Datron Datron force-pushed the expose-satisfied-experiments branch from 5fdfbca to 00fb43c Compare November 25, 2025 10:34
Copy link
Collaborator

@mahatoankitkumar mahatoankitkumar left a comment

Choose a reason for hiding this comment

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

TODO for the next PR.

  • Making a separate type instead of aliasing.
  • And expose these functions in other providers too.

.await
}

pub async fn get_running_experiments_from_provider(&self) -> Result<Experiments> {
Copy link
Collaborator

@knutties knutties Nov 28, 2025

Choose a reason for hiding this comment

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

Why call this get_running_experiments_from_provider while using the get_cached_experiments inside? 1-1 naming will be helpful here ?

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.

4 participants