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

[server] Add recommend API to datasource resource #1585

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

anshul98ks123
Copy link
Contributor

@anshul98ks123 anshul98ks123 commented Oct 8, 2024

Issue(s)

Pinot connection

Description

Adding new API api/data-sources/recommend
It will be used in datasource onboarding UI flow to generate recommended datasource connection config
(importantly for Shared SaaS setup)

Depends on #1584

Testing

UTs and
Sanity swagger test (should return 200 response with null body due to default implementation)

Copy link

vercel bot commented Oct 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdeye ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2024 8:19am

@@ -133,6 +133,16 @@ public Response onboardAll(
return respondOk(onboarded);
}

@POST
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
Copy link
Collaborator

Choose a reason for hiding this comment

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

not necessary I think

final String namespace = authorizationManager.currentNamespace(principal);

// verify that user has read access to data sources in given namespace
DataSourceDTO sampleDataset = new DataSourceDTO();
Copy link
Collaborator

Choose a reason for hiding this comment

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

final

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Collaborator

@cyrilou242 cyrilou242 left a comment

Choose a reason for hiding this comment

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

LGTM!

Base automatically changed from TE-generate-authorizer to master October 9, 2024 08:05
@anshul98ks123 anshul98ks123 changed the base branch from master to TE-namespace-configuration October 9, 2024 08:07
@anshul98ks123 anshul98ks123 requested review from a team as code owners October 9, 2024 08:07
@anshul98ks123 anshul98ks123 changed the base branch from TE-namespace-configuration to master October 9, 2024 08:07
@anshul98ks123 anshul98ks123 changed the base branch from master to te-2417 October 9, 2024 08:12
@anshul98ks123 anshul98ks123 changed the base branch from te-2417 to master October 9, 2024 08:12
@anshul98ks123 anshul98ks123 merged commit d15791b into master Oct 9, 2024
12 checks passed
@anshul98ks123 anshul98ks123 deleted the TE-recommend-datasource-api branch October 9, 2024 08:22
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.

2 participants