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

ADM-748:[backend]feat: add done status between done status move filter #954

Merged
merged 2 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ private boolean isRealDoneCardByHistory(CardHistoryResponseDTO jiraCardHistory,
Optional<Long> lastTimeToRealDone = jiraCardHistory.getItems()
.stream()
.filter(history -> STATUS_FIELD_ID.equals(history.getFieldId()))
.filter(history -> !realDoneStatuses.contains(history.getFrom().getDisplayValue().toUpperCase()))
.filter(history -> realDoneStatuses.contains(history.getTo().getDisplayValue().toUpperCase()))
.map(HistoryDetail::getTimestamp)
.max(Long::compareTo);
Expand Down
10 changes: 5 additions & 5 deletions frontend/cypress/e2e/createANewProject.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import reportPage from '../pages/metrics/report';
import { TIPS } from '../../src/constants/resources';

const cycleTimeData = [
{ label: 'Average Cycle Time(Days/SP)', value: '6.75' },
{ label: 'Average Cycle Time(Days/Card)', value: '9.85' },
{ label: 'Average Cycle Time(Days/SP)', value: '7.64' },
{ label: 'Average Cycle Time(Days/Card)', value: '9.55' },
];

const velocityData = [
{ label: 'Velocity(Story Point)', value: '17.5' },
{ label: 'Throughput(Cards Count)', value: '12' },
{ label: 'Throughput(Cards Count)', value: '14' },
];

const deploymentFrequencyData = [{ label: 'Deployment Frequency(Deployments/Day)', value: '2.36' }];
Expand All @@ -25,7 +25,7 @@ const leadTimeForChangeData = [
{ label: 'Total Lead Time(Hours)', value: '-4.87' },
];

const changeFailureRateData = [{ label: 'Failure Rate', value: '49' }];
const changeFailureRateData = [{ label: 'Failure Rate', value: '49.02' }];

const metricsTextList = [
'Board configuration',
Expand Down Expand Up @@ -145,7 +145,7 @@ const checkBoardShowMore = () => {
reportPage.goToBoardDetailPage();
cy.get(`[data-test-id="${METRICS_TITLE.VELOCITY}"]`).find('tbody > tr').should('have.length', 2);
cy.get(`[data-test-id="${METRICS_TITLE.CYCLE_TIME}"]`).find('tbody > tr').should('have.length', 17);
cy.get(`[data-test-id="${METRICS_TITLE.CLASSIFICATION}"]`).find('tbody > tr').should('have.length', 103);
cy.get(`[data-test-id="${METRICS_TITLE.CLASSIFICATION}"]`).find('tbody > tr').should('have.length', 122);

reportPage.exportBoardData();
checkBoardCSV();
Expand Down
135 changes: 75 additions & 60 deletions frontend/cypress/fixtures/metric.csv
Original file line number Diff line number Diff line change
@@ -1,72 +1,87 @@
"Group","Metrics","Value"
"Velocity","Velocity(Story Point)","17.5"
"Velocity","Throughput(Cards Count)","12"
"Cycle time","Average cycle time(days/storyPoint)","6.75"
"Cycle time","Average cycle time(days/card)","9.85"
"Cycle time","Total time / Total cycle time","2.72"
"Cycle time","Total development time / Total cycle time","70.12"
"Cycle time","Total block time / Total cycle time","21.18"
"Cycle time","Total review time / Total cycle time","4.32"
"Cycle time","Total testing time / Total cycle time","1.67"
"Velocity","Throughput(Cards Count)","14"
"Cycle time","Average cycle time(days/storyPoint)","7.64"
"Cycle time","Average cycle time(days/card)","9.55"
"Cycle time","Total time / Total cycle time","2.40"
"Cycle time","Total development time / Total cycle time","62.03"
"Cycle time","Total block time / Total cycle time","30.28"
"Cycle time","Total review time / Total cycle time","3.82"
"Cycle time","Total testing time / Total cycle time","1.47"
"Cycle time","Average time(days/storyPoint)","0.18"
"Cycle time","Average time(days/card)","0.27"
"Cycle time","Average development time(days/storyPoint)","4.73"
"Cycle time","Average development time(days/card)","6.91"
"Cycle time","Average block time(days/storyPoint)","1.43"
"Cycle time","Average block time(days/card)","2.09"
"Cycle time","Average time(days/card)","0.23"
"Cycle time","Average development time(days/storyPoint)","4.74"
"Cycle time","Average development time(days/card)","5.92"
"Cycle time","Average block time(days/storyPoint)","2.31"
"Cycle time","Average block time(days/card)","2.89"
"Cycle time","Average review time(days/storyPoint)","0.29"
"Cycle time","Average review time(days/card)","0.43"
"Cycle time","Average review time(days/card)","0.36"
"Cycle time","Average testing time(days/storyPoint)","0.11"
"Cycle time","Average testing time(days/card)","0.16"
"Classifications","Issue Type / Task","58.33"
"Classifications","Issue Type / Story","41.67"
"Classifications","Parent / PLL-1285","16.67"
"Classifications","Parent / PLL-1264","66.67"
"Classifications","Parent / PLL-634","16.67"
"Classifications","FS Domains / None","100.00"
"Cycle time","Average testing time(days/card)","0.14"
"Classifications","Issue Type / Task","50.00"
"Classifications","Issue Type / FS Incidents","7.14"
"Classifications","Issue Type / Story","42.86"
"Classifications","Parent / PLL-1285","14.29"
"Classifications","Parent / PLL-1264","57.14"
"Classifications","Parent / PLL-634","28.57"
"Classifications","FS Domains / Payment Rails","7.14"
"Classifications","FS Domains / None","92.86"
"Classifications","Components / None","100.00"
"Classifications","PIR Completed / None","100.00"
"Classifications","Team / Payment Rails (portfolio)","100.00"
"Classifications","PIR Completed / N/A","7.14"
"Classifications","PIR Completed / None","92.86"
"Classifications","Team / Payment Rails (portfolio)","92.86"
"Classifications","Team / None","7.14"
"Classifications","Project / FS Apollo","100.00"
"Classifications","Fix versions / Apple Pay Integration","16.67"
"Classifications","Fix versions / None","25.00"
"Classifications","Fix versions / Phoenix Credit Card Payment Migration","58.33"
"Classifications","Sprint / Apollo Sprint 65","66.67"
"Classifications","Fix versions / Apple Pay Integration","14.29"
"Classifications","Fix versions / None","35.71"
"Classifications","Fix versions / Phoenix Credit Card Payment Migration","50.00"
"Classifications","Sprint / Apollo Sprint 65","64.29"
"Classifications","Sprint / Apollo Sprint 66","100.00"
"Classifications","Sprint / Apollo Sprint 63","8.33"
"Classifications","Sprint / Apollo Sprint 64","8.33"
"Classifications","Resolution Details / None","100.00"
"Classifications","Epic Link / PLL-1285","16.67"
"Classifications","Epic Link / PLL-1264","66.67"
"Classifications","Epic Link / PLL-634","16.67"
"Classifications","Sprint / Apollo Sprint 67","14.29"
"Classifications","Sprint / Apollo Sprint 68","14.29"
"Classifications","Sprint / Apollo Sprint 63","7.14"
"Classifications","Sprint / Apollo Sprint 64","14.29"
"Classifications","Resolution Details / It was resolved automatically. no action required.","7.14"
"Classifications","Resolution Details / None","92.86"
"Classifications","Epic Link / PLL-1285","14.29"
"Classifications","Epic Link / PLL-1264","57.14"
"Classifications","Epic Link / PLL-634","28.57"
"Classifications","Epic Name / None","100.00"
"Classifications","Time to Resolution - Hrs / None","100.00"
"Classifications","Time to Detect - Hrs / None","100.00"
"Classifications","Cause by - System / None","100.00"
"Classifications","FS Work Categorization / Support Request","16.67"
"Classifications","FS Work Categorization / Stories","83.33"
"Classifications","Time to Resolution - Hrs / 1","7.14"
"Classifications","Time to Resolution - Hrs / None","92.86"
"Classifications","Time to Detect - Hrs / 1","7.14"
"Classifications","Time to Detect - Hrs / None","92.86"
"Classifications","Cause by - System / Others","7.14"
"Classifications","Cause by - System / None","92.86"
"Classifications","FS Work Categorization / Support Request","14.29"
"Classifications","FS Work Categorization / Stories","78.57"
"Classifications","FS Work Categorization / Incident handling","7.14"
"Classifications","Has Dependancies / None","100.00"
"Classifications","FS R&D Classification / Programs","83.33"
"Classifications","FS R&D Classification / Unplanned Operational","16.67"
"Classifications","FS Work Type / Feature Work - Unplanned","8.33"
"Classifications","FS Work Type / Operational Work - Planned","33.33"
"Classifications","FS Work Type / Feature Work - Planned","58.33"
"Classifications","FS R&D Classification / Programs","78.57"
"Classifications","FS R&D Classification / Unplanned Operational","21.43"
"Classifications","FS Work Type / Feature Work - Unplanned","7.14"
"Classifications","FS Work Type / Operational Work - Unplanned","14.29"
"Classifications","FS Work Type / Operational Work - Planned","28.57"
"Classifications","FS Work Type / Feature Work - Planned","50.00"
"Classifications","Incident Priority / P4","100.00"
"Classifications","Reporter / Anthony Tse","33.33"
"Classifications","Reporter / Yu Zhang","8.33"
"Classifications","Reporter / Gerard Ho","41.67"
"Classifications","Reporter / Qian Zhang","16.67"
"Classifications","Reporter / Anthony Tse","28.57"
"Classifications","Reporter / Bruce Lund","7.14"
"Classifications","Reporter / Yu Zhang","7.14"
"Classifications","Reporter / Gerard Ho","35.71"
"Classifications","Reporter / Qian Zhang","14.29"
"Classifications","Reporter / HanWei Wang","7.14"
"Classifications","Parent Link / None","100.00"
"Classifications","Priority / High","25.00"
"Classifications","Priority / Could","75.00"
"Classifications","Paired Member / Anthony Tse","8.33"
"Classifications","Paired Member / Harsh Singal","8.33"
"Classifications","Paired Member / Yu Zhang","8.33"
"Classifications","Paired Member / None","75.00"
"Classifications","Labels / Tech_Usability_Issues","8.33"
"Classifications","Labels / Leave","16.67"
"Classifications","Labels / None","75.00"
"Classifications","Story Points / 0","16.67"
"Classifications","Story Points / 1","25.00"
"Classifications","Story Points / 2","50.00"
"Classifications","Story Points / 2.5","8.33"
"Classifications","Priority / High","21.43"
"Classifications","Priority / Could","78.57"
"Classifications","Paired Member / Anthony Tse","7.14"
"Classifications","Paired Member / Harsh Singal","7.14"
"Classifications","Paired Member / Yu Zhang","7.14"
"Classifications","Paired Member / None","71.43"
"Classifications","Paired Member / HanWei Wang","7.14"
"Classifications","Labels / Tech_Usability_Issues","7.14"
"Classifications","Labels / Leave","14.29"
"Classifications","Labels / None","78.57"
"Classifications","Story Points / 0","28.57"
"Classifications","Story Points / 1","21.43"
"Classifications","Story Points / 2","42.86"
"Classifications","Story Points / 2.5","7.14"
Loading