-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-28983 Static resources are not loaded on REST web UI pages in dev mode #6491
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
HBASE-28983 Static resources are not loaded on REST web UI pages in dev mode #6491
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Let's hold this until the JS library updetes are done. |
Thanks, good idea. 👍 Changing this back to draft as after #6490 is merged, this has to be redone with the new Bootstrap version. |
Hey @PDavid, Instead of copying resource, should we not just copy them in target folder via some maven plugin? We should in fact delete static folder from thrift and do the same. WDYT? It's very easy to forget that these are just duplicates and we must keep things in sync. |
Thanks, great idea. 👍 I agree. When HBase runs in release mode there is a common Also another idea I had that we could just symlink the |
9df1e09
to
b445217
Compare
Both approaches sounds good to me. You can choose either. |
Thanks, I went with copying with the Maven plugin in the end. |
Good choice, +1 to this approach. |
@PDavid Please let me know once we are good on this, I will go ahead and merge then. Also please raise backports for all affected branches. |
All jobs are failing / timing out due to no available nodes. Not sure, maybe something has changed for our project? CC: @Apache9, @apurtell
Source: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6491/4/console |
Many thanks @NihalJain, yes it would be great to have at least one PR build first before we merge. But I also see that PR builds lately are queued but not running. Can it may be related to https://issues.apache.org/jira/browse/HBASE-29050 ? 🤔 |
I think you are right there is a huge backlog of queued PRs. @Apache9 Should we kill all flaky tasks queued in jenkins and also merge your PR for running flaky every 4 hours, to bring it to normal state #6567? All the flaky tests are piling up very fast. See https://ci-hbase.apache.org/job/HBase-Flaky-Tests/job/branch-2.6/ |
…ev mode This way the `hbase-webapps/static` source directory (which holds JS, CSS, image files) is not duplicated anymore. It is only present under `hbase-server`. This directory is then coped by maven-resources-plugin to the target directory of the REST and Thrift projects. For this deleted the static directory below the Thrift project.
b445217
to
6e64191
Compare
PR build was aborted. Rebased the branch to trigger another PR build. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
This is a problem for 2.5 and 2.6 branch also, right? Could you please raise backports for same.? |
Hi @NihalJain, I did not yet prepare backports for those branches yet because of the Bootstrap update is not yet merged there and this patch would conflict with the Bootstrap upgrade backports. But I can prepare the backports and deal with the conflicts if needed. |
I think it's fine to delay the backports until after the bootstrap backports have landed. |
Ah ok! This anyways impacts dev setup. I don't think this is a big problem. Let's hold on this one as well then. We can take this in post bootstrap change. |
As the Bootstrap upgrade was merged on master (but not yet on branch-2, branch-2.5, branch-2.6) can we maybe merge this to master? What do you think? |
Sounds good, so this is ready for merge to master? If that's the case let me merge this today, EOD. |
Yes, this PR is ready to merge from my side. Just this depends on the Bootstrap upgrade changes (which was merged on master but not yet on branch-2, branch-2.5, branch-2.6 yet) so we can merge this PR on master I think. |
…ev mode (#6582) (#6491) This way the `hbase-webapps/static` source directory (which holds JS, CSS, image files) is not duplicated anymore. It is only present under `hbase-server`. This directory is then coped by maven-resources-plugin to the target directory of the REST and Thrift projects. For this deleted the static directory below the Thrift project. (cherry picked from commit 4e40bd5) Signed-off-by: Nihal Jain <nihaljain@apache.org> Reviewed-by: Andrew Purtell <apurtell@apache.org>
Many thanks for the reviews @NihalJain, @apurtell and @stoty. |
…ev mode (apache#6491) This way the `hbase-webapps/static` source directory (which holds JS, CSS, image files) is not duplicated anymore. It is only present under `hbase-server`. This directory is then coped by maven-resources-plugin to the target directory of the REST and Thrift projects. For this deleted the static directory below the Thrift project. Signed-off-by: Nihal Jain <nihaljain@apache.org> Reviewed-by: Andrew Purtell <apurtell@apache.org> (cherry picked from commit 4e40bd5)
…ev mode (#6491) (#6743) This way the `hbase-webapps/static` source directory (which holds JS, CSS, image files) is not duplicated anymore. It is only present under `hbase-server`. This directory is then coped by maven-resources-plugin to the target directory of the REST and Thrift projects. For this deleted the static directory below the Thrift project. Signed-off-by: Nihal Jain <nihaljain@apache.org> Reviewed-by: Andrew Purtell <apurtell@apache.org> (cherry picked from commit 4e40bd5)
…ev mode (apache#6491) This way the `hbase-webapps/static` source directory (which holds JS, CSS, image files) is not duplicated anymore. It is only present under `hbase-server`. This directory is then coped by maven-resources-plugin to the target directory of the REST and Thrift projects. For this deleted the static directory below the Thrift project. Signed-off-by: Nihal Jain <nihaljain@apache.org> Reviewed-by: Andrew Purtell <apurtell@apache.org> (cherry picked from commit 4e40bd5)
…ev mode (apache#6491) This way the `hbase-webapps/static` source directory (which holds JS, CSS, image files) is not duplicated anymore. It is only present under `hbase-server`. This directory is then coped by maven-resources-plugin to the target directory of the REST and Thrift projects. For this deleted the static directory below the Thrift project. Signed-off-by: Nihal Jain <nihaljain@apache.org> Reviewed-by: Andrew Purtell <apurtell@apache.org> (cherry picked from commit 4e40bd5)
…ev mode (#6491) (#6855) This way the `hbase-webapps/static` source directory (which holds JS, CSS, image files) is not duplicated anymore. It is only present under `hbase-server`. This directory is then coped by maven-resources-plugin to the target directory of the REST and Thrift projects. For this deleted the static directory below the Thrift project. Signed-off-by: Nihal Jain <nihaljain@apache.org> Reviewed-by: Andrew Purtell <apurtell@apache.org> (cherry picked from commit 4e40bd5)
…ev mode (#6491) (#6849) This way the `hbase-webapps/static` source directory (which holds JS, CSS, image files) is not duplicated anymore. It is only present under `hbase-server`. This directory is then coped by maven-resources-plugin to the target directory of the REST and Thrift projects. For this deleted the static directory below the Thrift project. Signed-off-by: Nihal Jain <nihaljain@apache.org> Reviewed-by: Andrew Purtell <apurtell@apache.org> (cherry picked from commit 4e40bd5)
This way the
hbase-webapps/static
source directory (which holds JS, CSS, image files) is not duplicated anymore. It is only present underhbase-server
. This directory is then coped bymaven-resources-plugin
to thetarget
directory of the REST and Thrift projects.For this deleted the
static
directory below the Thrift project.