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

chore: Adds LDDataSystemOptions for configuring the Data System. #794

Open
wants to merge 4 commits into
base: ta/sdk-857/composite-datasource
Choose a base branch
from

Conversation

tanderson-ld
Copy link
Contributor

@tanderson-ld tanderson-ld commented Mar 4, 2025

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 and SDK-1073

updateProcessorFactory: TypeValidators.Function.is(validatedOptions.updateProcessor)
? validatedOptions.updateProcessor
: () => validatedOptions.updateProcessor,
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For reviewers: Not sure if we need to continue maintaining these ts-ignore annotations due to the types of the inputs being "object | function". I think we do need to maintain them, perhaps you know off the top of your head @kinyoklion

initSuccessHandler: VoidFunction,
errorHandler?: (e: Error) => void,
) => subsystem.LDStreamProcessor;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Investigate if these should be readonly.

isStreamingOptions(config.dataSystem.dataSource)) &&
config.dataSystem.dataSource.streamInitialReconnectDelay
? { reconnectTimeMillis: config.dataSystem.dataSource.streamInitialReconnectDelay }
: null),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For reviewers: This part got a little ugly since now some of these options may not be present. Is there a cleaner way to omit these members?

this.featureStoreFactory = () => validatedOptions.featureStore;
}

this.hooks = validatedOptions.hooks;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For reviewers: Hooks was moved up. UpdateProcessorFactory and FeatureStoreFactory was moved up to be near the data system logic.

@tanderson-ld tanderson-ld force-pushed the ta/sdk-1073/datasystem-config branch from e669f87 to d186358 Compare March 18, 2025 15:30
@tanderson-ld tanderson-ld marked this pull request as ready for review March 18, 2025 15:30
@tanderson-ld tanderson-ld requested a review from a team as a code owner March 18, 2025 15:30
@tanderson-ld tanderson-ld force-pushed the ta/sdk-1073/datasystem-config branch from d186358 to bb47dde Compare March 24, 2025 16:21
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