Skip to content

fix: send identify event on Client startup [contract-tests] #54

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

Merged
merged 2 commits into from
May 10, 2023

Conversation

cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented May 9, 2023

This adds an Identify call to Client's constructor. Additionally, I fixed a logical error in the event sending code which was stopping some events from being delivered.

@cwaldren-ld cwaldren-ld changed the base branch from main to cw/sc-195303/contract-tests May 9, 2023 22:30
events.as_array().push_back(boost::json::value_from(summarizer_));
} else if (outbox_.Empty()) {
events.push_back(boost::json::value_from(summarizer_));
} else if (events.empty()) {
return std::nullopt;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The bug was checking the outbox - which would always be empty in the else case since it was previously consumed on line 191.

@cwaldren-ld cwaldren-ld changed the title fix: send identify event on startup [contract-tests] fix: send identify event on Client startup [contract-tests] May 10, 2023
@cwaldren-ld cwaldren-ld requested a review from kinyoklion May 10, 2023 17:18
@cwaldren-ld cwaldren-ld marked this pull request as ready for review May 10, 2023 17:18
@cwaldren-ld cwaldren-ld merged commit fb685d4 into cw/sc-195303/contract-tests May 10, 2023
@cwaldren-ld cwaldren-ld deleted the cw/fix-some-event-tests branch May 10, 2023 22:08
cwaldren-ld added a commit that referenced this pull request May 11, 2023
* add SDK contract test server

* allow for null evaluation reason when deserializing flag evaluation result

* add github action for SDK tests

* feat: implement AllFlags

* fix: send identify event on client creation (#54)

* have ContextFilter take the global private attributes by value

* feat: add context build/parse routines [contract-tests] (#74)
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.

1 participant