Skip to content

Conversation

zxu123
Copy link
Contributor

@zxu123 zxu123 commented Dec 7, 2017

Discussion

As discussed in Firestore API discussion, the name clashes creates confusion. Android SDK already not exposing the property; here change iOS SDK to match it.

Testing

Tests pass.

API Changes

Its an implementation oversight. Fix to match Android SDK.

as discussed in Firestore API discussion, the name clashes creates confusion. Android SDK already not exposing the property; here change iOS SDK to match it.
@ryanwilson
Copy link
Member

This is currently public, right? If so, it's a breaking change and can't be submitted until the next full version bump of the Firebase SDK.

@zxu123 zxu123 changed the base branch from master to firestore-api-changes December 7, 2017 15:29
@zxu123
Copy link
Contributor Author

zxu123 commented Dec 7, 2017

Now merges with firestore-api-changes for next version.

@morganchen12
Copy link
Contributor

@ryanwilson Firestore is still in beta, though, and in the past has (after alpha) made breaking changes without a major version bump.

@ryanwilson
Copy link
Member

ryanwilson commented Dec 7, 2017

@morganchen12 Ahhh right! I forgot it wasn't at 1.0 yet. Sorry about that! I'm good with this going into master then if desired.

@wilhuff
Copy link
Contributor

wilhuff commented Dec 7, 2017

We're not yet merging to master because we're attempting to batch up a bunch of API changes into a single release rather than dribbling them out over time and making every upgrade painful.

We'll merge firestore-api-changes to master when we're ready to release them all.

@zxu123 zxu123 changed the base branch from firestore-api-changes to master December 7, 2017 19:36
Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

This PR contains a lot of merge noise. Just to be sure, it looks like only these commits contain changes you're actually intending to make, right?

57b61a8
3942e7a

@@ -1,5 +1,7 @@
# Unreleased
- [changed] Firestore no longer has a direct dependency on FirebaseAuth.
- [changed] property includeMetadataChanges is now hidden in FIRDocumentListenOptions
Copy link
Contributor

Choose a reason for hiding this comment

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

From a user's point of view it doesn't really matter that this is now an internal property. From their point of view we just removed it.

This would be better phrased as:

Removed the includeMetadataChanges property in FIRDocumentListenOptions to avoid confusion with the factory method of the same name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

LGTM with a phrasing nit.

@zxu123
Copy link
Contributor Author

zxu123 commented Dec 7, 2017

Should I merge with master or with firebase-ios-sdk?

@zxu123 zxu123 changed the base branch from master to firestore-api-changes December 7, 2017 20:13
@wilhuff
Copy link
Contributor

wilhuff commented Dec 7, 2017

This should be squashed and merged into the firebase-api-changes branch since it's one of the breaking changes we're batching up.

@wilhuff wilhuff assigned zxu123 and unassigned wilhuff Dec 7, 2017
zxu123 and others added 8 commits December 8, 2017 09:15
To avoid surprise by adding a warning. Right now, when offline, empty result is returned with no log nor error, see https://groups.google.com/forum/#!topic/google-cloud-firestore-discuss/puFl9HVU57I/discussion
*   Move the logic from FSTEventManager to FSTRemoteStore. Pros: per query vs per stream.
*   Since state can go into unknown normally (e.g. no listener is registered and nobody care the status), we only warns when status is actually offline to avoid confusion.
All projects are now ExternalProjects

This makes it much easier to build them all in a single pass.
as discussed in Firestore API discussion, the name clashes creates confusion. Android SDK already not exposing the property; here change iOS SDK to match it.
@zxu123 zxu123 merged commit 440014e into firestore-api-changes Dec 8, 2017
@zxu123 zxu123 deleted the zxu/hideincludemetadatachanges branch December 8, 2017 14:23
minafarid pushed a commit to minafarid/firebase-ios-sdk that referenced this pull request Jun 6, 2018
…e#540)

*   make FIRDocumentListenOptions.includeMetadataChanges private

as discussed in Firestore API discussion, the name clashes creates confusion. Android SDK already not exposing the property; here change iOS SDK to match it.

*   update CHANGELOG
@firebase firebase locked and limited conversation to collaborators Nov 10, 2019
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.

7 participants