-
Notifications
You must be signed in to change notification settings - Fork 852
SOLR-18332: More 'qt' removal, rd 4 #4731
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
base: main
Are you sure you want to change the base?
Changes from all commits
f1f2aef
7e1db1e
b5e6629
75838e7
4033f8c
c7073e8
c16e85e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,13 +71,12 @@ public void testSimpleQueries() { | |
| @Test | ||
| public void testLuke() { | ||
|
|
||
| assertQ("basic luke request failed", req("qt", "/admin/luke"), "//int[@name='numDocs'][.='2']"); | ||
| assertQ( | ||
| "basic luke request failed", reqWithPath("/admin/luke"), "//int[@name='numDocs'][.='2']"); | ||
|
|
||
| assertQ( | ||
| "luke show schema failed", | ||
| req( | ||
| "qt", "/admin/luke", | ||
| "show", "schema"), | ||
| reqWithPath("/admin/luke", "show", "schema"), | ||
| "//int[@name='numDocs'][.='2']", | ||
| "//null[@name='uniqueKeyField']"); | ||
| } | ||
|
|
@@ -111,11 +110,12 @@ public void testAllConfiguredHandlers() { | |
|
|
||
| assertQ( | ||
| "failure w/handler: '" + handler + "'", | ||
| req( | ||
| "qt", handler, | ||
| // this should be fairly innocuous for any type of query | ||
| "q", "foo:bar", | ||
| "omitHeader", "false"), | ||
| reqWithPath( | ||
| handler, // this should be fairly innocuous for any type of query | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i wonder if using the Solr specific term
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't love the use of "handler" as it's very v1 specific and a bit vestigial. But I think there is a bit of a difference in terms of how we use it colloquially: I think most folks use "Handler" to refer specifically to the last path-segment (i.e. It'd be nice if we had a v1/v2 agnostic name for "that part of the path that comes after the collection/core name", but right now I think "handler" is kindof serving that role. |
||
| "q", | ||
| "foo:bar", | ||
| "omitHeader", | ||
| "false"), | ||
| "//lst[@name='responseHeader']"); | ||
| } catch (Exception e) { | ||
| throw new RuntimeException("exception w/handler: '" + handler + "'", e); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if the parameter
qtcan be renamed topath? Just from readnig the diff, I think this is now a variable holding the specific path?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good thought - if I do eventually succeed in getting 'qt' removed then variable names like this won't make any sense.
OTOH, renaming this variable (and others like it) will make the diff much less homogeneous. Right now every line in this diff is a req -> reqWithPath swap. But if you as a reviewer don't mind adding that noise to the diff (?), then I don't either I guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind noise... have you seen my pr's!???? Ooh, let me go fix that random typo ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but seriously, for me success means the letters q & t never show up in our code base next to each other.