Skip to content

Clean up and re-enable some OR query tests. #7638

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

Merged
merged 5 commits into from
Sep 26, 2023

Conversation

ehsannas
Copy link
Contributor

No description provided.

@ehsannas ehsannas requested review from a team as code owners September 19, 2023 20:22
@changeset-bot
Copy link

changeset-bot bot commented Sep 19, 2023

⚠️ No Changeset found

Latest commit: 367d9a3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ehsannas ehsannas self-assigned this Sep 19, 2023
@ehsannas ehsannas requested a review from milaGGL September 19, 2023 20:35
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 19, 2023

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 19, 2023

@milaGGL
Copy link
Contributor

milaGGL commented Sep 22, 2023

There are duplicate test cases in 2 "OR queries". Please remove it. for example:

// Two IN operations on different fields with disjunction.
and
// Two IN operations on different fields with disjunction.

@milaGGL
Copy link
Contributor

milaGGL commented Sep 22, 2023

In the second "OR queries", only 3 tests require composite index, 'can use query overloads','can use or queries','supports multiple in ops'.
I suggest merge all other test cases into one "OR queries", except for the above 3.

@ehsannas
Copy link
Contributor Author

In the second "OR queries", only 3 tests require composite index, 'can use query overloads','can use or queries','supports multiple in ops'.
I suggest merge all other test cases into one "OR queries", except for the above 3.

Yep, I have

  • Removed the duplicate tests that did not need a composite index.
  • Kept can use query overloads and can use or queries
  • Slightly modified supports multiple in ops so it doesn't need a composite index (by using an equality instead of inequality in the filter). This modification doesn't change what we're testing, and makes it possible to run without a composite index.

Copy link
Contributor

@milaGGL milaGGL left a comment

Choose a reason for hiding this comment

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

LGTM

@ehsannas ehsannas merged commit eff9530 into master Sep 26, 2023
@ehsannas ehsannas deleted the ehsann/update-or-query-tests branch September 26, 2023 20:55
@firebase firebase locked and limited conversation to collaborators Oct 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants