Skip to content

Conversation

@hhvitek
Copy link
Contributor

@hhvitek hhvitek commented Mar 12, 2025

Issue reference

#700

Documentation PR reference

No documentation change

Description and context

Creates WriteConcern using alternate constructor

Benefits

Allows WriteConcern as {w: 1}

Possible Drawbacks

Possibly If somebody actively used https://www.mongodb.com/docs/manual/tutorial/configure-replica-set-tag-sets/ with tag = numeric value. Instead of wanting to rely on W1, W2 ,etc

Checklist

- enables configuring Mongock with numeric writeConcern values (representing W1, W2, etc.).
- previously, only "majority" or "tag set name" were supported.
@hhvitek hhvitek requested a review from dieppa as a code owner March 12, 2025 12:58
@dieppa
Copy link
Member

dieppa commented Mar 12, 2025

It looks good. But could you add test, please?

@hhvitek
Copy link
Contributor Author

hhvitek commented Mar 13, 2025

It looks good. But could you add test, please?
Added simple test class

@osantana85 osantana85 merged commit 21a896e into flamingock:develop Mar 15, 2025
4 checks passed
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.

3 participants