-
Notifications
You must be signed in to change notification settings - Fork 42
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: Add support for big segments #213
base: main
Are you sure you want to change the base?
Conversation
a7a2cbe
to
62b63ba
Compare
62b63ba
to
46af7c5
Compare
38aa1b6
to
7acecd7
Compare
0293108
to
c9a3649
Compare
c9a3649
to
fd289c7
Compare
public function getContextMembership(string $contextKey): ?Impl\BigSegments\MembershipResult | ||
{ | ||
if ($this->store === null) { | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a little unclear in which cases null will be returned vs which cases a result with null membership and store error will come back.
*/ | ||
class BigSegmentsConfig | ||
{ | ||
const DEFAULT_STATUS_POLL_INTERVAL = 5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What unit is this? Feels like it is minutes, but I guess could be seconds.
$nextPollingTime = ($this->lastStatusPollTime?->getTimestamp() ?? 0) + $this->config->statusPollInterval;
* will be called only when the SDK needs the latest state, so it should | ||
* not be cached. | ||
*/ | ||
public function getMetadata(): Types\BigSegmentsStoreMetadata; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For failure cases, getMembership returns a nullable, but this does not. Should those be consistent?
No description provided.