sammytrhodes / ExamHelper

This application will aid teachers in creating exams for their classes.
0 stars 1 forks source link

Database #16

Closed sammytrhodes closed 7 years ago

sammytrhodes commented 7 years ago

Epic: question repository Definition: This will hold all of the questions for exams. Definition of Done: questions will be organized by, question, answer and subject. They should have a unique identifier.

davmarcella commented 7 years ago

spent an hour creating initial database and starting addQuestion function

davmarcella commented 7 years ago

spent 30 minutes working on database stuff (syntax and mysql issues)

davmarcella commented 7 years ago

spent an hour and a half continuing to work on addQuestion. Should now only create the tables if they don't already exist. Next step is to get the number of items in each relation and use that number+1 as the new ID (primary key) for the question/subject being added

davmarcella commented 7 years ago

spent 30-40 minutes working on making sure ID's increment automatically and making sure duplicates cannot be added even though they'll have different ID's

davmarcella commented 7 years ago

spent 30 - 40 minutes discovering what characters will cause errors in sqlite and creating unit tests to prevent this

davmarcella commented 7 years ago

spent 40 minutes working on database helper file. Now creates tables and can populate them but getting an error when adding user inputted questions.

davmarcella commented 7 years ago

spent an additional 45 minutes completing the database helper file

davmarcella commented 7 years ago

spent 50 minutes adding a delete all function which removes everything from the database (good for testing), and fixed issue with addQuestion function. Now ready for integration with controller and interface.

davmarcella commented 7 years ago

spent 45 minutes creating valid integration tests in which it passed

davmarcella commented 7 years ago

spent 20 minutes adding getSubjects() function to give a List of all the subject Strings

davmarcella commented 7 years ago

spent 30 minutes: added valid(int numQues, String subject) that checks to make sure a requested number of questions for any given subject exists. If someone requests an exam of 10 Algorithms questions, we want to make sure that there are enough questions to create that exam.

davmarcella commented 7 years ago

spent 35 minutes creating: public static ArrayList getQuestions(int numQues, String subject); in database helper file

davmarcella commented 7 years ago

spent 1.5 hours: working on creating Unit Tests (I know that should have been done sooner)