DASSL / Gradebook

Open-source product to provide a practical means for instructors to record student attendance and assessment
Other
8 stars 4 forks source link

openCloseImport incorrectly fills data into tables (W) #13

Closed afig closed 7 years ago

afig commented 7 years ago

The following issues have been identified:

The course title issue brings up the question as to whether we want to store these historical titles. (We may choose not to do so currently.)

afig commented 7 years ago

Due to the middle name issue, the three sections that we need for testing roster and attendance parts of the system are not populated.

The following script will manually insert these three sections: https://gist.github.com/afig/4e11d6a60a006c0e6b9e539e32ca8851

The above script should be run after importOpenClose, but before importRoster.

wildtayne commented 7 years ago

Changing the RETURNING statement to this: RETURNING id, FName || ' ' || COALESCE(MName || ' ', '') || LName as FullName should fix the middle name problem. This issue was that if the instructor had no middle name, this statement inserted two spaces between FName and LName, which caused the LIKE predicate to fail later. This updated statement should only insert a space after MName if it is not null.