-
Notifications
You must be signed in to change notification settings - Fork 208
PHPC-1891, PHPC-1892, PHPC-1893: Implement TopologyDescription, SDAMSubscriber, and TopologyChangedEvent #1244
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
Conversation
@jmikola For updating the libmongoc submodule, how do I determine what to update LIBMONGOC_VERSION_CURRENT to? |
This was already covered in Ensure libmongoc version information is correct within the contributing docs. I added a note about the script's outstanding issue with detecting a version for a non-release, non-master branch (similar to what I noted in #1243 (comment)). I've also amended the Update libmongoc submodule section to outline the process for pointing the submodule to a specific fork, which covers your case where you need to point to the commit in mongodb/mongo-c-driver#785. |
Note: another step for bumping libmongoc submodules is to Update sources in build configurations. I recently did this in ac49353 and have since merged master into the |
4f60636
to
fe2e590
Compare
The GitHub CI build failures (https://github.com/mongodb/mongo-php-driver/pull/1244/checks?check_run_id=3256294983) say "implicit declaration of function ‘mongoc_topology_description_new_copy’" - is this because I didn't update the libmongoc submodule correctly? I updated |
Most likely. I don't see any commits in this PR updating |
Hmm I've updated |
71df8b7
to
bcc17ce
Compare
Yes. Arginfo should definitely be correct for any method. The arginfo for Consider the following definitions of both macros from LXR: |
===DONE=== | ||
<?php exit(0); ?> | ||
--EXPECTF-- | ||
bool(%s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test would be improved by capturing the final TopologyDescription and asserting that hasReadableServer()
returns true.
===DONE=== | ||
<?php exit(0); ?> | ||
--EXPECTF-- | ||
bool(%s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to my earlier comments, we can change this test to capture the last TopologyDescription object and expect true
here.
tests/topologyDescription/topologyDescription-var_export-001.phpt
Outdated
Show resolved
Hide resolved
The |
489d07e
to
1185aa6
Compare
@tanlisu Also note that mongodb/mongo-c-driver#785 (for CDRIVER-3909) has been merged. You can revert the change to |
fd04964
to
c81a50d
Compare
dc9b919
to
813d7b8
Compare
…ChangedEvent class
Co-authored-by: Jeremy Mikola <[email protected]>
tests/topologyDescription/topologyDescription-hasReadableServer_error-001.phpt
Show resolved
Hide resolved
…ubscriber, and TopologyChangedEvent (mongodb#1244)
https://jira.mongodb.org/browse/PHPC-1891
https://jira.mongodb.org/browse/PHPC-1892
https://jira.mongodb.org/browse/PHPC-1893