-
Notifications
You must be signed in to change notification settings - Fork 471
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
feat: upgrade to react-router-dom v5.2.0 #727
feat: upgrade to react-router-dom v5.2.0 #727
Conversation
Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com>
Hi @rubenvp8510 , I tested and built jaeger-ui on local and it was working flawless. However, since I have modified the main application code but one unit-test is failing due to the old snapshot. Can you please tell me how can I update the snapshot stored for the ? |
@meenal06 small nit: say |
Thank you! I will be sure to keep this in mind for my future PRs 😄 |
Hi @meenal06 to update the test snapshots you can run Once you fixes the snapshot errors, there are a couple of more tests that are failing. I'll try to check tomorrow If I got a chance, but if you fixes it and update the PR ask me for a review again, I'll glad to do it. |
Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com>
Hi @rubenvp8510 , I updated the snapshot but alas there are other failing tests most probably due to the router issues which I am not able to fix as I am completely new to jest framework. Do let me know if you may find the cause of issue. |
Hi @meenal06 what is happening is that you cannot mutate the Look at this , could help you to understand better what is happening: babel/babel#8363 |
Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com>
Hi @rubenvp8510 , thank you very much for the suggestion. I have fixed all the tests and upgraded to react-router-dom v5.2, please review! |
Codecov Report
@@ Coverage Diff @@
## master #727 +/- ##
==========================================
- Coverage 94.39% 94.37% -0.02%
==========================================
Files 230 230
Lines 5959 5960 +1
Branches 1448 1448
==========================================
Hits 5625 5625
- Misses 300 301 +1
Partials 34 34
Continue to review full report at Codecov.
|
I am not sure if the coverage issue highlighted by codecov was being covered before the test too, as I couldn't see any unit test file for the src/index.js 😕 |
Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com>
Hi @rubenvp8510 @yurishkuro please review I have changed the selector as there were issues due to the react-router upgrade ! |
Hi, sorry I'll do a review today afternoon :) |
LGTM |
Excellent work, @meenal06 |
Nice job! |
Thank you team 🙂 ! |
* feat: upgrade to react-router-dom v5.2.0 Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: lint Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * update snapshots to accomodate latest changes Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: object only has getter Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: tests Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
* feat: upgrade to react-router-dom v5.2.0 Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: lint Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * update snapshots to accomodate latest changes Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: object only has getter Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: tests Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
* feat: upgrade to react-router-dom v5.2.0 Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: lint Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * update snapshots to accomodate latest changes Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: object only has getter Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: tests Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
* feat: upgrade to react-router-dom v5.2.0 Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: lint Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * update snapshots to accomodate latest changes Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: object only has getter Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: tests Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
* feat: upgrade to react-router-dom v5.2.0 Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: lint Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * update snapshots to accomodate latest changes Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: object only has getter Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: tests Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
* feat: upgrade to react-router-dom v5.2.0 Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: lint Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * update snapshots to accomodate latest changes Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: object only has getter Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: tests Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
* feat: upgrade to react-router-dom v5.2.0 Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: lint Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * update snapshots to accomodate latest changes Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: object only has getter Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: tests Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
* feat: upgrade to react-router-dom v5.2.0 Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: lint Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * update snapshots to accomodate latest changes Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: object only has getter Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix: tests Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
## Which problem is this PR solving? - part of: #1825 - Upgrades react-router-dom to v5.2.0 ## Description of the changes - This PR upgrades the rrd to v5.2.0 - This upgrade was previously attempted with PR #727 but at that time, an issue (#803) was reported because `react-router-redux` v5.x was not compatible with rrd v5.2.0, so it was reverted with PR: #837 - Now, since we have `redux-first-history` instead of `react-router-redux`, we can upgrade to rrd v5.2.0 safely now. ## How was this change tested? - The reported issue with v5.2.0 (#803) is not being reproduced now. ![image](https://github.com/jaegertracing/jaeger-ui/assets/94157520/43c11ec6-02e6-4ede-855b-22822f77d4ae) ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `yarn lint` and `yarn test` Signed-off-by: Ansh Goyal <anshgoyal1704@gmail.com>
Signed-off-by: Meenal Trivedi meenaltrivedi6102@gmail.com
Which problem is this PR solving?
Short description of the changes