Rename QueryBar to QueryBarTopRow#45250
Conversation
|
Pinging @elastic/kibana-app-arch |
💔 Build Failed |
Bargs
left a comment
There was a problem hiding this comment.
The SearchBar component is intended to work anywhere, not just the global top row necessarily, so I wouldn't recommend referencing TopRow in the QueryBar component's name.
|
@Bargs You can see that I didn't only rename the component, but I also stopped exporting it from the plugin's API, so it can't be used by anyone outside the plugin. Does this make it clearer? |
💔 Build Failed |
…om/kibana into newplatform/query/rename-query-bar
💔 Build Failed |
|
@lizozom Why include |
|
we are renaming it as we want to rename searchbar to querybar later. as its not something we would expose on our contracts i really think we shoulnt loose any time on naming discussions here |
…/rename-query-bar
|
retest |
1 similar comment
|
retest |
💔 Build Failed |
…/rename-query-bar
💚 Build Succeeded |
This wasn't a silly naming discussion, I kept asking because the name made no sense to me whatsoever and no one was answering my relatively simple question about what the name actually meant. I want to ensure there is not a misunderstanding about where and how the SearchBar component is meant to be used.
If this guess is correct (please confirm @lizozom) then that's fine with me. |
|
@Bargs QueryBar is the top row of the search bar - a wrapper around As you (correctly) moved the logic to |
* rename QueryBar to QueryBarTopRow * Fixed test typo * Fixed search bar mock
Summary
Rename QueryBar to QueryBarTopRow and make it an implementation detail of the query service.
Dev Docs
QueryBartoQueryBarTopRowQueryBaron the public contract.Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers