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

[Feature] APIM Portal Notifications #12438

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

HelaniUdara
Copy link

No description provided.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@HelaniUdara HelaniUdara marked this pull request as ready for review May 13, 2024 11:15
}
} catch (SQLException e) {
conn.rollback();
handleException("Failed to delete notification by id", e);
Copy link
Contributor

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();

Copy link
Contributor

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);
Copy link
Contributor

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,
Copy link
Contributor

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());

Copy link
Contributor

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.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove * imports

Copy link
Contributor

@prasa7 prasa7 left a 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

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.

4 participants