Skip to content
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

Bump react-router #52445

Merged
merged 17 commits into from
Dec 11, 2019
Merged

Conversation

patrykkopycinski
Copy link
Contributor

Summary

Bump react-router-dom to the newest version

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@patrykkopycinski patrykkopycinski added chore release_note:skip Skip the PR/issue when compiling release notes labels Dec 6, 2019
@patrykkopycinski patrykkopycinski self-assigned this Dec 6, 2019
@patrykkopycinski patrykkopycinski requested a review from a team as a code owner December 7, 2019 11:06
@patrykkopycinski patrykkopycinski added the Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services label Dec 7, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@patrykkopycinski
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@afgomez afgomez left a comment

Choose a reason for hiding this comment

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

Infra changes LGTM 🎉.

I pulled the branch, clicked around and everything seems to work correctly.

@patrykkopycinski
Copy link
Contributor Author

@elasticmachine merge upstream

@patrykkopycinski patrykkopycinski added the Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more label Dec 10, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

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

LGTM, one nit

yarn.lock Show resolved Hide resolved
@cjcenizal cjcenizal self-requested a review December 10, 2019 16:56
@patrykkopycinski patrykkopycinski requested a review from a team December 10, 2019 21:07
Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! I noticed one small thing I'd like to change before we merge this, as well as a bug.

I've tested the following apps and verified the client-side routes are still intact:

  • CCR
  • Remote clusters
  • Watcher

These apps have errors:

  • Rollup jobs


constructor(...args) {
super(...args);
constructor(props) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need to be changed? If possible, I'd prefer to leave this alone to reduce the amount of changes in this PR and lessen the scope of code review.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, reverted 👍

}
const ShareRouterComponent = React.memo(({ children, history }) => {
useEffect(() => {
registerRouter({ history });
Copy link
Contributor

Choose a reason for hiding this comment

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

When I navigate to Management > Rollup Jobs there's a Console error that indicates that registerRouter never gets called here. Perhaps we don't need to use the hook?

const ShareRouterComponent = React.memo(({ children, history }) => {
  registerRouter({ history });

  return children;
});

I tried this and it seems to work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that would cause to call registerRouter on each re-render, changed back to the Component

super(...args);
this.registerRouter();
}
const ShareRouterComponent = React.memo(({ children, history }) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

CC @jloleysens Just giving you a head's up about the changes being made to this file because I know you've been working on it too. Any chance there might be merge conflicts?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think there will be, but they should be minor :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

for sake of consistancy changed it back to the Component

Copy link
Contributor Author

@patrykkopycinski patrykkopycinski left a comment

Choose a reason for hiding this comment

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

Thank you @cjcenizal @jloleysens for the review and comments, I hope I have fixed all of them. Can I ask you for another check?

…outer-5

# Conflicts:
#	x-pack/legacy/plugins/watcher/public/np_ready/application/app.tsx
Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

Changes LGTM! I've tested the following apps and verified the client-side routes are still intact:

  • CCR
  • Remote clusters
  • Rollup jobs
  • Watcher (just for the heck of it, even though the changes were reverted)

@patrykkopycinski
Copy link
Contributor Author

@elasticmachine merge upstream

@spalger
Copy link
Contributor

spalger commented Dec 11, 2019

That flaky failure should be fixed by #52601

@patrykkopycinski
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-stack-services (Team:Stack Services)

Copy link
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

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

LGTM!

@spalger
Copy link
Contributor

spalger commented Dec 11, 2019

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

History

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

@patrykkopycinski patrykkopycinski merged commit c6336c3 into elastic:master Dec 11, 2019
@patrykkopycinski patrykkopycinski deleted the chore/react-router-5 branch December 11, 2019 20:19
@jfsiii jfsiii mentioned this pull request Dec 11, 2019
7 tasks
patrykkopycinski added a commit that referenced this pull request Dec 11, 2019
jfsiii pushed a commit to jfsiii/kibana that referenced this pull request Dec 12, 2019
This only contains a few commits but was not a straightforward merge. I initially got a warning about too many renames and suggesting I increase `merge.renameLimit`

There were also ~100 files with merge conflicts. In general, I accepted incoming changes but I did go through each file and try to make sure what was being staged was desired.

I started by clearing the conficts in both `package.json`s (new react-router version) then ran `yarn kbn bootstrap` and went back to merging.

There were some files like i18n.json and security where accepting incoming would have erased a fleet/ingest/epm setting so I chose both there.

There were aslso some *really* weird merge conflict markers in some files. Things I've not seent before. Roughly:

```
<<<<<<< HEAD path/to/file/we/are/viewing
code
=======
entirely different code
>>>>>>> 802423d:path/to/VERY/different/place
```

In those cases, I opened the file on master in github to check the correct code and either took the code between the markers or copied/pasted from GitHub. Many of them were from this specific SHA.

I also updated these files based on the changes in elastic#52445

x-pack/legacy/plugins/fleet/public/components/navigation/connected_link.tsx
x-pack/legacy/plugins/fleet/public/components/navigation/connected_link.tsx
x-pack/legacy/plugins/fleet/public/hooks/with_url_state.tsx
timductive pushed a commit to timductive/kibana that referenced this pull request Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore release_note:skip Skip the PR/issue when compiling release notes Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.6.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants