PDavid opened a new pull request, #6697: URL: https://github.com/apache/hbase/pull/6697
Before HBase UI always tried to load `userSnapshots.jsp` with an AJAX request on all UI pages - **NOK**. This happened even on RegionServer UI or REST UI where this call always failed with HTTP 500. From now on HBase UI only loads `userSnapshots.jsp` when the Snapshots tab (div with `tab_userSnapshots` ID) exists on the page. Also did a minor improvement to `tab.js`: use `const` instead of `var` as `var` has so many problems: > With block-level scope, no hoisting, and the ability to declare constants, let and const make code more predictable, maintainable, and less error-prone. By using let and const instead of var, developers can avoid common pitfalls and write more declarative code. Also fixed a whitespace. (cherry picked from commit ed007404b0f31a51e2c5960c21340993073b7f06) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
