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

DROOLS-5104: Compute scenario simulation tabs indexes dynamically #1325

Merged
merged 2 commits into from Mar 9, 2020

Conversation

jomarko
Copy link

@jomarko jomarko commented Mar 4, 2020

@jomarko
Copy link
Author

jomarko commented Mar 4, 2020

jenkins execute full downstream build

@jomarko jomarko requested review from yesamer and dupliaka March 5, 2020 07:08
@jomarko jomarko marked this pull request as ready for review March 5, 2020 07:08
@@ -269,7 +269,9 @@ public void onOverviewSelected() {
*/
@Override
public void addBackgroundPage(final ScenarioGridWidget scenarioGridWidget) {
kieView.getMultiPage().addPage(BACKGROUND_TAB_INDEX, new PageImpl(scenarioGridWidget, ScenarioSimulationEditorConstants.INSTANCE.backgroundTabTitle()) {
final MultiPageEditorViewImpl editorMultiPageView = (MultiPageEditorViewImpl) kieView.getMultiPage().getView();
final int backgroundPageIndex = editorMultiPageView.getPageIndex(CommonConstants.INSTANCE.EditTabTitle()) + 1;
Copy link
Member

Choose a reason for hiding this comment

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

We can avoid magical numbers by using ++

Copy link
Author

Choose a reason for hiding this comment

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

@dupliaka I was not able to apply ++ operator, because it is need to use it just with non final variables. However I decided at least update formatting == I extracted some constants to variables to not exceed maximum amount of characters per line.

@sonarcloud
Copy link

sonarcloud bot commented Mar 5, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@dupliaka dupliaka left a comment

Choose a reason for hiding this comment

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

Looks fine, thanks!

@jomarko
Copy link
Author

jomarko commented Mar 6, 2020

@rsynek hello, may I ask you for help? Sonar is reporting zero coverage for new lines in this PR, however it is not true. Could you advice what configuration I should check and where? Idea in my mind, aren't some modules black listed, or vice versa just some white listed?

@rsynek
Copy link
Collaborator

rsynek commented Mar 6, 2020

@jomarko I think there is something wrong with the repository. The coverage fell to 0.0% on January 23rd https://sonarcloud.io/project/activity?custom_metrics=coverage&graph=custom&id=org.drools%3Adrools-wb

Copy link
Member

@yesamer yesamer left a comment

Choose a reason for hiding this comment

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

@jomarko Fine for me!

@jomarko
Copy link
Author

jomarko commented Mar 9, 2020

@kiegroup/gatekeepers please merge

@manstis manstis merged commit 689e6a5 into kiegroup:master Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants