Skip to content

Add all_flags, secure_mode_hash + more#51

Merged
drichelson merged 8 commits into
v2from
dr/v2Polish
Aug 4, 2016
Merged

Add all_flags, secure_mode_hash + more#51
drichelson merged 8 commits into
v2from
dr/v2Polish

Conversation

@drichelson

Copy link
Copy Markdown
Contributor

Getting client up to speed with: https://catamorphic.quip.com/Ggk6AbylpJBf

Comment thread ldclient/flag.py


def evaluate(flag, user, store, prereq_events=[]):
def evaluate(flag, user, store):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I moved all the flag eval logic into the flag file.

Comment thread demo/demo.py Outdated

if __name__ == '__main__':
ldclient._api_key = 'api_key'
ldclient.api_key = 'api_key'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we change api_key to sdk_key?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I did a wholesale change- including removing the api_key prefix from the auth header.

@jkodumal

jkodumal commented Aug 3, 2016

Copy link
Copy Markdown
Contributor

👍

Comment thread ldclient/client.py
send_event(default, flag.get('version'))
return default

def all_flags(self, user):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@jkodumal take note of these checks when implementing in other sdks.

@drichelson drichelson merged commit 9517055 into v2 Aug 4, 2016
@drichelson drichelson deleted the dr/v2Polish branch August 4, 2016 15:28
eli-darkly added a commit that referenced this pull request May 10, 2018
re-add redundant key property in identify event
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.

2 participants