Skip to content

[FDC] Generate schema during init dataconnect flow #8596

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

Draft
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

fredzqm
Copy link
Contributor

@fredzqm fredzqm commented May 15, 2025

Screenshot 2025-05-15 at 3 53 49 PM

Added ToS note as well

@@ -111,7 +112,7 @@ export async function askQuestions(setup: Setup): Promise<void> {
}));
if (shouldConfigureBackend) {
// TODO: Prompt for app idea and use GiF backend to generate them.
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove TODO?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, removed

* @param text the generated response from the service.
* @return the code block from the generated response.
*/
export function extractCodeBlock(text: string): string {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably get a test for this if possible

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, just vaib coded a test case for it.

@github-project-automation github-project-automation bot moved this to Changes Requested [PR] in [Cloud] Extensions + Functions May 15, 2025
@fredzqm
Copy link
Contributor Author

fredzqm commented May 15, 2025

Addressed all feedbacks~

@github-project-automation github-project-automation bot moved this from Changes Requested [PR] to Approved [PR] in [Cloud] Extensions + Functions May 15, 2025
@codecov-commenter
Copy link

codecov-commenter commented May 15, 2025

Codecov Report

Attention: Patch coverage is 46.15385% with 14 lines in your changes missing coverage. Please review.

Project coverage is 51.05%. Comparing base (2263d68) to head (ee4c8c0).

Files with missing lines Patch % Lines
src/init/features/dataconnect/index.ts 23.07% 10 Missing ⚠️
src/dataconnect/ensureApis.ts 50.00% 2 Missing ⚠️
src/gif/fdcExperience.ts 77.77% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8596   +/-   ##
=======================================
  Coverage   51.04%   51.05%           
=======================================
  Files         431      432    +1     
  Lines       30986    31018   +32     
  Branches     6367     6370    +3     
=======================================
+ Hits        15818    15835   +17     
- Misses      13752    13766   +14     
- Partials     1416     1417    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@joehan joehan left a comment

Choose a reason for hiding this comment

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

Holding on this until post iO since its awaiting approval

@github-project-automation github-project-automation bot moved this from Approved [PR] to Changes Requested [PR] in [Cloud] Extensions + Functions May 16, 2025
@fredzqm
Copy link
Contributor Author

fredzqm commented May 16, 2025

Double checked with Kara and Thevi. Since we print out the terms of service disclosure, this change should be good to go.

MPC server integration is blocked on more review.

@fredzqm fredzqm enabled auto-merge (squash) May 16, 2025 17:48
@fredzqm fredzqm disabled auto-merge May 16, 2025 19:54
@fredzqm fredzqm marked this pull request as draft May 23, 2025 18:17
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.

4 participants