-
Notifications
You must be signed in to change notification settings - Fork 426
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
Use maps for mongoose_wpool options #3645
Commits on May 12, 2022
-
Use maps with defaults in outgoing pool options
- Refactor wpool options to use the new utlitity merge_sections/2 - Store connection options in maps - Remove unnecessary conversions and changes of keys - Fix rabbit options - they did not work before, as no 'amqp_' prefixes were expected in the resulting config. - Rename rootdn to root_dn - same as in the resulting options - Add 'max_start_interval' to rdbms - there was code for handling it, but the option was missing from the spec. - Add missing resuired keys for some pools. - Make some implicit defaults explicit. See the following commits for the pool-specific counterparts of this change.
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 2229b7b - Browse repository at this point
Copy the full SHA 2229b7bView commit details -
Paweł Chrząszcz committed
May 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 97885f7 - Browse repository at this point
Copy the full SHA 97885f7View commit details -
Expect connection options in a map
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 4820e58 - Browse repository at this point
Copy the full SHA 4820e58View commit details -
Update mongoose_rdbms and its backends
- Expect connection options and server options in maps - Add type specs: one with generic options and one per backend - Minimize changes in TLS options for now
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 3fa014c - Browse repository at this point
Copy the full SHA 3fa014cView commit details -
Expect original keys from the spec: 'host' and 'tls'
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for ea9226e - Browse repository at this point
Copy the full SHA ea9226eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c074f72 - Browse repository at this point
Copy the full SHA c074f72View commit details -
- Expect TLS options with the original 'tls' key. - Expect credential in the original format. The previous two-phase processing was too complicated.
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 2cd2028 - Browse repository at this point
Copy the full SHA 2cd2028View commit details -
Update mongoose_wpool_cassandra
Expect options in the original format (in maps).
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 7c3cc73 - Browse repository at this point
Copy the full SHA 7c3cc73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e762d2 - Browse repository at this point
Copy the full SHA 9e762d2View commit details -
- Rename 'host' to 'host_type' - Expect options without the 'amqp_' prefixes which actually did not work (there was no conversion)
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for cc57c9c - Browse repository at this point
Copy the full SHA cc57c9cView commit details -
- Use options directly to initialize state - Get rid of the 'encrypt' option - 'tls' is enough and more consistent with other pools
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 5d755b4 - Browse repository at this point
Copy the full SHA 5d755b4View commit details -
Update pool config option helpers
- Update option format and default values - Replace the custom merging function with a generic recursive one This way any section with subsections can by specified by providing only the extra options.
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 2440123 - Browse repository at this point
Copy the full SHA 2440123View commit details -
Update the test TOML config for pools
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 1f09fe3 - Browse repository at this point
Copy the full SHA 1f09fe3View commit details -
- Rearrange pool tests to check options from one section in one test case - Add missing tests for elastic - Check wpool options for all pool types (they sometimes change) - Use paths (P ++ [Key]) for all checks - Rework 'compare_nodes' to be more generic and consistent. Only TLS options require unordered list comparisons now.
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for e05f130 - Browse repository at this point
Copy the full SHA e05f130View commit details -
Update pool config in small tests
Use the 'config/2' helper to merge options with defaults.
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 0c31ce1 - Browse repository at this point
Copy the full SHA 0c31ce1View commit details -
Update pool config in big tests
- Update the format of changed options - Use the config/2 helper to merge options with defaults
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 3ca4b61 - Browse repository at this point
Copy the full SHA 3ca4b61View commit details -
Update the docs for outgoing pools
- Update the format of changed options - Put ODBS after PGSQL/MySQL, as it is less common - Mention required options explicitly - Add changed options to the migration guide
Paweł Chrząszcz committedMay 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 8316f89 - Browse repository at this point
Copy the full SHA 8316f89View commit details