-
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
[Workplace Search] Add API Keys view to replace Access tokens #120147
[Workplace Search] Add API Keys view to replace Access tokens #120147
Conversation
This is done on both the Source overview and Custom source confirmation. Also removed the unused constants and translations
This was introduced in elastic#119256
Also updates casing for nav label
- ApiKeyFlyout - ApiKey - ApiKeysList
04a410c
to
4f8f12b
Compare
CI said this was needed due to core changes
Was mistaken that we use the ID, when we actually use the name. Logic was already correct in the frontend code.
@elasticmachine merge upstream |
merge conflict between base and head |
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.
Doclinks updates lgtm
This was missed because I copied App Search and it was an included there. Once I had an API, I realized I needed to have the confirm modal, as deleting the API key is destructive
The delete confirm modal would still be visible on error. This always hides the modal
This method does more than show the modal.
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.
LGTM! 👍
I found only 1 minor issue during testing, that I don't think we need to fix.
On a separate note, I think the best way to organize similar PRs in the future is to do what we did for the migration to Kibana PRs: have a single copy-paste commit and then do the modifications after it.
pagination={{ | ||
...convertMetaToPagination(meta), | ||
hidePerPageOptions: true, | ||
}} | ||
onChange={handlePageChange(onPaginate)} |
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.
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.
Nice catch! This doesn't work for App Search either. Will do some digging and see if it's an easy fix.
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.
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 think it's fine TBH. The pagination will only hurt. With all keys on one page, you can Ctrl+F to search for a key. If we introduce pagination, users would have to open page by page to find the key.
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.
Agreed. Thanks, Vadim! Will wait to merge until backend lands.
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.
Great work on this!
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
💔 Backport failed
To backport manually run: |
…c#120147) # Conflicts: # docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
… (#120565) # Conflicts: # docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
…-chromium-before-compiling-pdf * 'main' of github.com:elastic/kibana: (121 commits) FTR should use the new kibana_system user (elastic#120436) [Lens] Temporarily exclude Mosaic/Waffle from the suggestions list (elastic#120488) [Reporting] Fix slow CSV with large max size bytes (elastic#120365) [CTI] Threat Intel Card on Overview page needs to accommodate Fleet TI integrations - (elastic#120459) [Dashboard] Added KibanaThemeProvider. (elastic#120122) add more rule_registry unit tests (elastic#120323) [Lens] update xpack.lens.pie.smallValuesWarningMessage text (elastic#120478) [Fleet] Simplified package policy create API, enriching default values (elastic#119739) mock `elastic-apm-node` in `@kbn/test` jest preset (elastic#120324) [RAC] Rename occurrences of alert_type to rule_type in Infra (elastic#120455) [Security Solutions] Removes tech debt of exporting all from linter rule for timeline plugin (elastic#120437) [Workplace Search] Add API Keys view to replace Access tokens (elastic#120147) [Security Solutions] Removes tech debt of exporting all from linter rule for cases plugin in the server section (elastic#120411) Add support for threat.feed.name (elastic#120250) [Rule Registry] Rewrite APM registry rules for Observability (elastic#117740) [docs] Fix artifact layout formatting (elastic#119386) [Workplace Search] Add a technical preview of connecting GitHub via GitHub apps (elastic#119764) add osquery notes for 7.16 (elastic#120407) chore(NA): splits types from code on @kbn/docs-utils (elastic#120533) [Reporting] Decouple screenshotting plugin from the reporting (elastic#120110) ... # Conflicts: # x-pack/plugins/reporting/server/browsers/chromium/driver_factory/index.test.ts # x-pack/plugins/reporting/server/browsers/chromium/driver_factory/index.ts # x-pack/plugins/reporting/server/lib/screenshots/observable.test.ts # x-pack/plugins/reporting/server/lib/screenshots/observable.ts # x-pack/plugins/reporting/server/test_helpers/create_mock_browserdriverfactory.ts
closes https://github.com/elastic/workplace-search-team/issues/2185
closes https://github.com/elastic/workplace-search-team/issues/2186
closes https://github.com/elastic/workplace-search-team/issues/2188
Summary
As of 8.0, Workplace Search is replacing user-level Access Tokens with account-level API keys. This PR removes the Access Tokens from the UI and adds a new feature for API keys.
Please note that this PR only works with the backend on branch
davishmcclurg/frito-pie-api-token
.Removal of Access Tokens
Custom source created confirmation
Custom source overview page
API.keys.mp4
Checklist