Closed josh-pinwheelapi closed 3 months ago
Name | Link |
---|---|
Latest commit | d8fd52211b67e6d441d4b549d6fc40b28ea54a45 |
Latest deploy log | https://app.netlify.com/sites/selenium-dev/deploys/6647937d1da23b00085d308e |
Deploy Preview | https://deploy-preview-1729--selenium-dev.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
PR Description updated to latest commit (https://github.com/SeleniumHQ/seleniumhq.github.io/commit/36524f7d426fb09787ffb8750604729eddcbf536)
โฑ๏ธ Estimated effort to review [1-5] | 2, because the changes are straightforward and consistent across multiple documentation files. The PR modifies the constructor of a class to include an additional parameter and updates the method calls accordingly. |
๐งช Relevant tests | No |
โก Possible issues | Typo in Parameter: In the English version of the file, the constructor parameter `registrationSecretm` should be `registrationSecret`. This typo could lead to compilation errors or unexpected behavior. |
๐ Security concerns | No |
Category | Suggestion | Score |
Possible bug |
Correct a typo in the parameter name to ensure code consistency and correctness___ **Correct the typo in the parameter nameregistrationSecretm to registrationSecret in the constructor of DecoratedLoggingNode .**
[website_and_docs/content/documentation/grid/advanced_features/customize_node.en.md [98-100]](https://github.com/SeleniumHQ/seleniumhq.github.io/pull/1729/files#diff-26dd9e1ce0f611040fb6fdd019d9c40892f87ee8ae0ad95cfbf9630ce4597ba7R98-R100)
```diff
-protected DecoratedLoggingNode(Tracer tracer, NodeId nodeId, URI uri, Secret registrationSecretm, Duration sessionTimeout) {
+protected DecoratedLoggingNode(Tracer tracer, NodeId nodeId, URI uri, Secret registrationSecret, Duration sessionTimeout) {
super(tracer, nodeId, uri, registrationSecret, sessionTimeout);
}
```
Suggestion importance[1-10]: 10Why: The suggestion correctly identifies and fixes a typo in the parameter name from `registrationSecretm` to `registrationSecret`, which is crucial for the code to function correctly. | 10 |
User description
Thanks for contributing to the Selenium site and documentation! A PR well described will help maintainers to review and merge it quickly
Description
With this change, the
Node
constructor now requires a thesessionTimeout
argument. Updating code sample to pass it along to theDecoratedLoggingNode
constructor.Motivation and Context
Current example will error out with the following error:
Types of changes
Checklist
PR Type
bug_fix, enhancement
Description
DecoratedLoggingNode
constructor across multiple language versions (English, Japanese, Portuguese-BR, Chinese) to include a newsessionTimeout
parameter.create
method in each language version to fetchsessionTimeout
fromNodeOptions
and pass it correctly to theDecoratedLoggingNode
constructor.Node
constructor requirements, preventing initialization errors.Changes walkthrough ๐
customize_node.en.md
Update Node Initialization to Include Session Timeout
website_and_docs/content/documentation/grid/advanced_features/customize_node.en.md
DecoratedLoggingNode
to includesessionTimeout
parameter.create
method to fetchsessionTimeout
fromNodeOptions
and pass it to the constructor.
customize_node.ja.md
Update Node Initialization to Include Session Timeout
website_and_docs/content/documentation/grid/advanced_features/customize_node.ja.md
DecoratedLoggingNode
to includesessionTimeout
parameter.create
method to fetchsessionTimeout
fromNodeOptions
and pass it to the constructor.
customize_node.pt-br.md
Update Node Initialization to Include Session Timeout
website_and_docs/content/documentation/grid/advanced_features/customize_node.pt-br.md
DecoratedLoggingNode
to includesessionTimeout
parameter.create
method to fetchsessionTimeout
fromNodeOptions
and pass it to the constructor.
customize_node.zh-cn.md
Update Node Initialization to Include Session Timeout
website_and_docs/content/documentation/grid/advanced_features/customize_node.zh-cn.md
DecoratedLoggingNode
to includesessionTimeout
parameter.create
method to fetchsessionTimeout
fromNodeOptions
and pass it to the constructor.