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

Remove deprecated configuration #819

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Dec 19, 2023

namespace removed replaced by
default_commit_options fsync j
default_commit_options safe w
connections.*.options fsync journal
connections.*.options slaveOkay readPreference
connections.*.options timeout connectTimeoutMS
connections.*.options wTimeout wTimeoutMS

Flagged as deprecated in #820

@GromNaN GromNaN added this to the 5.0.0 milestone Dec 19, 2023
@@ -276,7 +273,7 @@ public static function provideMergeOptions(): array
// the "options" array is totally replaced
$cases[] = [
[
['connections' => ['default' => ['options' => ['timeout' => 2000]]]],
['connections' => ['default' => ['options' => ['socketTimeoutMS' => 2000]]]],
Copy link
Member Author

Choose a reason for hiding this comment

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

Simply switched to an option that is supported.

|--------------------------|-------------|--------------------|
| `default_commit_options` | `fsync` | `j` |
| `default_commit_options` | `safe` | `w` |
| `connections.*.options` | `fsync` | `journal` |
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure if the .*. is the correct notation we use to reference paths with variable parts.

@franmomu
Copy link
Contributor

A reminder that when #820 is merged in 5.0.x, we should remove the @group legacy from the test as well.

@GromNaN
Copy link
Member Author

GromNaN commented Dec 20, 2023

A reminder that when #820 is merged in 5.0.x, we should remove the @group legacy from the test as well.

Done, after rebase.

@GromNaN GromNaN merged commit 0281da7 into doctrine:5.0.x Dec 20, 2023
12 checks passed
@GromNaN GromNaN deleted the remove-deprecated-2 branch December 20, 2023 09:26
@GromNaN GromNaN mentioned this pull request Dec 21, 2023
@GromNaN GromNaN added the Task label Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants