Skip to content

Fix --only firestore:rules,firestore:indexes edge case#6966

Merged
aalej merged 3 commits intomasterfrom
aalej-firestore-indexrules
Apr 11, 2024
Merged

Fix --only firestore:rules,firestore:indexes edge case#6966
aalej merged 3 commits intomasterfrom
aalej-firestore-indexrules

Conversation

@aalej
Copy link
Copy Markdown
Contributor

@aalej aalej commented Apr 5, 2024

Description

Fixes #6857

When running firebase deploy --only firestore:rules,firestore:indexes, nothing gets deployed since we determine what gets deployed based on what is excluded. This is because of a different edge case #6129.

Adding includes should let firebase-tools know if either/both firestore:rules or/and firestore:indexes is included. Leaving comments as using both exclude and include is confusing.

Scenarios Tested

firebase deploy --only firestore:rules,firestore:indexes

Copy link
Copy Markdown
Member

@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.

Took me a couple reads to understand, but this looks correct to me! Thanks!

@aalej aalej merged commit 8287cec into master Apr 11, 2024
inlined pushed a commit that referenced this pull request Apr 11, 2024
* Fix --only firestore:rules,firestore:indexes edge case

* Added changelog entry
inlined added a commit that referenced this pull request Apr 17, 2024
)

* Move to an AST model for configs for minimal diffs

* Remove js-yaml as a direct dependency

* Fix --only firestore:rules,firestore:indexes edge case (#6966)

* Fix --only firestore:rules,firestore:indexes edge case

* Added changelog entry

* increase supported Astro version to 4 (#6960)

* Fixes a deployment crash when resetting min instances to 0 in v1 functions (#6990)

* fix the falsy value from not being calculated

* add changelog entry

* Remove superfluous parse statement

* PR feedback

* formatter-

* Splice supported library to unbreak json schema generation

* JSDoc comment

* Formatter

---------

Co-authored-by: aalej <alejandromarco@google.com>
Co-authored-by: Leonardo Ortiz <leo@monogram.io>
Co-authored-by: Cole Rogers <colerogers@users.noreply.github.com>
mathu97 pushed a commit that referenced this pull request Apr 18, 2024
)

* Move to an AST model for configs for minimal diffs

* Remove js-yaml as a direct dependency

* Fix --only firestore:rules,firestore:indexes edge case (#6966)

* Fix --only firestore:rules,firestore:indexes edge case

* Added changelog entry

* increase supported Astro version to 4 (#6960)

* Fixes a deployment crash when resetting min instances to 0 in v1 functions (#6990)

* fix the falsy value from not being calculated

* add changelog entry

* Remove superfluous parse statement

* PR feedback

* formatter-

* Splice supported library to unbreak json schema generation

* JSDoc comment

* Formatter

---------

Co-authored-by: aalej <alejandromarco@google.com>
Co-authored-by: Leonardo Ortiz <leo@monogram.io>
Co-authored-by: Cole Rogers <colerogers@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants