-
Notifications
You must be signed in to change notification settings - Fork 541
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
Refactor ActionManagementDAO to handle action type specific properties #6119
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6119 +/- ##
============================================
+ Coverage 40.78% 40.83% +0.05%
- Complexity 14546 14556 +10
============================================
Files 1772 1773 +1
Lines 118320 118382 +62
Branches 19266 19245 -21
============================================
+ Hits 48251 48342 +91
+ Misses 62773 62749 -24
+ Partials 7296 7291 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
PR builder started |
Quality Gate passedIssues Measures |
PR builder completed |
</limit> | ||
<limit implementation="org.jacoco.report.check.Limit"> | ||
<counter>COMPLEXITY</counter> | ||
<value>COVEREDRATIO</value> | ||
<!-- Temp decreasing this. There is an ongoing effort to improve | ||
the code complexity coverage. --> | ||
<minimum>0.60</minimum> | ||
<minimum>0.68</minimum> |
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.
Let's keep this to 0.6
@@ -178,14 +183,14 @@ | |||
<!-- Temporarily decreasing this. | |||
Will be improved upon in a follow-up effort. | |||
Related issue: https://github.com/wso2/product-is/issues/21368 --> | |||
<minimum>0.70</minimum> | |||
<minimum>0.77</minimum> |
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.
Target here should be 0.8
public static final String AUTHN_TYPE_ATTRIBUTE = "authnType"; | ||
public static final String URI_PROPERTY = "uri"; | ||
public static final String AUTHN_TYPE_PROPERTY = "authnType"; | ||
public static final String PASSWORD_SHARING_FORMAT_PROPERTY = "passwordSharingFormat"; |
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 constant should not come to the actions core. It's specific to a particular extension
public static final String URI_PROPERTY = "uri"; | ||
public static final String AUTHN_TYPE_PROPERTY = "authnType"; | ||
public static final String PASSWORD_SHARING_FORMAT_PROPERTY = "passwordSharingFormat"; | ||
public static final String CERTIFICATE_ID_PROPERTY = "certificateId"; |
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.
Same here
@@ -53,19 +55,30 @@ public enum ErrorMessages { | |||
"%s is empty."), | |||
ERROR_INVALID_ACTION_REQUEST_FIELD("60005", "Invalid request.", | |||
"%s is invalid."), | |||
ERROR_INVALID_ACTION_CERTIFICATE("60006", "Invalid request.", "Provided certificate is invalid."), |
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 is specific to a particular extension, we should be able to take these validations out from the core
Proposed changes in this pull request
PRE_ISSUE_ACCESS_TOKEN
andPRE_UPDATE_PASSWORD
)PRE_UPDATE_PASSWORD
action type.updateActionEndpointAuthentication
will be removed as it has no use case in the productIDN_ACTION_ENDPOINT
table will be renamed toIDN_ACTION_PROPERTIES
and now it will be utilize to store action type related properties as well.Related Issue