Skip to content
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

refactor: entrance of chaos dashboard #864

Merged
merged 16 commits into from
Sep 10, 2020

Conversation

g1eny0ung
Copy link
Member

@g1eny0ung g1eny0ung commented Sep 2, 2020

Signed-off-by: Yue Yang [email protected]

What problem does this PR solve?

This PR optimizes the dashboard entry file, the main changes are:

  • Move the TTL config parsing into pkg/config
  • Use app.Start() to run fx app
  • Remove /ping route because we have many routes to check the server whether running or not
  • Rewrite swaggerserver by using gin-swagger
  • Rewrite uiserver
  • Remove unused deps
  • Files formatting

What is changed and how does it work?

Due to the UI folder can't be served in the root route. (Because /* routes will conflict to other routes).

I change the UI route basename to /dashboard and the / root will redirect to dashboard permanently, all changes are backward compatible.

Checklist

Tests

  • Unit test
  • E2E test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Breaking backward compatibility

Related changes

  • Need to update the documentation

Does this PR introduce a user-facing change?

NONE

@g1eny0ung g1eny0ung requested review from fewdan, cwen0 and yeya24 September 2, 2020 03:54
@g1eny0ung g1eny0ung force-pushed the refactor/chaos-dashboard-main branch from a3fbdb0 to 9d5124c Compare September 2, 2020 06:52
@g1eny0ung g1eny0ung force-pushed the refactor/chaos-dashboard-main branch from 9d5124c to 3ce0019 Compare September 2, 2020 07:06
Signed-off-by: Yue Yang <[email protected]>
Signed-off-by: Yue Yang <[email protected]>
Signed-off-by: Yue Yang <[email protected]>
Signed-off-by: Yue Yang <[email protected]>
Signed-off-by: Yue Yang <[email protected]>
Signed-off-by: Yue Yang <[email protected]>
Signed-off-by: Yue Yang <[email protected]>
Signed-off-by: Yue Yang <[email protected]>
@cwen0
Copy link
Member

cwen0 commented Sep 7, 2020

I run this pr in my environment, but when I refresh the dashboard, the link will be directed to the overview page. This is not friendly for users.

Signed-off-by: Yue Yang <[email protected]>
Signed-off-by: Yue Yang <[email protected]>
Signed-off-by: Yue Yang <[email protected]>
Copy link
Member

@cwen0 cwen0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@fewdan fewdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fewdan
Copy link
Member

fewdan commented Sep 10, 2020

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

/run-all-tests

@YangKeao
Copy link
Member

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 120c1ff into chaos-mesh:master Sep 10, 2020
STRRL pushed a commit to STRRL/chaos-mesh that referenced this pull request Sep 10, 2020
@ti-srebot
Copy link
Contributor

cherry pick to release-1.0 in PR #895

cwen0 pushed a commit that referenced this pull request Sep 11, 2020
* refactor: entrance of chaos dashboard

Signed-off-by: Yue Yang <[email protected]>

* fix: go.mod

Signed-off-by: Yue Yang <[email protected]>

* chore: update

Signed-off-by: Yue Yang <[email protected]>

* refactor: use gin-swagger and rewrite uiserver

Signed-off-by: Yue Yang <[email protected]>

* chore: update

Signed-off-by: Yue Yang <[email protected]>

* fix: typo

Signed-off-by: Yue Yang <[email protected]>

* chore: update

Signed-off-by: Yue Yang <[email protected]>

* fix: ci

Signed-off-by: Yue Yang <[email protected]>

* fix: ci

Signed-off-by: Yue Yang <[email protected]>

* fix: ci

Signed-off-by: Yue Yang <[email protected]>

* fix: server rendering

Signed-off-by: Yue Yang <[email protected]>

* fix: remove useless

Signed-off-by: Yue Yang <[email protected]>

* fix: remove duplicates

Signed-off-by: Yue Yang <[email protected]>

Co-authored-by: Yue Yang <[email protected]>
@g1eny0ung g1eny0ung deleted the refactor/chaos-dashboard-main branch September 17, 2020 07:55
sjwsl pushed a commit to sjwsl/chaos-mesh that referenced this pull request May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants