-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Update history to >=5.0 and to allow transaction retry #132600
Comments
Pinging @elastic/kibana-core (Team:Core) |
According to this comment, version In other words, +1 to upgrading the |
We're currently using Also, and this is the real issue here, the last version of the typings for |
So, I tried to bump For example, Also, |
Yet another thing: react-router-config, that we're using in some of our test packages, was never updated for react-router |
So, after a few hours of investigation, the only possible approach here is to bump both
In addition, Also, the version 6 of There are also major changes in the latest version of Overall, this is a major library bump impacting all our routing code in every app we'd need to do here. We're talking weeks, maybe even months, of work. There is a compatibility mode to supposedly help with such migration. May be worth digging a bit to see if that would potentially help us, but from my experience with compat mode from other libraries (hello angular), it usually just doesn't work with complex application using a lib's API to the extreme (And still require to adapt all imports of react-router in the codebase to use the compat package instead of the default one). EDIT: yea, will not work, the main package bump is performed at the end of the migration, so I opened a draft PR to take a look at it, but that's only for investigation purposes, I'm not planning on working actually on it, given the amount of work it represents. |
Just dropping a note from the
In other words, we may need to upgrade/install |
Yea, sorry, by upgrading |
This is blocking the VisEditors team in moving away from the deprecated |
Well... Which is currently targeted for removal by 8.8. If the recommended alternative (history.block with current history 4.x implementation) does not provide feature parity, we can't really remove it. We should update this deprecation notice, given the new info we have. As much I as would love to resolve the problem by bumping those libs, as said, this is a cross-team multi week/month effort here. If supporting the new implementation of |
Yep I tend to agree. It is up to us whether this should be blocking the vis editors team, and deferring the removal of onAppLeave (or just deciding not to deprecate it at all) is a perfectly valid option IMO. Unless there is any other reason to make this upgrade besides "because we are supposed to remove onAppLeave", then it feels hard to justify knowing how large of an effort this would be. |
Any other reason? 😉 We still have #82440, which impacts any app which uses path-based routing (e.g. Having said that, it sounds like the level of effort still wouldn't be justified. |
We found a workaround for the user-generated input in the path: to use it only in a query param, for example |
## Summary Fixes #166100 This PR adds a workaround fix for the new index details page when opening for index names with special characters, for example `test_index%`. Because of how encoding/decoding works, we can't use the index name as a part of the url like `/indices/${indexName}` (see for more details). Instead we have to pass the index name in a query parameter like `/indices/index_details?indexName=${indexName}. The downside of this workaround is that the url semantics doesn't reflect that the index name is mandatory for the page to work. Once #132600 is resolved, we should revert this workaround and use the index name as a url segment again. Note for reviewers: The jest tests for this fix are part of #165705 ### How to test 1. Add `xpack.index_management.dev.enableIndexDetailsPage: true` to the file `config/kibana.dev.yml` to enable the new index details page 2. Navigate to Index Management and use the "create index" button 3. Type a name with special characters, for example `test%` 4. Click the new index name in the list and check that the details page and all tabs work 5. Also reload the page completely and check that the page still loads correctly --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
…166882) ## Summary Fixes elastic#166100 This PR adds a workaround fix for the new index details page when opening for index names with special characters, for example `test_index%`. Because of how encoding/decoding works, we can't use the index name as a part of the url like `/indices/${indexName}` (see for more details). Instead we have to pass the index name in a query parameter like `/indices/index_details?indexName=${indexName}. The downside of this workaround is that the url semantics doesn't reflect that the index name is mandatory for the page to work. Once elastic#132600 is resolved, we should revert this workaround and use the index name as a url segment again. Note for reviewers: The jest tests for this fix are part of elastic#165705 ### How to test 1. Add `xpack.index_management.dev.enableIndexDetailsPage: true` to the file `config/kibana.dev.yml` to enable the new index details page 2. Navigate to Index Management and use the "create index" button 3. Type a name with special characters, for example `test%` 4. Click the new index name in the list and check that the details page and all tabs work 5. Also reload the page completely and check that the page still loads correctly --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
cc @eokoneyo |
In 5.0, the
history
package introduced a way to retry transactions in ablock
hook, allowing to do asynchronous blocks. As Kibana is currently using version 4.9, this isn't possible.history
should be upgraded to 5.x and the updated transaction object with theretry
method should be passed through to consumers of .scoped historyThe text was updated successfully, but these errors were encountered: