Skip to content

DATA-4054 Data pipelines Typescript support #551

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

DATA-4054 Data pipelines Typescript support #551

wants to merge 10 commits into from

Conversation

n0nick
Copy link
Member

@n0nick n0nick commented Apr 30, 2025

This PR:

  1. Adds SDK coverage for all new DataPipelinesService APIs.
  2. Replaces UseRecentData usage with the new TabularDataSource format (DATA-3966).

Manual testing: See https://gist.github.com/n0nick/52bb4954472e618d302bd20a350712b9

@n0nick n0nick requested a review from a team as a code owner April 30, 2025 15:47
@n0nick n0nick requested review from njooma and lia-viam April 30, 2025 15:47
Comment on lines +251 to +259
let dataSource = tabularDataSource;
if (
useRecentData &&
(!dataSource || dataSource.type === TabularDataSourceType.UNSPECIFIED)
) {
dataSource = new TabularDataSource({
type: TabularDataSourceType.HOT_STORAGE,
});
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@vijayvuyyuru in the context of DATA-4091 i think this is safe right? if dataSource was null before, we will still send null

Copy link
Member

Choose a reason for hiding this comment

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

Im not 100% sure, I think if tabularDataSource is undefined, doing dataSource.type might cause an exception?

Copy link
Member

Choose a reason for hiding this comment

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

If we're handling this in app, what's the reason behind adding it here?

Copy link
Member Author

@n0nick n0nick May 1, 2025

Choose a reason for hiding this comment

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

Im not 100% sure, I think if tabularDataSource is undefined, doing dataSource.type might cause an exception?

I think !dataSource || would short-circuit: Playground Link

If we're handling this in app, what's the reason behind adding it here?

I was thinking if we do this in SDKs, we essentially stop population of the useRecentData field, then we can drop it in App, then drop it in SDKs.

Comment on lines +251 to +259
let dataSource = tabularDataSource;
if (
useRecentData &&
(!dataSource || dataSource.type === TabularDataSourceType.UNSPECIFIED)
) {
dataSource = new TabularDataSource({
type: TabularDataSourceType.HOT_STORAGE,
});
}
Copy link
Member

Choose a reason for hiding this comment

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

If we're handling this in app, what's the reason behind adding it here?

*
* @returns A page of data pipeline runs
*/
async nextPage(): Promise<ListDataPipelineRunsPage> {
Copy link
Member

Choose a reason for hiding this comment

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

Cool!

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.

3 participants