Skip to content

Commit

Permalink
YKI(Frontend): Update fixtures and serialization logic [deploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoivisto committed Dec 28, 2023
1 parent dab4073 commit 634f3d2
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 39 deletions.
22 changes: 11 additions & 11 deletions frontend/packages/yki/dev/rest/examSessions/allExamSessions.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"zip": "00100"
}
],
"exam_fee": "100.00",
"exam_fee": 200,
"registration_end_date": "2023-01-03",
"open": true,
"queue_full": false,
Expand Down Expand Up @@ -102,7 +102,7 @@
"zip": "00100"
}
],
"exam_fee": "100.00",
"exam_fee": 200,
"registration_end_date": "2023-01-03",
"open": true,
"queue_full": false,
Expand Down Expand Up @@ -158,7 +158,7 @@
"zip": "00100"
}
],
"exam_fee": "100.00",
"exam_fee": 200,
"registration_end_date": "2039-12-10",
"open": true,
"queue_full": false,
Expand Down Expand Up @@ -214,7 +214,7 @@
"zip": "00100"
}
],
"exam_fee": "100.00",
"exam_fee": 153,
"registration_end_date": "2039-12-14",
"open": false,
"queue_full": false,
Expand Down Expand Up @@ -269,7 +269,7 @@
"zip": "00100"
}
],
"exam_fee": "123.00",
"exam_fee": 176,
"registration_end_date": "2039-02-28",
"open": true,
"queue_full": false,
Expand Down Expand Up @@ -324,7 +324,7 @@
"zip": "00100"
}
],
"exam_fee": "123.00",
"exam_fee": 153,
"registration_end_date": "2039-02-28",
"open": true,
"queue_full": true,
Expand Down Expand Up @@ -377,7 +377,7 @@
"zip": "40100"
}
],
"exam_fee": "100.00",
"exam_fee": 176,
"registration_end_date": "2039-02-28",
"open": true,
"queue_full": false,
Expand Down Expand Up @@ -430,7 +430,7 @@
"zip": "40100"
}
],
"exam_fee": "160.00",
"exam_fee": 200,
"registration_end_date": "2029-02-28",
"open": true,
"queue_full": false,
Expand Down Expand Up @@ -482,7 +482,7 @@
"zip": "40100"
}
],
"exam_fee": "100.00",
"exam_fee": 153,
"registration_end_date": "2039-02-28",
"open": true,
"queue_full": false,
Expand Down Expand Up @@ -534,7 +534,7 @@
"zip": "00250"
}
],
"exam_fee": "100.00",
"exam_fee": 153,
"registration_end_date": "2039-02-28",
"open": true,
"queue_full": true,
Expand Down Expand Up @@ -588,7 +588,7 @@
"zip": "00250"
}
],
"exam_fee": "123.00",
"exam_fee": 176,
"registration_end_date": "2020-12-02",
"open": true,
"queue_full": true,
Expand Down
12 changes: 6 additions & 6 deletions frontend/packages/yki/dev/rest/examSessions/examSessions.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"organizer_oid": "1.2.3.4",
"language_code": "eng",
"level_code": "KESKI",
"exam_fee": "100.00",
"exam_fee": 176,
"open": true,
"queue": 0,
"queue_full": false,
Expand Down Expand Up @@ -103,7 +103,7 @@
"organizer_oid": "1.2.3.4",
"language_code": "eng",
"level_code": "KESKI",
"exam_fee": "100.00",
"exam_fee": 176,
"open": false,
"queue": 0,
"queue_full": false,
Expand Down Expand Up @@ -159,7 +159,7 @@
"organizer_oid": "1.2.3.4",
"language_code": "fin",
"level_code": "PERUS",
"exam_fee": "100.00",
"exam_fee": 153,
"open": false,
"queue": 1,
"queue_full": false,
Expand Down Expand Up @@ -215,7 +215,7 @@
"organizer_oid": "1.2.3.4",
"language_code": "fin",
"level_code": "KESKI",
"exam_fee": "100.00",
"exam_fee": 176,
"open": false,
"queue": 0,
"queue_full": false,
Expand Down Expand Up @@ -272,7 +272,7 @@
"organizer_oid": "1.2.3.4",
"language_code": "fin",
"level_code": "YLIN",
"exam_fee": "100.00",
"exam_fee": 200,
"open": false,
"queue": 0,
"queue_full": false,
Expand Down Expand Up @@ -329,7 +329,7 @@
"organizer_oid": "1.2.3.4",
"language_code": "eng",
"level_code": "KESKI",
"exam_fee": "100.00",
"exam_fee": 176,
"open": true,
"queue": 0,
"queue_full": false,
Expand Down
14 changes: 7 additions & 7 deletions frontend/packages/yki/dev/rest/registration/prices.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"exam-prices": {
"PERUS": "120.00",
"KESKI": "140.00",
"YLIN": "180.00"
"PERUS": 153,
"KESKI": 176,
"YLIN": 200
},
"evaluation-prices": {
"READING": "50.00",
"LISTENING": "50.00",
"WRITING": "50.00",
"SPEAKING": "50.00"
"READING": 50,
"LISTENING": 50,
"WRITING": 50,
"SPEAKING": 50
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"lang": "en"
}
],
"exam_fee": "100.00"
"exam_fee": 153
},
"user": {
"last_name": "Parkkonen-Testi",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"lang": "en"
}
],
"exam_fee": "100.00"
"exam_fee": 176
},
"user": {
"email": "[email protected]"
Expand Down
2 changes: 0 additions & 2 deletions frontend/packages/yki/src/interfaces/examSessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ export interface ExamSessionResponse
| 'post_admission_end_date'
| 'registration_start_date'
| 'registration_end_date'
| 'exam_fee'
> {
session_date: string;
post_admission_start_date?: string;
post_admission_end_date?: string;
registration_start_date?: string;
registration_end_date?: string;
exam_fee?: string;
}

export interface ExamSessionLocation {
Expand Down
20 changes: 10 additions & 10 deletions frontend/packages/yki/src/tests/msw/fixtures/examSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const examSessions = {
zip: '00100',
},
],
exam_fee: '100.00',
exam_fee: 200,
registration_end_date: '2023-01-03',
open: true,
queue_full: false,
Expand Down Expand Up @@ -102,7 +102,7 @@ export const examSessions = {
zip: '00100',
},
],
exam_fee: '100.00',
exam_fee: 200,
registration_end_date: '2023-01-03',
open: true,
queue_full: false,
Expand Down Expand Up @@ -158,7 +158,7 @@ export const examSessions = {
zip: '00100',
},
],
exam_fee: '100.00',
exam_fee: 200,
registration_end_date: '2039-12-10',
open: true,
queue_full: false,
Expand Down Expand Up @@ -214,7 +214,7 @@ export const examSessions = {
zip: '00100',
},
],
exam_fee: '100.00',
exam_fee: 153,
registration_end_date: '2039-12-14',
open: false,
queue_full: false,
Expand Down Expand Up @@ -269,7 +269,7 @@ export const examSessions = {
zip: '00100',
},
],
exam_fee: '123.00',
exam_fee: 176,
registration_end_date: '2039-02-28',
open: true,
queue_full: false,
Expand Down Expand Up @@ -322,7 +322,7 @@ export const examSessions = {
zip: '40100',
},
],
exam_fee: '100.00',
exam_fee: 176,
registration_end_date: '2039-02-28',
open: true,
queue_full: false,
Expand Down Expand Up @@ -375,7 +375,7 @@ export const examSessions = {
zip: '40100',
},
],
exam_fee: '160.00',
exam_fee: 200,
registration_end_date: '2029-02-28',
open: true,
queue_full: false,
Expand Down Expand Up @@ -427,7 +427,7 @@ export const examSessions = {
zip: '40100',
},
],
exam_fee: '100.00',
exam_fee: 153,
registration_end_date: '2039-02-28',
open: true,
queue_full: false,
Expand Down Expand Up @@ -479,7 +479,7 @@ export const examSessions = {
zip: '00250',
},
],
exam_fee: '100.00',
exam_fee: 153,
registration_end_date: '2039-02-28',
open: true,
queue_full: true,
Expand Down Expand Up @@ -533,7 +533,7 @@ export const examSessions = {
zip: '00250',
},
],
exam_fee: '123.00',
exam_fee: 176,
registration_end_date: '2020-12-02',
open: true,
queue_full: true,
Expand Down
1 change: 0 additions & 1 deletion frontend/packages/yki/src/utils/serialization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export class SerializationUtils {
registration_end_date: SerializationUtils.deserializeEndTime(
examSessionResponse.registration_end_date
) as Dayjs,
exam_fee: parseInt(examSessionResponse.exam_fee as string),
};
}

Expand Down

0 comments on commit 634f3d2

Please sign in to comment.