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

Firestore: Move local store index auto-creation unit tests into the proper file #7601

Merged
merged 14 commits into from
Sep 5, 2023

Conversation

dconeybe
Copy link
Contributor

@dconeybe dconeybe commented Sep 1, 2023

In #7542 and #7587 I added local store unit tests for client-side index auto-creation logic into local_store.test.ts, which contains the generic unit tests that apply to both "memory" local store and "indexeddb" local store. But since client-side indexing is purely a feature of indexeddb local store, I should have put the tests into local_store_indexeddb.test.ts. This PR moves the tests into the correct file. This has the added benefit that uses a more modern and more readable "await" style testing rather than the promise chaining used in the generic tests.

@dconeybe dconeybe self-assigned this Sep 1, 2023
@changeset-bot
Copy link

changeset-bot bot commented Sep 1, 2023

⚠️ No Changeset found

Latest commit: ff01e07

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

@google-oss-bot
Copy link
Contributor

@google-oss-bot
Copy link
Contributor

@dconeybe dconeybe marked this pull request as ready for review September 1, 2023 14:30
@dconeybe dconeybe requested review from a team as code owners September 1, 2023 14:30
Copy link
Contributor

@cherylEnkidu cherylEnkidu left a comment

Choose a reason for hiding this comment

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

Could you please also add test, testCanAutoCreateIndexesWorksWithOrQuery , in SQLiteLocalStoreTest.java ?

@dconeybe
Copy link
Contributor Author

dconeybe commented Sep 1, 2023

Could you please also add test, testCanAutoCreateIndexesWorksWithOrQuery , in SQLiteLocalStoreTest.java ?

That test was part of firebase/firebase-android-sdk#5213, which I plan to port in its entirety. I'd like to do that in a separate PR though. Are you ok to merge this PR and port that test in a subsequent PR?

Copy link
Contributor

@cherylEnkidu cherylEnkidu left a comment

Choose a reason for hiding this comment

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

Porting in a separated PR sounds good to me

@dconeybe dconeybe merged commit c5b9b1f into master Sep 5, 2023
41 checks passed
@dconeybe dconeybe deleted the dconeybe/LocalStoreUnitTestsPortToIndexedDbTest branch September 5, 2023 18:17
@firebase firebase locked and limited conversation to collaborators Oct 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants