Skip to content

Commit

Permalink
Remove Related Degree and User Feedback (#984)
Browse files Browse the repository at this point in the history
- Remove  temporarily Related Degree and User Feedback on
possible issue page

related: #978

Signed-off-by: Anna Babu Palathingal <[email protected]>
  • Loading branch information
annaibm authored Feb 14, 2025
1 parent ee143d6 commit 2b86b66
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions test-result-summary-client/src/Build/PossibleIssues.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,27 +82,6 @@ const PossibleIssues = () => {

const testOutput = result.output;

// query ML Server for possible issues
let mlIssue = '',
mlIssueRepo = '',
mlIssueNum = '';
// Currently all TRSS servers will use the same ML server deployed on the TRSS adoptopendk machine
const mlResponse = await fetch('https://trssml.adoptium.net/predict', {
method: 'post',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ console_content: testOutput }),
}).catch((error) => {
console.log('ML server error ' + error);
});
if (mlResponse && mlResponse.ok) {
const mlResponseJson = await mlResponse.json();
mlIssue = mlResponseJson['result'] || '';
mlIssueRepo = mlIssue.replace(/-\d+$/, '');
mlIssueNum = mlIssue.match(/\d+$/)[0];
}

// fetch related issues with Github API
let additionalRepo = '';
if (buildName.includes('j9') || buildName.includes('ibm')) {
Expand Down Expand Up @@ -197,16 +176,6 @@ const PossibleIssues = () => {
</>
);

let relatedDegree = 'Medium';
if (repoName.includes(mlIssueRepo)) {
if (
relatedIssues.items[index].number.toString() ===
mlIssueNum
) {
relatedDegree = 'High';
}
}

dataSource[repoName] = dataSource[repoName] || [];
dataSource[repoName].push({
key: dataSource[repoName].length,
Expand All @@ -215,7 +184,6 @@ const PossibleIssues = () => {
createdAt,
createdAtStr,
issueState,
degree: relatedDegree,
userFeedback,
});
}
Expand Down Expand Up @@ -262,16 +230,6 @@ const PossibleIssues = () => {
else return 1;
},
},
{
title: 'Related Degree',
dataIndex: 'degree',
key: 'degree',
},
{
title: 'User Feedback',
dataIndex: 'userFeedback',
key: 'userFeedback',
},
];

return (
Expand Down

0 comments on commit 2b86b66

Please sign in to comment.