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

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

Merged
merged 3 commits into from
Apr 11, 2024

Conversation

aalej
Copy link
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
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.

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

@aalej aalej merged commit 8287cec into master Apr 11, 2024
35 checks passed
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 <[email protected]>
Co-authored-by: Leonardo Ortiz <[email protected]>
Co-authored-by: Cole Rogers <[email protected]>
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 <[email protected]>
Co-authored-by: Leonardo Ortiz <[email protected]>
Co-authored-by: Cole Rogers <[email protected]>
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.

Deploying firestore:rules with firestore:indexes doesn't work
2 participants