Skip to content

Conversation

@jkebinger
Copy link
Collaborator

Summary

Adds an Optional<Long> envId field to the Match class that reports the environment ID of the ConfigRow that matched during config evaluation. This allows consumers to know which environment's configuration was used.

Changes

  • Add envId field to Match class with getter and update toString()
  • Update ConfigRuleEvaluator to extract project_env_id from ConfigRow and pass to Match
  • Update ConfigResolver to preserve envId when reifying matches
  • Update test files to include envId parameter in Match constructors

Test plan

  • All 428 existing tests pass
  • No new tests needed as this is an additive change that preserves existing behavior

Related

Ported from prefab-cloud/prefab-cloud-java#154

🤖 Generated with Claude Code

Adds an Optional<Long> envId field to the Match class that reports
the environment ID of the ConfigRow that matched during config evaluation.
This allows consumers to know which environment's configuration was used.

Changes:
- Add envId field to Match class with getter
- Update ConfigRuleEvaluator to extract project_env_id from ConfigRow
- Update ConfigResolver to preserve envId when reifying matches
- Update test files to include envId parameter in Match constructors

Ported from prefab-cloud/prefab-cloud-java#154

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link
Contributor

@jdwyah jdwyah left a comment

Choose a reason for hiding this comment

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

thanks

@jkebinger jkebinger merged commit 4cd249d into main Oct 8, 2025
1 check passed
@jkebinger jkebinger deleted the add-envid-to-match branch October 8, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants