Skip to content

Align driver with latest revision of ExecuteQuery ADR #1377

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 13 commits into from
Mar 31, 2023

Conversation

fbiville
Copy link
Contributor

Rename QueryTask occurrences with ExecuteQuery

Rename default ExecuteQuery's default BookmarkManager getter

Make default ExecuteQuery's default BookmarkManager unchangeable

Rename `QueryTask` occurrences with `ExecuteQuery`

Rename default `ExecuteQuery`'s default `BookmarkManager` getter

Make default `ExecuteQuery`'s default `BookmarkManager` unchangeable
@fbiville fbiville requested a review from injectives February 15, 2023 12:03
@fbiville fbiville force-pushed the execute-query-adr-follow-up branch from 3789a41 to c25692e Compare February 15, 2023 13:35
Copy link
Contributor

@injectives injectives left a comment

Choose a reason for hiding this comment

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

I had a catch-up with @AndyHeap-NeoTech today, who is working on the ADR amendment.
Following that, QueryTask and QueryConfig should remain as the are.
BookmarkManager accessor naming should include default word, but I think it will remain configurable upon driver creation (ADR update pending).

*
* @return bookmark manager, must not be {@code null}
* @since 5.6
*/
@Experimental
BookmarkManager queryTaskBookmarkManager();
BookmarkManager defaultExecuteQueryBookmarkManager();
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want that on the drivers level?
Simple API should be simple. There's little value here for the users we are aiming for. If we don't need it, we should not introduce it.
If it is requested, we can still add.

Copy link
Contributor

@injectives injectives Feb 23, 2023

Choose a reason for hiding this comment

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

(To bring context) As far as I remember, this was introduced to allow access to default BookmarkManager to make it possible to use the same instance in SessionConfig, where it must be set explicitly to opt-in. If we still want this to be possible, there should be some way of doing it. I am happy to explore other implementation options.

Choose a reason for hiding this comment

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

The thinking behind having this method was to allow the user to causally chain with uses of the session API, where a bookmark manager can be supplied on session creation.

Choose a reason for hiding this comment

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

Should have refreshed the page...Dmitriy beat me to it.

Copy link

@AndyHeap-NeoTech AndyHeap-NeoTech left a comment

Choose a reason for hiding this comment

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

All good.

Copy link

@AndyHeap-NeoTech AndyHeap-NeoTech left a comment

Choose a reason for hiding this comment

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

LGTM

@injectives injectives merged commit 22232ea into 5.0 Mar 31, 2023
@injectives injectives deleted the execute-query-adr-follow-up branch March 31, 2023 09:44
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.

4 participants