Skip to content
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: Identity overrides in local evaluation mode #121

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

khvn26
Copy link
Member

@khvn26 khvn26 commented Apr 4, 2024

Closes #112.
Contributes to Flagsmith/flagsmith#3132.

Merge #122 first!

@khvn26 khvn26 requested review from a team and matthewelwell and removed request for a team April 4, 2024 02:40
@khvn26 khvn26 force-pushed the feat/identity-overrides-local-eval branch from db231b4 to 43d2a71 Compare April 4, 2024 02:56
client.go Outdated
@@ -276,15 +277,28 @@ func (c *Client) UpdateEnvironment(ctx context.Context) error {
return errors.New(e["detail"])
}
c.environment.Store(&env)
ids := make(map[string]identities.IdentityModel)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't love the variable naming here. I think by ids we're referring to identities, but at first glance, I was expecting just a numeric id for example.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed the naming.

@khvn26 khvn26 force-pushed the feat/identity-overrides-local-eval branch 2 times, most recently from 29e3152 to 043cc5c Compare April 4, 2024 14:32
@khvn26 khvn26 force-pushed the feat/identity-overrides-local-eval branch from 043cc5c to 704d365 Compare April 4, 2024 19:27
@khvn26 khvn26 requested a review from matthewelwell April 4, 2024 20:11
@khvn26 khvn26 force-pushed the feat/identity-overrides-local-eval branch from f9863ce to f561275 Compare April 4, 2024 20:15
@khvn26 khvn26 merged commit e592264 into main Apr 5, 2024
3 checks passed
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.

Identity overrides in local evaluation mode
2 participants