CSC/ECE 517 Fall 2019 - E1971. OSS project Finklestein: Instructors & Institutions: Difference between revisions
(→Task2) |
|||
Line 30: | Line 30: | ||
====Task1==== | ====Task1==== | ||
As the issue is the Institution drop-down list is not alphabetically sorted. We simply added a step of sort when the Institution list was retrieved from the Database. | As the issue is the Institution drop-down list is not alphabetically sorted. We simply added a step of sort when the Institution list was retrieved from the Database. | ||
'''Changed files:''' _course.html.erb | '''Changed files:''' <font color="blue">_course.html.erb<font> | ||
<%= select("course", "institutions_id", Institution.all<font color="red">.order(:name)</font>.collect{ |c| [ c.name, c.id] }) %> | <%= select("course", "institutions_id", Institution.all<font color="red">.order(:name)</font>.collect{ |c| [ c.name, c.id] }) %> | ||
Revision as of 03:16, 27 October 2019
E1971. OSS project Finklestein: Instructors & Institutions
Expertiza is an open-source project based on Ruby on Rails framework. Expertiza allows instructors to manager courses and assignments for students. Students can form up teams in Expertiza to work on different projects and assignments and do peer review about other students' submissions.
Introduction
- E1971 Project aims to fix the associations problems between the Institution and Instructor class.
- The forked git repository for this project can be found Expertiza-E1971
Problem Statement
The following tasks were accomplished in E1971 project:
- Task1: The institution list should be sorted alphabetically.
- Details: When creating a course, the drop-down list for selecting the institution does not show in alphabetical order.
- Task2: Adding a new institution during creation of an instructor profile.
- Details: The admin can attempt to create a new institution when creating a new instructor. But, after one types in the name of the institution & clicks create, it crashes.
- Task3: Listing of instructors should show their institutions on the same line as their new feature.
- Details: When listing users, there is currently no column to display the user’s associated institution.
Task1
As the issue is the Institution drop-down list is not alphabetically sorted. We simply added a step of sort when the Institution list was retrieved from the Database.
Changed files: _course.html.erb <%= select("course", "institutions_id", Institution.all.order(:name).collect{ |c| [ c.name, c.id] }) %>
Task2
The issue occurs when the admin trying to create a new instructor with a new institution name. To fix this problem, we added a function to create a new institution and a confirmation prompt to alert the admin.
Issue3
- ...........................................................................................
app/controllers/submitted_content_controller.rb:
instructor = User.find(user.parent_id) bcc_mail_address = "" if instructor.copy_of_emails? bcc_mail_address = instructor.email else # do noting end
bcc: bcc_mail_address,
Process Video
Test
Team Information
Team_4430: Ruiwen Wu (rwu5@ncsu.edu) Yongjian Zhu (yzhu48@ncsu.edu) Ling Li (lli46@ncsu.edu) Mentor: Carmen Bentley (cnaiken@ncsu.edu)
References
Expertiza project documentation wiki