-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-27802 Manage static javascript resources programatically #6864
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
Merged
ndimiduk
merged 6 commits into
apache:master
from
PDavid:HBASE-27802-js-programatically-2
May 21, 2025
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e87b4b6
HBASE-27802 Manage static javascript resources programmatically
PDavid 40b6e34
HBASE-27802 Removed committed CSS, JS files
PDavid 341d9f0
HBASE-27802 Move webjar UI resource unpacking to hbase-server
PDavid 5a3f467
HBASE-27802 REST and Thrift copies static web files from hbase-server…
PDavid d60b1b9
HBASE-27802 Define webjar versions as properties
PDavid c3d9af6
HBASE-27802 Copy resources to final place with one step maven-depende…
PDavid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
hbase-server/src/main/resources/hbase-webapps/static/css/bootstrap.min.css
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
hbase-server/src/main/resources/hbase-webapps/static/js/bootstrap.min.js
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
hbase-server/src/main/resources/hbase-webapps/static/js/jquery.min.js
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
hbase-server/src/main/resources/hbase-webapps/static/js/jquery.tablesorter.min.js
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
hbase-server/src/main/resources/hbase-webapps/static/js/parser-date-iso8601.min.js
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
hbase-server/src/main/resources/hbase-webapps/static/js/vega-embed@6.29.0.min.js
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
hbase-server/src/main/resources/hbase-webapps/static/js/vega-lite@5.23.0.min.js
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
hbase-server/src/main/resources/hbase-webapps/static/js/vega@5.32.0.min.js
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that this is how you found it, but does it make better sense to include an explicit dependency on the new webjars jar from hbase-rest? I doubt that we can remove the dependency on hbase-server, but it would be one fewer thing and make the dependency tree more obvious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks, I completely agree your point that here and now we will have and implicit dependency from hbase-rest to hbase-server which is not obvious from first look. Also agree that this is not the best and would be better to have an explicit dependency.
The problem is that if we directly add the webjars to the
dependencies
section of the hbase-rest pom.xml, then those webjars will be included (packaged) into the hbase-rest jar which - as far as I understand - we want to avoid.Maybe we could duplicate the
maven-dependency-plugin
(and then the copy steps) usage also to hbase-rest but then this would introduce a lot of XML duplication.Other solution could be to extract the downloading and extraction of the webjars to a separate sub-project and then hase-server, hbase-rest and hbase-thrift could depend on it.
But I'm not a Maven expert by an means so if you have any better ideas please feel free to propose them. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created a new Jira to improve this: https://issues.apache.org/jira/browse/HBASE-29355