Skip to content

Conversation

@JasonStoltz
Copy link
Member

@JasonStoltz JasonStoltz commented Oct 6, 2020

Summary

(This PR temporarily cherry picks 3a0c9b2 until the corresponding PR is merged into master)

(Also, paging will not work until this is merged: #79747, but the logic is correct in this PR.)

This PR implements the view portion of Credentials, without:

  • An empty state
  • Hidden Text
  • Loading State
  • Flyout form

53ace58 - This simply adds the route and a stub view

screencapture-localhost-5601-app-enterprise-search-app-search-credentials-2020-10-02-15_08_45

6c352b8 - This adds the Credentials Page, but without the list of credentials.

screencapture-localhost-5601-app-enterprise-search-app-search-credentials-2020-10-06-11_35_18

9434cc8 - This commit adds the list of Credentials to the Credentials page, printing the credential without hiding it with stars

screencapture-localhost-5601-app-enterprise-search-app-search-credentials-2020-10-06-11_36_09

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@JasonStoltz JasonStoltz added release_note:skip Skip the PR/issue when compiling release notes v7.11.0 labels Oct 6, 2020
@JasonStoltz JasonStoltz requested a review from a team October 6, 2020 19:34
Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

First pass on credentials.tsx - super excited, I see a lot of opportunity to clean up our DOM and markup here!

Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

Sorry, I keep hitting single comments instead of chunking my reviews haha. credentials.test.tsx looks great - have a cleanup suggestion that saves a few lines

Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

Here's my pass on the util helpers - great stuff!

Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

OK, phew, here's the credentials_list.tsx pass! I had a lot of changes so apologies for that, let me know if you'd rather look at a full diff instead of a bunch of disparate comments.

I'm going to hold off on reviewing credentials.list.test.tsx for now since it's getting to the end of my work day and it probably makes sense to wait to review once all changes have been made. Hope that's OK!

JasonStoltz and others added 12 commits October 7, 2020 09:55
Unnecessary wrapper - we can lose it without it affecting the UI
elastic#79749 (comment)
Similar comment as above, this flex wrapper isn't needed
elastic#79749 (comment)
There's actually a semantic EUI element for this!
elastic#79749 (comment)
See above comment
elastic#79749 (comment)
See above comment
elastic#79749 (comment)
There's a CSS utility class for this!
elastic#79749 (comment)
Let's lose the generic div wrapper if we don't need it
elastic#79749 (comment)
See above - we also don't need the span wrapper
elastic#79749 (comment)
We actually don't need to specify the I*Actions/I*Values
elastic#79749 (comment)
See above - awesome right?
elastic#79749 (comment)
Not a change request, just me musing out loud
elastic#79749 (comment)
Having the 'real' text personally helps me a lot with visualizing
elastic#79749 (comment)
@JasonStoltz JasonStoltz requested a review from cee-chen October 7, 2020 18:46
@JasonStoltz
Copy link
Member Author

@constancecchen Thanks for the review. I think it's ready for a second look.

Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

This is looking great! I think this is my final batch of comments!

Comment on lines 182 to 189
const subject = (token: object): [any, any] => {
const copyMock = jest.fn();
const column = columns[2];
const wrapper = shallow(<div>{column.render(token)}</div>);
const children = wrapper.find(EuiCopy).props().children;
const copyEl = shallow(children(copyMock));
return [copyMock, copyEl];
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Ooo, this is super cool. Very nice!

Copy link
Member Author

Choose a reason for hiding this comment

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

What is?

Copy link
Contributor

Choose a reason for hiding this comment

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

The subject() helper - I like it a lot, we might want to DRY it out in the future if we have any more components that use EuiCopy (although I think credentials might be the only one, so nevermind haha).

@JasonStoltz JasonStoltz requested a review from cee-chen October 8, 2020 14:14
Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

Woohoo! I did a final quick QA pass (mobile/cross-browser/screen-reader/dark-mode testing) and this all looks great. Awesome work Jason!

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

@kbn/optimizer bundle module count

id before after diff
enterpriseSearch 403 414 +11

async chunks size

id before after diff
enterpriseSearch 638.5KB 661.8KB +23.3KB

History

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

@JasonStoltz JasonStoltz merged commit 44b48a2 into elastic:master Oct 8, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Oct 12, 2020
* master: (23 commits)
  Table visualization renderer (elastic#79455)
  Migrate Jest JUnit reporter to TS (elastic#79919)
  store sorted bundleRefExportIds (elastic#80011)
  update chromedriver dependency to 86.0.0 (elastic#79972)
  [Security Solution][Case] Fix bug when changing connectors (elastic#80002)
  [kbn/std] add observable helpers to aid with rxjs 7 upgrade (elastic#79752)
  [Security Solution][Resolver] Pill numbers in compact notation (elastic#80038)
  [Logs UI] Sync logs timerange with wider Kibana (elastic#79444)
  [DOCS] Adds quick start (elastic#78822)
  [Ingest Manager]Fix ingest manager UI renaming (elastic#80036)
  [Monitoring] Fixed internal monitoring check (elastic#79241)
  [Security Solution][Exception Modal] Removes list operators in exception modal for EQL rules (elastic#79871)
  Update development documentation about REST API best practices (elastic#80009)
  [Monitoring] Improve indices loading against larger metricbeat-* indices (elastic#79190)
  [CI] Move kibana build dir outside of repo for functional tests (elastic#80018)
  [kbn/optimizer] bump low or add missing limits when updating automatically (elastic#80013)
  [Enterprise Search] Added a Credentials page to App Search (elastic#79749)
  [DOCS] Canvas refresh for 7.10 (elastic#80017)
  [TSVB] Add ignore global filters to series options (elastic#79337)
  Remove this check (elastic#79202)
  ...
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Oct 12, 2020
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 79749 or prevent reminders by adding the backport:skip label.

4 similar comments
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 79749 or prevent reminders by adding the backport:skip label.

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 79749 or prevent reminders by adding the backport:skip label.

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 79749 or prevent reminders by adding the backport:skip label.

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 79749 or prevent reminders by adding the backport:skip label.

@cee-chen
Copy link
Contributor

@JasonStoltz would you mind running yarn backport on this when you have a chance? Thanks!

JasonStoltz added a commit to JasonStoltz/kibana that referenced this pull request Oct 19, 2020
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Oct 19, 2020
@JasonStoltz JasonStoltz deleted the JasonStoltz/credentials-view branch April 6, 2021 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes v7.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants