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
[#1401][part-1] The dashboard supports multiple Coordinator links. #1449
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1449 +/- ##
============================================
+ Coverage 54.15% 54.86% +0.70%
- Complexity 2773 2806 +33
============================================
Files 423 415 -8
Lines 24178 22141 -2037
Branches 2057 2079 +22
============================================
- Hits 13094 12147 -947
+ Misses 10275 9236 -1039
+ Partials 809 758 -51 ☔ View full report in Codecov by Sentry. |
0e92c00
to
eecddd0
Compare
Could you help review this? @xianjingfeng |
//The system obtains data from global variables and requests the interface to obtain new data after data changes. | ||
const currentServerStore= useCurrentServerStore() | ||
currentServerStore.$subscribe((mutable,state)=>{ | ||
const headrs={"targetAddress":state.currentServer} |
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.
Is it better that passing this parameter through cookie?
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.
Is it better that passing this parameter through cookie?
This is global. The role of cookies is not well understood.
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.
It is not graceful to set the header before each request. Some code is redundant.
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.
Or maybe you can use local storage and get targetAddress
from the local storage before invoking the http interfaces
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.
dashboard/src/main/java/org/apache/uniffle/dashboard/web/proxy/WebProxyServlet.java
Outdated
Show resolved
Hide resolved
dashboard/src/main/java/org/apache/uniffle/dashboard/web/utils/DashboardUtils.java
Outdated
Show resolved
Hide resolved
dashboard/src/main/java/org/apache/uniffle/dashboard/web/views/GainCoordinatorsServlet.java
Outdated
Show resolved
Hide resolved
Can we also fix the following spelling issues in this PR? My suggesion will be: |
Have changed. |
@@ -32,6 +32,7 @@ | |||
"core-js": "^3.8.3", | |||
"element-plus": "^2.3.6", | |||
"moment": "^2.29.4", | |||
"pinia": "^2.1.7", |
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 just learned about pinia. Can the data in the store be shared between tabs of a browser?
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.
No progress for this? I think we need a more powerful dashboard. |
Do you have thought on this? feel free to discuss more here |
I believe the dashboard should be updated regularly, as it provides the most intuitive experience for users. And it facilitates the management and operation of the RSS cluster for dev and ops. I think it could be improved by:
|
Test Results 2 358 files - 5 2 358 suites - 5 4h 28m 12s ⏱️ - 2m 14s For more details on these errors, see this check. Results for commit b4142f6. ± Comparison against base commit 6ea4300. |
@xianjingfeng Could you help review this? |
ping @xianjingfeng |
@@ -16,4 +16,16 @@ | |||
*/ | |||
|
|||
module.exports ={ | |||
// 可以通过配置 vue.config.js 文件来设置代理,以将请求代理到后端服务器。 |
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.
Could you translate this sentence into english?
|
||
@GET | ||
@Path("/coordinatorList") | ||
public Response getCoordinatorServers() { |
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.
public Response getCoordinatorServers() { | |
public Response<Map<String, String>> getCoordinatorServers() { |
import org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType; | ||
|
||
@Produces({MediaType.APPLICATION_JSON}) | ||
public class GainCoordinatorsResource extends BaseResource { |
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 think CoordinatorsResource
is better.
import org.apache.hbase.thirdparty.javax.ws.rs.Produces; | ||
import org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType; | ||
|
||
@Path("web") |
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'm not sure if this path is correct. Is the url will be like '/web/coordinator/...'?
@@ -59,6 +59,12 @@ const routes = [ | |||
name: 'applicationpage', | |||
component: ApplicationPage, | |||
}, | |||
{ | |||
path: '/nullpage', |
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.
Is this necessary?
What changes were proposed in this pull request?
After multiple coordinators are deployed, a dashboard is added to link multiple coordinators.
Why are the changes needed?
Fix: #1401
Does this PR introduce any user-facing change?
No.
How was this patch tested?
No.