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

Implement schemaValidation mode handling in firebase dataconnect:sql:diff #7633

Merged
merged 8 commits into from
Sep 11, 2024

Conversation

rosalyntan
Copy link
Member

@rosalyntan rosalyntan commented Sep 9, 2024

Description

Updates the firebase dataconnect:sql:diff command per go/fdc-compat-mode-cli-api. firebase init, firebase dataconnect:sql:migrate, and firebase deploy will be updated in later PRs.

Scenarios Tested

NOTE: Tested against the staging API, as compat mode changes have not yet rolled out to prod.

schemaValidation unset in dataconnect.yaml, has both required and optional changes:
Screenshot 2024-09-11 at 1 18 18 PM

schemaValidation unset in dataconnect.yaml, has only required changes:
Screenshot 2024-09-11 at 1 20 14 PM

schemaValidation unset in dataconnect.yaml, has only optional changes:
Screenshot 2024-09-11 at 1 28 16 PM

schemaValidation: STRICT in dataconnect.yaml, has both required and optional changes:
Screenshot 2024-09-11 at 1 32 36 PM

schemaValidation: COMPATIBLE in dataconnect.yaml, has both required and optional changes:
Screenshot 2024-09-11 at 1 33 17 PM

Sample Commands

@rosalyntan rosalyntan changed the title Compat mode support. Implement schemaValidation mode handling in firebase dataconnect:sql:diff Sep 10, 2024
@rosalyntan rosalyntan marked this pull request as ready for review September 10, 2024 22:47
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.

Small nits, but code LGTM - lets just make sure to test after backend changes roll out

src/dataconnect/schemaMigration.ts Outdated Show resolved Hide resolved
@rosalyntan rosalyntan enabled auto-merge (squash) September 11, 2024 20:41
@rosalyntan rosalyntan merged commit 18e3189 into master Sep 11, 2024
40 of 41 checks passed
@rosalyntan rosalyntan deleted the rosalyntan.compat branch September 11, 2024 20:51
tammam-g pushed a commit that referenced this pull request Sep 13, 2024
…:diff` (#7633)

* Compat mode support.

* Support handling schema validation options in `diff`.

* Fix build.

* Format.

* Don't output second set of diffs if they're equal to the first.

* Address review comments.

* Tweak output logs.
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