-
Notifications
You must be signed in to change notification settings - Fork 92
Fixed bug where banner appears instead of indicative message in routing rules page #660
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
base: main
Are you sure you want to change the base?
Fixed bug where banner appears instead of indicative message in routing rules page #660
Conversation
4ed856b
to
1be2cc6
Compare
…page for external service
1be2cc6
to
f1ba0b0
Compare
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.
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
@@ -160,7 +163,7 @@ public Response getDistribution(QueryDistributionRequest query) | |||
Map<String, List<DistributionResponse.LineChart>> lineChartMap = lineChart.stream().collect(Collectors.groupingBy(DistributionResponse.LineChart::getName)); | |||
List<DistributionResponse.DistributionChart> distributionChart = lineChartMap.values().stream().map(d -> { | |||
DistributionResponse.DistributionChart dc = new DistributionResponse.DistributionChart(); | |||
DistributionResponse.LineChart lc = d.get(0); | |||
DistributionResponse.LineChart lc = d.getFirst(); |
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.
Ensure that 'd.getFirst()' is a valid method for the collection type of 'd'. If this collection is a standard List, use 'd.get(0)' instead.
DistributionResponse.LineChart lc = d.getFirst(); | |
DistributionResponse.LineChart lc = d.get(0); |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
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.
This change was suggested by the Intelij IDE so changed, really have no opinion in the matter
Quickly skimmed through this. I'm fine with it |
@@ -76,6 +77,7 @@ public class GatewayWebAppResource | |||
// TODO Avoid putting mutable objects in fields | |||
private final UIConfiguration uiConfiguration; | |||
private final RoutingRulesManager routingRulesManager; | |||
private final HaGatewayConfiguration haGatewayConfiguration; |
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.
Please don't put mutable object in fields.
@@ -92,6 +94,7 @@ public GatewayWebAppResource( | |||
this.resourceGroupsManager = requireNonNull(resourceGroupsManager, "resourceGroupsManager is null"); | |||
this.uiConfiguration = configuration.getUiConfiguration(); | |||
this.routingRulesManager = requireNonNull(routingRulesManager, "routingRulesManager is null"); | |||
this.haGatewayConfiguration = configuration; |
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.
Add requireNonNull
.
@@ -160,7 +163,7 @@ public Response getDistribution(QueryDistributionRequest query) | |||
Map<String, List<DistributionResponse.LineChart>> lineChartMap = lineChart.stream().collect(Collectors.groupingBy(DistributionResponse.LineChart::getName)); | |||
List<DistributionResponse.DistributionChart> distributionChart = lineChartMap.values().stream().map(d -> { | |||
DistributionResponse.DistributionChart dc = new DistributionResponse.DistributionChart(); | |||
DistributionResponse.LineChart lc = d.get(0); | |||
DistributionResponse.LineChart lc = d.getFirst(); |
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.
Please separate a commit. This change is unrelated to "Fixed bug in UI where non indicative banner appears in routing rules page for external service".
UI Improvements: Fixed bug where banner appears instead of indicative message in routing rules page
Changes
Impact
( X) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text: