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

Fixed minor bug parsing url connection. Updated dependencies libraries. #209

Merged
merged 5 commits into from
Sep 25, 2023

Conversation

ja-jimenez
Copy link
Contributor

Hi!

I have found the url parser didn't work with url like "mongodb://localhost/", so I have made some changes in the regular expression to support this and other cases like options format following the mongodb specs. I have added tests from this spec too.

Besides, I have update some libraries to avoid some warnings while compiling and add a @tag :rs_required to some tests that need a replica set to be executed correctly, like the ones that use transactions.

Regards.

@zookzook zookzook self-assigned this Sep 17, 2023
@zookzook
Copy link
Owner

Thank you. It seems by updating the credo package a new rule was introduced and the credo task returns a ' Refactoring opportunities'. Please change the value to 4 or disable the rule to continue the workflow.

@ja-jimenez
Copy link
Contributor Author

Hi.

I have updated the credo config file to allow max_nesting value to 4. Now it must return the same output than previous version.

Looks like the function ReadPreference.primary() has been deleted in master branch. I think now we must use the function ReadPreference.merge_default(), so I have updated the test topology_test.exs file to use this new function.

Regards.

@ja-jimenez
Copy link
Contributor Author

Hello.

Why is failing the release-please action?? Reviewing the logs I see this message:

Error: release-please failed: Error adding to tree: 9e4d56957a8bd2605bf50dbe5eea551b4fc2dc40

Is there something that I must do to fix this?

Regards.

@zookzook zookzook merged commit f68b9c1 into zookzook:master Sep 25, 2023
2 of 3 checks passed
zookzook added a commit that referenced this pull request Nov 1, 2023
* fix: handle read preferences without tags

* Fixed minor bug parsing url connection. Updated dependencies libraries. (#209)

* Fixed minor bug parsing url connection. Updated dependencies libraries.

* Incremented max_nesting option in credo refactor nestring

* Changed function ReadPreference.primary() by ReadPreference.merge_defaults() in topology test file

---------

Co-authored-by: Juan Antonio Jiménez <[email protected]>
Co-authored-by: Michael Maier <[email protected]>

* fix: applies the global timeout value to each query (#215)

* Document BSON.Decoder and BSON.PreserveOrderDecoder

But keep the documentation for those modules private for now.

Expand the documentation on Data Representation and how to deal with
preserving key order when encoding and decoding data.

* Test BSON decoders

* Document how to go from annotated maps with order keys to lists

---------

Co-authored-by: zookzook <[email protected]>
Co-authored-by: Juan Antonio <[email protected]>
Co-authored-by: Juan Antonio Jiménez <[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.

2 participants