CSC/ECE 517 Spring 2020 - E2013. Refactor tree-display.js and tree display controller.rb: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 5: Line 5:


==OSS Code Changes==
==OSS Code Changes==
1. We simplified the month string representation in file app/assets/javascripts/tree_display.jsx as follow
[[File:month.png]]

Revision as of 17:31, 23 March 2020

Introduction

The tree-display.js and its tree_display_controller.rb files are designed to allow Expertiza users to view their Assignments, Courses and Questionnaires at one place. This is the primary control page, as well as the home page for instructors on Expertiza which allows them to create, modify, delete and view Assignments.

The primary problem with this is that both the files, due to their bulky and unoptimized methods, slow the rendering of UI on screen. The methods in these files can be studied and refactored to improve the overall performance of this controller and its corresponding UI. Moreover, any obsolete or unused methods can be removed and DRY principle should be implemented. This project mostly revolves around these 2 files, and would involve refactoring JavaScript more than Ruby on Rails.

OSS Code Changes

1. We simplified the month string representation in file app/assets/javascripts/tree_display.jsx as follow