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

Fixes #198: Enhance rule checking in rule managers and Sentinel Dashboard #202

Merged
merged 2 commits into from
Oct 29, 2018

Conversation

sczyh30
Copy link
Member

@sczyh30 sczyh30 commented Oct 26, 2018

Describe what this PR does / why we need it

Enhance rule checking in rule managers and Sentinel Dashboard frontend.

Does this pull request fix one issue?

Fixes #198

Also related to #153

Describe how you did it

  • Enhance rule checking in rule managers and Sentinel Dashboard frontend
  • Enhance error information when reporting invalid fields in rule dialog

Describe how to verify it

Run the dashboard and input invalid fields in rule dialog.

Special notes for reviews

None.

- Enhance error information when reporting invalid fields in rule dialog

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
@sczyh30 sczyh30 added the to-review To review label Oct 26, 2018
@codecov-io
Copy link

codecov-io commented Oct 26, 2018

Codecov Report

Merging #202 into master will increase coverage by 0.83%.
The diff coverage is 57.14%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #202      +/-   ##
============================================
+ Coverage     50.75%   51.58%   +0.83%     
- Complexity      827      853      +26     
============================================
  Files           140      140              
  Lines          4798     4819      +21     
  Branches        683      692       +9     
============================================
+ Hits           2435     2486      +51     
+ Misses         2073     2024      -49     
- Partials        290      309      +19
Impacted Files Coverage Δ Complexity Δ
.../csp/sentinel/slots/block/degrade/DegradeRule.java 59.52% <100%> (+5.2%) 18 <2> (+4) ⬆️
...csp/sentinel/slots/block/flow/FlowRuleManager.java 64.44% <25%> (-1.38%) 25 <6> (+6)
...el/slots/block/authority/AuthorityRuleManager.java 64.91% <50%> (-1.16%) 9 <4> (+1)
...ntinel/slots/block/degrade/DegradeRuleManager.java 26.38% <71.42%> (+5.17%) 7 <5> (+5) ⬆️
...a/csp/sentinel/slots/statistic/base/LeapArray.java 72.41% <0%> (-5.18%) 18% <0%> (-1%)
...libaba/csp/sentinel/slots/block/flow/FlowRule.java 59.64% <0%> (+0.87%) 32% <0%> (+1%) ⬆️
...java/com/alibaba/csp/sentinel/util/StringUtil.java 13.46% <0%> (+1.92%) 9% <0%> (+2%) ⬆️
...a/csp/sentinel/slots/statistic/base/LongAdder.java 31.91% <0%> (+14.89%) 9% <0%> (+5%) ⬆️
... and 1 more

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 d726e62...be346a2. Read the comment docs.

Copy link
Contributor

@CarpenterLee CarpenterLee left a comment

Choose a reason for hiding this comment

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

LGTM

@sczyh30 sczyh30 merged commit 0c15dd9 into master Oct 29, 2018
@sczyh30 sczyh30 removed the to-review To review label Oct 29, 2018
@sczyh30 sczyh30 deleted the fix/dashboard-validate-rules branch October 29, 2018 05:35
Arlmls pushed a commit to Arlmls/Sentinel that referenced this pull request Jan 8, 2019
…l Dashboard (alibaba#202)

- Enhance rule checking in rule managers and Sentinel Dashboard frontend
- Enhance error information when reporting invalid fields in rule dialog

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
CST11021 pushed a commit to CST11021/Sentinel that referenced this pull request Nov 3, 2021
* Add an interface DecryptionStrategy for SslHelper

* Centralize the TLS related configurations

* Use tls test mode by default

* Add SSL related tests

* Add tls related tests

* Add tls config related unit tests

* Pass TLS unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Sentinel Dashboard should not allow invalid values when configuring rules
3 participants