Skip to content

Remove static Id from Quick Select Popover - #4543

Merged
thompsongl merged 6 commits into
elastic:masterfrom
GaganAgarwal77:QuickSelectPopoverId
Feb 19, 2021
Merged

thompsongl merged 6 commits into
elastic:masterfrom
GaganAgarwal77:QuickSelectPopoverId

Conversation

@GaganAgarwal77

@GaganAgarwal77 GaganAgarwal77 commented Feb 18, 2021 •

Copy link
Copy Markdown
Contributor

Summary

Solves issue #4536
I have removed the static Id from quick select popover and I also updated the corresponding snapshot and ran unit test.

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • Props have proper autodocs and playground toggles
  • Added documentation
  • Checked Code Sandbox works for the any docs examples
  • Added or updated jest tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@kibanamachine

Copy link
Copy Markdown
Contributor

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@cla-checker-service

cla-checker-service Bot commented Feb 18, 2021 •

Copy link
Copy Markdown

💚 CLA has been signed

@akashgp09 akashgp09 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍
Just need to sign the Contributor Agreement.

@GaganAgarwal77

GaganAgarwal77 commented Feb 18, 2021 •

Copy link
Copy Markdown
Contributor Author

@akashgp09 since I didn't know about it, I signed it after I sent this PR. Will that check be performed again or do I need to send a new PR?
P.S Looks like the check has been performed again

@thompsongl

Copy link
Copy Markdown
Contributor

jenkins test this

@kibanamachine

Copy link
Copy Markdown
Contributor

@thompsongl

Copy link
Copy Markdown
Contributor

@myasonik What if we just remove id completely? 🤔
EuiPopover does not require it, we have data-test-subj hooks for testing, and this component isn't (and currently cannot) be used anywhere except internally by EuiSuperDatePicker.
If you think we still need an id, we'll need to move it into state otherwise the value changes on every rerender.

@myasonik

Copy link
Copy Markdown
Contributor

@thompsongl Yeah, you're right - doesn't seem like we need it at all.

@GaganAgarwal77 Do you mind removing it? Sorry I didn't realize when I made the ticket.

@GaganAgarwal77 GaganAgarwal77 changed the title Replace static Id with htmlIdGenerator in Quick Select Popover Remove static Id from Quick Select Popover Feb 18, 2021
@GaganAgarwal77

Copy link
Copy Markdown
Contributor Author

@myasonik I have made the changes.

@thompsongl thompsongl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, @GaganAgarwal77!
LGTM

Just need to add a changelog entry

@thompsongl thompsongl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Thanks!

Comment thread CHANGELOG.md Resolved
@thompsongl

Copy link
Copy Markdown
Contributor

jenkins test this

@kibanamachine

Copy link
Copy Markdown
Contributor

@thompsongl

Copy link
Copy Markdown
Contributor

jenkins test this

Error: Timed out waiting for: http-get://localhost:9999

@kibanamachine

Copy link
Copy Markdown
Contributor

@thompsongl
thompsongl merged commit 5e8c3b2 into elastic:master Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants