Skip to content

Conversation

@anna-carroll
Copy link
Contributor

@anna-carroll anna-carroll commented Jun 26, 2025

The SimItems cache key was variably names as score, identifier, and key. However, score and identifier are both also used elsewhere in this code to refer to different values. I found this to make the code less readable.

This PR

  • Differentiates between cache_rank (the item's ordering within the cache) and score (final, actual simulation score based on beneficiary balance change)
  • Differentiates between cache_rank and identifier (tx hash for txns, UUID for bundles)

Also updates logging to use SimItem identifier (rather than cache_rank) to make the logs more readable & searchable.

@anna-carroll anna-carroll self-assigned this Jun 26, 2025
@anna-carroll anna-carroll requested a review from a team as a code owner June 26, 2025 13:19
@anna-carroll anna-carroll changed the title clarify between fee_score and identifier clarify between cache_rank and identifier Jun 26, 2025
@prestwich
Copy link
Member

ci should be fixed rebasing onto main after #80

@anna-carroll anna-carroll force-pushed the anna/rename-identifier-for-clarity branch from 7725537 to ba6c12e Compare June 27, 2025 17:17
@anna-carroll anna-carroll merged commit 4c14cb5 into main Jun 27, 2025
6 checks passed
@anna-carroll anna-carroll deleted the anna/rename-identifier-for-clarity branch June 27, 2025 17:23
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