Skip to content

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
@rosalyntan rosalyntan requested a review from joehan 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

@rosalyntan rosalyntan enabled auto-merge (squash) September 11, 2024 20:41
@rosalyntan rosalyntan merged commit 18e3189 into master Sep 11, 2024
@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