Skip to content
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

[Enterprise Search] [Behavioral analytics] Add search to collection list #155524

Merged
merged 11 commits into from
Apr 25, 2023

Conversation

yansavitski
Copy link
Contributor

✔️ Implement search for collection list Page
✔️ Add search query to fetch collection request
✔️ Update server-side to support new search query
image

actions.makeRequest({});
fetchAnalyticsCollections: async ({ query }, breakpoint) => {
if (query) {
await breakpoint(200);
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: make it a constant.

@@ -50,12 +50,25 @@ export function registerAnalyticsRoutes({
router.get(
{
path: '/internal/enterprise_search/analytics/collections',
validate: {},
Copy link
Member

Choose a reason for hiding this comment

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

could we add a testcase for this?

},
}),
path: ['enterprise_search', 'analytics', 'collections'],
reducers: {
isSearchRequest: [
Copy link
Member

Choose a reason for hiding this comment

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

do we still need isSearchRequest, now that we have searchQuery?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can avoid, but in that case we need to put some logic in query. Like if it's null(because we can't have undefined) that means we just fetched items, if it's empty that means we clear search. I would even split in two functions, like search and fetch, to make it more obvious. Because now when we use this functions we need to keep in mind logic besides it

@yansavitski yansavitski added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting Team:EnterpriseSearch v8.8.0 labels Apr 21, 2023
@yansavitski yansavitski marked this pull request as ready for review April 24, 2023 14:53
@yansavitski yansavitski requested a review from a team April 24, 2023 14:53
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
enterpriseSearch 2061 2062 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 2.3MB 2.3MB +1.2KB
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 17 19 +2
securitySolution 395 398 +3
total +5

Total ESLint disabled count

id before after diff
enterpriseSearch 18 20 +2
securitySolution 475 478 +3
total +5

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@yansavitski yansavitski merged commit 7c920d1 into elastic:main Apr 25, 2023
@yansavitski yansavitski deleted the ba-add-search-list branch April 25, 2023 08:45
nikitaindik pushed a commit to nikitaindik/kibana that referenced this pull request Apr 25, 2023
…ist (elastic#155524)

✔️  Implement search for collection list Page
✔️ Add search query to fetch collection request
✔️ Update server-side to support new search query
<img width="1162" alt="image"
src="https://user-images.githubusercontent.com/17390745/233668294-0b3dd60b-a016-43dd-8362-91a368212d5c.png">

---------

Co-authored-by: Joseph McElroy <joseph.mcelroy@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:EnterpriseSearch v8.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants