song XinCun created HBASE-24624:
-----------------------------------
Summary: Optimize table.jsp code
Key: HBASE-24624
URL: https://issues.apache.org/jira/browse/HBASE-24624
Project: HBase
Issue Type: Improvement
Components: UI
Affects Versions: 3.0.0-alpha-1
Reporter: song XinCun
Assignee: song XinCun
# Rename buildRegionServerLink to buildRegionLink, for it returns the link of
region, not regionserver.
# Add buildRegionDeployedServerTag and moreRegionsToRender, this two function
can be used everywhere in table.jsp, and with them we can reduce a lot of same
code.
# Fix bug which locality stats tab can not sort. This is because we set the
wrong id for locality stats tab.
# We use too much "if (withReplica)..." statements, make the code unreadable,
remove it and let the page always show the replica id of regions.
# Show 0 not null, when there is no primary region on regionserver,
--
This message was sent by Atlassian Jira
(v8.3.4#803005)