-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution][Endpoint] Port trusted apps to ArtifactlsListPage
component
#129208
[Security Solution][Endpoint] Port trusted apps to ArtifactlsListPage
component
#129208
Conversation
46d0792
to
abc21e7
Compare
abc21e7
to
8e14218
Compare
03ac500
to
880485e
Compare
without any trusted app entries, it should see the trusted empty page
880485e
to
534efeb
Compare
…istPage-component
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.
Left a question about a change you made in the newer url_routing
utilities, but looks good to me for merge.
Love the amount of modules/code we removed
export const isDefaultOrMissing = <T>(value: T | undefined, defaultValue: T) => { | ||
return value === undefined || value === defaultValue; | ||
export const isDefaultOrMissing = <T>(value: T | undefined | 0, defaultValue: T) => { | ||
return value === undefined || value === defaultValue || value === 0; |
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.
Why did you add 0
here? 😕
Note: I'm hopping that these new set of utilities here will handle only the "new" type of our standardized URL params - like page
is 1
based, while pages that still use page index should be using the older routing functions.
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, so one of the routing tests was expecting the page to be 0
instead of 1
when the URL params were manually set to the default page (which is 0) or page=0
. See here. I'm assuming, in this case, it should be reset to 1
.
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.
we should not be using page=0
for new pages, as we agreed that going forward they all should be "1-based". We also should not be using MANAGEMENT_DEFAULT_PAGE
because that holds a page index (0-based) and not a page number (1-based). Actually - we probably don't even need a "DEFULT_PAGE" const (I don't remember why we even added it, but it was when we first created the plugin in Kibana)
...solution/public/management/components/artifact_list_page/components/artifact_flyout.test.tsx
Show resolved
Hide resolved
...ck/plugins/security_solution/public/management/pages/trusted_apps/view/trusted_apps_list.tsx
Show resolved
Hide resolved
…istPage-component
review suggestions
defaults to `m`
…istPage-component
ArtifactlLstPage
componentArtifactlsListPage
component
@elasticmachine merge upstream |
…istPage-component
💛 Build succeeded, but was flakyTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsasync chunk count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @ashokaditya |
…e` component (elastic#129208) * move validations to artifacts fixes elastic/security-team/issues/3092 * use ArtifactsListPage fixes elastic/security-team/issues/3092 * Remove redundant files fixes elastic/security-team/issues/3092 * Update trusted app list ftr test fixes elastic/security-team/issues/3092 * fix test mock fixes elastic/security-team/issues/3092 * add trusted app form tests fixes elastic/security-team/issues/3092 * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * default page index to 1 when set to 0 refs elastic/pull/129099/commits/b688d505b460964117ba1a303b417760b13a2888 * add tests for new routing methods refs elastic/pull/129099/ * review changes fixes elastic/security-team/issues/3092 * update fleet integration test without any trusted app entries, it should see the trusted empty page * update translation again after merge refs 6a792fc * add a test for search field KQL review suggestions * remove redundant flyout size defaults to `m` Co-authored-by: kibanamachine <[email protected]>
Summary
ArtifactsListPage
component.Checklist