Skip to content

shifting makeId to htmlIdGenerator - #3129

Merged
chandlerprall merged 15 commits into
elastic:masterfrom
NightWing1998:master
Apr 3, 2020
Merged

chandlerprall merged 15 commits into
elastic:masterfrom
NightWing1998:master

Conversation

@NightWing1998

@NightWing1998 NightWing1998 commented Mar 19, 2020 •

Copy link
Copy Markdown

Summary

Summarize your PR. If it includes design elements include a screenshot or gif.
deprecating makeId and shifting the codebase to htmlIdGenerator.
This invalids make_id.test.ts file as the make_id is of no use anymore
Fixes #3112

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in IE11 and Firefox
  • Props have proper autodocs
  • Added documentation 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 Mar 19, 2020 •

Copy link
Copy Markdown

💚 CLA has been signed

Comment thread src/components/form/form_row/make_id.ts Resolved
@chandlerprall

Copy link
Copy Markdown
Contributor

Note that this does not close #3112 as there are many other places where makeId is still used

@NightWing1998

Copy link
Copy Markdown
Author

Note that this does not close #3112 as there are many other places where makeId is still used

Hey,
I'm really sorry as I didn't notice all the makeId uses.
I'm fixing it and sending a PR again.
Sorry for the trouble

@cchaos

cchaos commented Mar 20, 2020

Copy link
Copy Markdown
Contributor

Jenkins test this

@kibanamachine

Copy link
Copy Markdown
Contributor

Comment thread src/components/card/card.test.tsx Resolved
@chandlerprall

Copy link
Copy Markdown
Contributor

I'm really sorry as I didn't notice all the makeId uses.
I'm fixing it and sending a PR again.
Sorry for the trouble

No worries at all! I took a second pass and left a couple more comments.

@chandlerprall chandlerprall 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.

One last request, reverting some whitespace changes that were made.

@NightWing1998 NightWing1998 left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Sorry for that linting error, I have some bad linter setting in vscode and sometimes it messes the code.

@chandlerprall

Copy link
Copy Markdown
Contributor

jenkins test this

@kibanamachine

Copy link
Copy Markdown
Contributor

@elizabetdev

Copy link
Copy Markdown
Contributor

Hi @chandlerprall this PR is getting a lot of conflicting files due to the class to functional components conversions. Should we fix the conflicts and merge the PR?

Comment thread package.json Outdated
"classnames": "^2.2.5",
"highlight.js": "^9.12.0",
"html": "^1.0.0",
"install": "^0.13.0",

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.

Why is this required?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I guess it is some form of merge conflict.
Wait i'll remove it as it is not required by changes I've made

@chandlerprall

chandlerprall commented Apr 3, 2020 •

Copy link
Copy Markdown
Contributor

@NightWing1998 I merged master directly into your fork and cleaned up the conflicts we had introduced; running CI, will merge if everything's green

jenkins test this

@kibanamachine

Copy link
Copy Markdown
Contributor

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.

Replace makeId with htmlIdGenerator

7 participants