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

Add version info in the left top of dashboard, like this: Sentinel 控制台 1.7.0 #1015

Merged
merged 2 commits into from
Aug 29, 2019

Conversation

zhaoyuguang
Copy link
Collaborator

Describe what this PR does / why we need it

#728
look like:
image

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

@sczyh30 sczyh30 added area/dashboard Issues or PRs about Sentinel Dashboard to-review To review labels Aug 26, 2019
@codecov-io
Copy link

codecov-io commented Aug 26, 2019

Codecov Report

Merging #1015 into master will decrease coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1015      +/-   ##
============================================
- Coverage     42.72%   42.67%   -0.06%     
  Complexity     1473     1473              
============================================
  Files           317      317              
  Lines          9280     9280              
  Branches       1267     1267              
============================================
- Hits           3965     3960       -5     
- Misses         4825     4828       +3     
- Partials        490      492       +2
Impacted Files Coverage Δ Complexity Δ
...p/sentinel/datasource/consul/ConsulDataSource.java 65.21% <0%> (-4.35%) 7% <0%> (ø)
...tinel/slots/block/flow/param/ParamFlowChecker.java 52.7% <0%> (-2.71%) 28% <0%> (-1%)
...m/alibaba/csp/sentinel/log/DateFileLogHandler.java 57.57% <0%> (+3.03%) 7% <0%> (+1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 820ff92...5d261b4. Read the comment docs.

@@ -1,6 +1,13 @@
var app = angular.module('sentinelDashboardApp');

app.service('AuthService', ['$http', function ($http) {
this.version = function () {
Copy link
Member

Choose a reason for hiding this comment

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

Can we put this API to another service like VersionService? It's actually not related to auth.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the guidance, that is more clever, I fix it, please review 🌹

@sczyh30 sczyh30 requested a review from cdfive August 28, 2019 14:33
Copy link
Collaborator

@cdfive cdfive left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for your contribution!
Now the /version api has been used, and we can see the version number of dashboard intuitively.

@cdfive cdfive merged commit 4c0e35f into alibaba:master Aug 29, 2019
@sczyh30 sczyh30 removed the to-review To review label Aug 29, 2019
@sczyh30 sczyh30 added this to the 1.7.0 milestone Aug 29, 2019
@zhaoyuguang
Copy link
Collaborator Author

Resolves #728

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard Issues or PRs about Sentinel Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants