-
Notifications
You must be signed in to change notification settings - Fork 21
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
chore: adds CompositeDataSource for FDv2 support #787
base: ta/fdv2-temporary-holding
Are you sure you want to change the base?
chore: adds CompositeDataSource for FDv2 support #787
Conversation
packages/shared/common/src/api/subsystem/DataSystem/CallbackHandler.ts
Outdated
Show resolved
Hide resolved
packages/shared/common/src/api/subsystem/DataSystem/CompositeDataSource.ts
Outdated
Show resolved
Hide resolved
packages/shared/common/src/api/subsystem/DataSystem/CompositeDataSource.ts
Outdated
Show resolved
Hide resolved
packages/shared/common/src/api/subsystem/DataSystem/CompositeDataSource.ts
Outdated
Show resolved
Hide resolved
packages/shared/common/src/api/subsystem/DataSystem/CompositeDataSource.ts
Outdated
Show resolved
Hide resolved
packages/shared/common/src/api/subsystem/DataSystem/CompositeDataSource.ts
Outdated
Show resolved
Hide resolved
packages/shared/common/src/api/subsystem/DataSystem/CallbackHandler.ts
Outdated
Show resolved
Hide resolved
packages/shared/common/src/api/subsystem/DataSystem/CompositeDataSource.ts
Outdated
Show resolved
Hide resolved
packages/shared/common/src/api/subsystem/DataSystem/CompositeDataSource.ts
Outdated
Show resolved
Hide resolved
packages/shared/common/src/api/subsystem/DataSystem/CompositeDataSource.ts
Outdated
Show resolved
Hide resolved
packages/shared/common/src/api/subsystem/DataSystem/CompositeDataSource.ts
Outdated
Show resolved
Hide resolved
@@ -43,7 +43,7 @@ | |||
"test": "echo Please run tests for individual packages.", | |||
"coverage": "npm run test -- --coverage", | |||
"contract-test-service": "npm --prefix contract-tests install && npm --prefix contract-tests start", | |||
"contract-test-harness": "curl -s https://raw.githubusercontent.com/launchdarkly/sdk-test-harness/master/downloader/run.sh \\ | VERSION=v2 PARAMS=\"-url http://localhost:8000 -debug -stop-service-at-end $TEST_HARNESS_PARAMS\" sh", | |||
"contract-test-harness": "curl -s https://raw.githubusercontent.com/launchdarkly/sdk-test-harness/master/downloader/run.sh \\ | VERSION=v2 PARAMS=\"-url http://localhost:8000 -debug --skip-from=./contract-tests/testharness-suppressions.txt -stop-service-at-end $TEST_HARNESS_PARAMS\" sh", |
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.
NON-BLOCKING: Did you intend to commit this or was it just left over from debugging?
// these local variables are used for handling automatic transition related to data source status (ex: recovering to primary after | ||
// secondary has been valid for N many seconds) | ||
let lastState: DataSourceState | undefined; | ||
let cancelScheduledTransition: () => void = () => {}; |
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's difficult to tell but this might be problematic. Consider the case where this is pushed to _cancelTokens
more than once. Since _consumeCancelToken()
removes the token using indexOf
which finds the element by strict equality, it would only find and remove the first instance.
Requirements
I have added test coverage for new or changed functionality
I have followed the repository's pull request submission guidelines
I have validated my changes against all supported platform versions
Will be done on target temp branch eventually.
Related issues
SDK-857