-
Notifications
You must be signed in to change notification settings - Fork 1
/
bug-report.txt
34 lines (28 loc) · 1.44 KB
/
bug-report.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//testcontroller: chapter_rate=0
//testcontroller accept chapter_rate = 0, chi la ko loop thoi
//logincontroller: contestant-> find ko thay
$contestant_collection = Contestant::find(Input::get('contestant_id'));
Auth::login($candidate);
ProjectController > contract > message_key //static-final
ProjectController->message-notification
chapter-controller: input value hien thi lai question, neu ko co change, cung dc coi nhu submit -> notify changed
>>>can i use javascript to listen to event change
//chapter-controller: question, chapter_id > 9 ???
//delete-question is_right option
//validate: 1.modify
2.new
//over load when something checked by server
>>>i will use js
//auto increment >>> mat id, chapter total = 10, nhung do delete, chapter-new >>> id = 11/12/13,...
>>> validate = total chapter >>> wrong
>>>strict modfify chapter
//new-question >>> strict + 1 by last-one
<back, vi dom con, nen js hien thi lai message @@
analysis
chapters upload-file ko co sure la chapter do co question hay ko, chapter-rate up tu file co the >>> loi vi chapter do ko co questions, check if(chapter-rate== 0) khi loop random la ko 'sure', phai check count($chapter->getQuestions) thi moi chac dc, count thi ton qua
if(count($chapter->getQuestions) > $chapter->rate){
$random_questions[] = $chapter->getQuestions->random($chapter->rate);
}
what if $chapter->rate does not exist
test-page, subimt
check id-keystone, only 1 time used