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

Issue 11609 fixes mssql #13239

Merged
merged 42 commits into from
Dec 19, 2017
Merged

Issue 11609 fixes mssql #13239

merged 42 commits into from
Dec 19, 2017

Conversation

jdotcms
Copy link
Contributor

@jdotcms jdotcms commented Dec 19, 2017

No description provided.

jcastro-dotcms and others added 30 commits November 6, 2017 09:41
@CLAassistant
Copy link

CLAassistant commented Dec 19, 2017

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ oswaldogallango
✅ jcastro-dotcms
❌ Jonathan


Jonathan seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

import com.dotmarketing.portlets.workflows.model.WorkflowSearcher;
import com.dotmarketing.portlets.workflows.model.WorkflowStep;
import com.dotmarketing.portlets.workflows.model.WorkflowTask;
import com.dotmarketing.portlets.workflows.model.*;
import com.liferay.portal.model.User;

public interface WorkflowAPI {

Choose a reason for hiding this comment

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

CRITICAL Move constants to a class or enum. rule

import com.liferay.portal.model.User;

public interface WorkflowAPI {

public static final Set<WorkflowStatus> DEFAULT_SHOW_ON = EnumSet.of(WorkflowStatus.LOCKED, WorkflowStatus.UNLOCKED);

Choose a reason for hiding this comment

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

MINOR Move "DEFAULT_SHOW_ON" to a class and lower its visibility rule

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is share between other object and need the visibility to be use as a part of the biz rule

@dev-dotcms
Copy link

SonarQube analysis reported 4 issues

  • CRITICAL 1 critical
  • MAJOR 1 major
  • MINOR 2 minor

Watch the comments in this conversation to review them.

.<String>of(value.toString().split(DELIMITER))
.map(WorkflowStatus::valueOf)
.collect(Collectors.toSet());
} catch (Exception e) {

Choose a reason for hiding this comment

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

MAJOR Either log or rethrow this exception. rule
MINOR Catch a list of specific exception subtypes instead. rule

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no specific one, so

@@ -213,4 +214,17 @@ public static boolean toBoolean(final String strBool, final boolean defaultBool)
}
}

/**
* Based on a value get from the database, if it is a boolean will returns a cast.
* Otherwise will use the {@link DbConnectionFactory} to determinate the boolean value cross-db
Copy link
Contributor

Choose a reason for hiding this comment

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

"Otherwise, it will use .... to determine"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thx

@@ -213,4 +214,17 @@ public static boolean toBoolean(final String strBool, final boolean defaultBool)
}
}

/**
* Based on a value get from the database, if it is a boolean will returns a cast.
Copy link
Contributor

Choose a reason for hiding this comment

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

"Based on a value obtained from database, if it is a boolean will return a cast"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thx

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.

6 participants