-
Notifications
You must be signed in to change notification settings - Fork 627
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
[Feature] APIM Portal Notifications #12438
base: master
Are you sure you want to change the base?
Conversation
|
...mgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java
Outdated
Show resolved
Hide resolved
....carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/PortalNotificationDAO.java
Outdated
Show resolved
Hide resolved
....carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/PortalNotificationDAO.java
Outdated
Show resolved
Hide resolved
...carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/constants/SQLConstants.java
Outdated
Show resolved
Hide resolved
...in/java/org/wso2/carbon/apimgt/impl/portalNotifications/WorkflowNotificationServiceImpl.java
Outdated
Show resolved
Hide resolved
} | ||
} catch (SQLException e) { | ||
conn.rollback(); | ||
handleException("Failed to delete notification by id", e); |
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 notification id and other context information to the log messages.
@Override | ||
public NotificationMetaData getNotificationMetaData(WorkflowDTO workflowDTO) { | ||
NotificationMetaData notificationMetaData = new NotificationMetaData(); | ||
|
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.
Remove this blank line
} | ||
} | ||
} catch (APIManagementException e) { | ||
APIUtil.handleException("Error while getting API usage by API ID - getAPIUsageByAPIId()", e); |
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 API ID as the context information for the message. Check all the messages and add context information.
String apiUUID = null; | ||
try { | ||
apiUUID = getAPIUUIDUsingNameContextVersion(apiName, apiContext, apiVersion, tenantDomain); | ||
APIIdentifier apiIdEmailReplaced = new APIIdentifier(APIUtil.replaceEmailDomain(provider), apiName, |
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.
@tharindu1st Are we using APIIdentifers ?
notificationMetaData.setRequestedTier( | ||
workflowDTO.getProperties(APIConstants.PortalNotifications.REQUESTED_TIER)); | ||
notificationMetaData.setComment(workflowDTO.getComments()); | ||
|
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.
Remove the blank line
import org.wso2.carbon.apimgt.impl.systemNotifications.NotificationType; | ||
import org.wso2.carbon.apimgt.impl.utils.APIMgtDBUtil; | ||
|
||
import java.sql.*; |
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.
Remove * imports
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.
Address the added comments
No description provided.