Skip to content

Add notificationFilter to the Config type #1093

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

Merged
merged 5 commits into from
Jun 9, 2023

Conversation

bigmontz
Copy link
Contributor

@bigmontz bigmontz commented Jun 8, 2023

The notificationFilter config was not mapped correctly to the Config type. So, the driver was not offering the correct auto-complete and type support for this configuration on the neo4j.driver factory.

The disconnection between the configuration object and the documentation was the root cause of the issue, since the filter was correctly documented.

For solving this issue, the Config documentation was moved to live along with its definition. The interface was promoted to class to make it happen. However, the class constructor can only be used internally and for the api point of view, the Config still behaving as an interface.

The `notificationFilter` config was not mapped correctly to the `Config` type.
So, the driver was not offering the correct auto-complete and type support for this configuration
on the `neo4j.driver` factory.

The disconnection between the configuration object and the documentation was the root cause of the issue,
since the filter was correctly documented.

For solving this issue, the `Config` documentation was moved to live along with its definition.
The interface was promoted to class to make it happen.
Howevever, the class constructor can only be used internally and for the api point of view,
the `Config` still behaving as an interface.
bigmontz and others added 2 commits June 8, 2023 16:04
@ConorNeo ConorNeo self-requested a review June 9, 2023 07:37
Copy link
Contributor

@stefano-ottolenghi stefano-ottolenghi left a comment

Choose a reason for hiding this comment

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

🦸

@bigmontz bigmontz merged commit 973dbd6 into neo4j:5.0 Jun 9, 2023
@bigmontz bigmontz deleted the improve-driver-config branch June 9, 2023 12:26
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