Skip to content

Integrate new FSQL AgentService API#10531

Open
hlshen wants to merge 28 commits into
mainfrom
hlshen/orcas
Open

Integrate new FSQL AgentService API#10531
hlshen wants to merge 28 commits into
mainfrom
hlshen/orcas

Conversation

@hlshen
Copy link
Copy Markdown
Contributor

@hlshen hlshen commented May 19, 2026

Replace generateSchema and generateQuery backends with the new fdc AgentService API.

  • Add notification tracking for generateQuery flow in VSCode.
  • Improve error handling in generateQuery flow in VSCode
  • Fetch schema files before sending request to generateQuery

Verification:

  • Verified firebase init flow
  • Verified generateQuery codelenses

https://screencast.googleplex.com/cast/NTI3MTY4NjczODg3MDI3Mnw2NmEyZDEwNS1hNA

TODO:
Cleanup CloudAICompanion references and API enablement checks
Update CLI init flow to check for Markdown references properly
Consider inserting code as a diff in VSCode

@wiz-9635d3485b
Copy link
Copy Markdown

wiz-9635d3485b Bot commented May 19, 2026

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities -
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings 14 Medium
Software Management Finding Software Management Findings -
Total 14 Medium

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors Data Connect schema and operation generation to utilize a new streaming API, incorporating local schema validation via the emulator and improved progress tracking. Feedback highlights several technical concerns: the use of synchronous file I/O within asynchronous functions, fragile NDJSON parsing logic that may fail on partial stream chunks, and inconsistent indentation. Additionally, there is a significant discrepancy in the environment URL configuration that conflicts with test expectations. It is also recommended to treat invalid GraphQL response validations as errors rather than information messages for better visibility.

Comment thread firebase-vscode/src/data-connect/execution/execution.ts Outdated
Comment thread firebase-vscode/src/data-connect/execution/execution.ts Outdated
Comment thread firebase-vscode/src/data-connect/execution/execution.ts Outdated
Comment thread src/gemini/fdcExperience.ts Outdated
@hlshen hlshen changed the title Hlshen/orcas Integrate new FSQL AgentService API May 19, 2026
@firebase firebase deleted a comment from gemini-code-assist Bot May 19, 2026
@hlshen hlshen requested review from chkuang-g, fredzqm and joehan May 19, 2026 20:34
Copy link
Copy Markdown
Contributor

@chkuang-g chkuang-g left a comment

Choose a reason for hiding this comment

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

Update CHANGELOG.md as well :)

@hlshen hlshen requested a review from chkuang-g May 19, 2026 21:05
Copy link
Copy Markdown
Contributor

@fredzqm fredzqm left a comment

Choose a reason for hiding this comment

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

Nice, super excited!

Can you include a screencast of the new UX? We can use some feedbacks from Marissa.
Are we planning to do a bugbash?

Comment thread firebase-vscode/src/data-connect/execution/execution.ts Outdated
Comment thread firebase-vscode/src/data-connect/code-lens-provider.ts Outdated
parse(res);
} catch (e: any) {
logger.error(res);
vscode.window.showErrorMessage(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Even if they aren't valid, I think we should still insert them.
They are probably close enough that customers can build on top of and iterate.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

going to delay this to another PR. I'm planning to add a diff view before insertion as well, and your idea applies here

@hlshen
Copy link
Copy Markdown
Contributor Author

hlshen commented May 21, 2026

Nice, super excited!

Can you include a screencast of the new UX? We can use some feedbacks from Marissa. Are we planning to do a bugbash?

UX is identical (edit: accept for notification). Only under the hood changes. Definitely will be hosting bug blashes!

EDIT - added a screencast to show notification changes

@hlshen hlshen requested a review from fredzqm May 21, 2026 20:34
Copy link
Copy Markdown
Contributor

@fredzqm fredzqm left a comment

Choose a reason for hiding this comment

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

Thank you!!

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