Skip to content

Commit

Permalink
SWC-7173
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson committed Nov 19, 2024
1 parent dba301b commit 9ee2789
Showing 1 changed file with 3 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -712,34 +712,9 @@ private void configureReportViolation() {
actionMenu.setActionListener(
Action.REPORT_VIOLATION,
(action, event) -> {
// report abuse via Jira issue collector
String userId = WebConstants.ANONYMOUS, email =
WebConstants.ANONYMOUS, displayName = WebConstants.ANONYMOUS, synId =
entity.getId();
UserProfile userProfile =
authenticationController.getCurrentUserProfile();
if (userProfile != null) {
userId = userProfile.getOwnerId();
displayName = DisplayUtils.getDisplayName(userProfile);
email = DisplayUtils.getPrimaryEmail(userProfile);
}

ginInjector
.getSynapseJSNIUtils()
.showJiraIssueCollector(
"", // summary
FLAG_ISSUE_DESCRIPTION_PART_1 +
gwt.getCurrentURL() +
FLAG_ISSUE_DESCRIPTION_PART_2,
FLAG_ISSUE_COLLECTOR_URL,
userId,
displayName,
email,
synId, // Synapse data object ID
REVIEW_DATA_REQUEST_COMPONENT_ID,
null, // AR ID
FLAG_ISSUE_PRIORITY
);
popupUtils.openInNewWindow(
"https://sagebionetworks.jira.com/servicedesk/customer/portal/20"
);
}
);
}
Expand Down

0 comments on commit 9ee2789

Please sign in to comment.