mirror of https://github.com/linkerd/linkerd2.git
Includes a substantial refactor of Top.jsx to move the websocket and top-request-aggregation code into a self-contained module so that this code can be shared by /top and by each resource detail page. (This refactor also helps separate concerns in that page; since that page also makes 10 second requests to the stat api to populate the autocompletes in the form). The TopModule uses the startTap prop to figure out whether it should start a websocket connection and make a tap request when mounted. (This is because the resource detail pages start tapping immediately upon load, whereas /top can only start once you've entered a query. I've removed the spinner and the awaitingWebSocketConnection state field because that now belongs in the top module. I think a similar refactor of tap would be good before we re-add it. |
||
---|---|---|
.. | ||
css | ||
img | ||
js | ||
test | ||
.babelrc | ||
.eslintrc | ||
karma.conf.js | ||
package.json | ||
postcss.config.js | ||
webpack.config.js | ||
yarn.lock |