Skip to content

Support firebase dataconnect:sdk:generate --watch#7719

Merged
rosalyntan merged 4 commits intomasterfrom
rosalyntan.watch
Sep 24, 2024
Merged

Support firebase dataconnect:sdk:generate --watch#7719
rosalyntan merged 4 commits intomasterfrom
rosalyntan.watch

Conversation

@rosalyntan
Copy link
Copy Markdown
Member

Description

Scenarios Tested

Sample Commands

@rosalyntan rosalyntan changed the title Support firebase dataconnect:sdk:generaate --watch Support firebase dataconnect:sdk:generate --watch Sep 23, 2024
import { readFirebaseJson } from "../dataconnect/fileUtils";
import { logger } from "../logger";

type GenerateOptions = Options & { watch?: boolean };
Copy link
Copy Markdown
Contributor

@fredzqm fredzqm Sep 23, 2024

Choose a reason for hiding this comment

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

[Can be defered] [Not blocking PP, lower priority than compatible modes docs]

While we are at this. It would nice if sdk:generate also takes optional [serviceId] [connectorId] like other commands.

The rule of thumb from go/fdc:multi-data-source: if there are >1 services / connectors / datasource, it defaults to run the same routine against all relevant resources.

  dataconnect:services:list                                      list all deployed services in your Firebase 
                                                                 project
  dataconnect:sql:diff [serviceId]                               displays the differences between  a local 
                                                                 DataConnect schema and your CloudSQL database's 
                                                                 current schema
  dataconnect:sql:migrate [options] [serviceId]                  migrates your CloudSQL database's schema to 
                                                                 match your local DataConnect schema
  dataconnect:sql:grant [options] [serviceId]                    Grants the SQL role <role> to the provided user 
                                                                 or service account <email>.
  dataconnect:sdk:generate                                       generates typed SDKs for your Data Connect 
                                                                 connectors

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Filed b/369400626 to update all commands per go/fdc:multi-data-source, as I believe right now an error is thrown in diff/migrate/grant if serviceId isn't specified and multiple services exist.

@rosalyntan rosalyntan marked this pull request as ready for review September 24, 2024 19:12
@rosalyntan rosalyntan requested a review from joehan September 24, 2024 19:12
@rosalyntan rosalyntan merged commit 35d16be into master Sep 24, 2024
@rosalyntan rosalyntan deleted the rosalyntan.watch branch September 24, 2024 20:04
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