-
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
[Enterprise Search][App Search] Credentials Logic updates #78644
[Enterprise Search][App Search] Credentials Logic updates #78644
Conversation
I renamed `showCredentialsForm` to be `shouldShowCredentialsForm` because it's a boolean, not an action. I renamed `toggleCredentialsForm` to `showCredentialsForm`, since it's only use to show the form, never to hide, and there is a separate action for hiding the form.
Changed to isActiveApiTokenExisting to follow better boolean naming practices
It now properly resets activeApiTokenRawName, which was not being reset to the default when the credentials form was opened.
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.
LOVE these changes. Thanks so much for the atomic and super follow-able commits, it made reviewing a breeze!! 😍
One super minor alternative suggestion for isActiveApiTokenExisting
naming, but if you feel strongly about it no worries, just let me know and we can move ahead.
BTW, I think the failed type check was a random bad commit in master unrelated to our code, so I'll go ahead and merge latest for you to try and get rid of it
...prise_search/public/applications/app_search/components/credentials/credentials_logic.test.ts
Show resolved
Hide resolved
...enterprise_search/public/applications/app_search/components/credentials/credentials_logic.ts
Outdated
Show resolved
Hide resolved
...prise_search/public/applications/app_search/components/credentials/credentials_logic.test.ts
Show resolved
Hide resolved
...prise_search/public/applications/app_search/components/credentials/credentials_logic.test.ts
Show resolved
Hide resolved
...prise_search/public/applications/app_search/components/credentials/credentials_logic.test.ts
Outdated
Show resolved
Hide resolved
...enterprise_search/public/applications/app_search/components/credentials/credentials_logic.ts
Show resolved
Hide resolved
@elasticmachine merge upstream |
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.
Wahoo! Awesome updates, Jason - love it 💯 !
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
* master: (97 commits) [Actions] Adds a "Test Connector" button on the Connectors List to make discovery of the Test tab easier (elastic#78746) [Discover] Fix functional time picker test permissions (elastic#78564) [ML] Fixing module datafeed overrides (elastic#78925) Adds some missing licenses to the CSV export (elastic#78719) [dev/cli] ensure plugins/ and all watch source dirs exist (elastic#78973) [Lens] Stop using scripted metric to collect telemetry (elastic#78687) [Lens] fix wrong message in fields accordion (elastic#78924) [Enterprise Search][App Search] Credentials Logic updates (elastic#78644) [Monitoring] Disk usage alerting (elastic#75419) [SECURITY_SOLUTION] Trusted apps list expand/collapse details (elastic#78601) Update content on interstitial page (elastic#78881) chore(NA): include hjson as a prod dependency (elastic#78941) Fix empty meta fields input in Advanced Settings (elastic#78576) [Lens] Maintain order of operations in dimension panel (elastic#78864) Fix plugin doc title (elastic#78880) load apm-rum agent lazily (elastic#78760) [ML] Skip full ML access permission test Optimize charts plugin (elastic#78922) ui_actions service initial docs (elastic#78902) skip failing suite (elastic#78942) ...
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Summary
In a previous PR to add Credentials Logic, @constancecchen and I identified and discussed a number of optimizations. This PR implements those optimizations.
@constancecchen I am assigning this to you directly since we discussed these previously.
I kept the commits atomic, so I recommend following along in the commit log.
Checklist
Delete any items that are not applicable to this PR.
For maintainers