CSC/ECE 517 Fall 2019 - E1966. Tabbed reviews partial file refactor for displaying the alternate view of reviews: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:


== '''Solution''' ==
== '''Solution''' ==
===Student End===


*  
* In student end, add render partial to tabbed reviews.
'''path to add '''
'''app/views/grades/_participant.html.erb '''
<pre>
<pre>
to do
<TR id="<%= prefix %>_reviews" style="display:none; background-color: white;">
 
    <TD COLSPAN="10"><%= render :partial=>'grades/reviews', :locals => {:prefix => 'user', :participant => participant, :rscore => pscore[:review]} %></TD>
    <TD COLSPAN="10"><%= render :partial=>'grades/tabbed_reviews', :locals => {:prefix => 'user', :participant => participant, :rscore => pscore[:review]} %></TD>
</TR>
</pre>
</pre>


*  
*  

Revision as of 17:28, 28 October 2019

About Expertiza

Expertiza is a open source project currently for CSC517 instructor and students forming groups, submit work, review, and view grades. The project is based on Ruby on Rails framework and the code is on Github: https://github.com/expertiza/expertiza. Expertiza serves wiki page, collecting information of all internal information and updates of all versions.

Problem Statement

Issue details

1) On student-end, Expertiza use grades/_reviews.html.erb partial to display reviewers, scores and review details; on instructor-end, it uses response controller and model to generate reviews page (the tables and charts are generated by grades/_team_statistics.html.erb (display reviewers and scores) in Statistics tab). We need to use the same kinds of partials in instructor-end and student-end, either _reviews partial or tabbed_reviews partial.

2) Give Feedback link at view_my_score at student-end should not appear at folded view.

What to do

1) We need to use the same kinds of partials in instructor-end and student-end.

2) Give Feedback link at view_my_score should appear at the bottom of expanded view.

Solution

Student End

  • In student end, add render partial to tabbed reviews.

app/views/grades/_participant.html.erb

<TR id="<%= prefix %>_reviews" style="display:none; background-color: white;">
    <TD COLSPAN="10"><%= render :partial=>'grades/reviews', :locals => {:prefix => 'user', :participant => participant, :rscore => pscore[:review]} %></TD>
    <TD COLSPAN="10"><%= render :partial=>'grades/tabbed_reviews', :locals => {:prefix => 'user', :participant => participant, :rscore => pscore[:review]} %></TD>
</TR>


path to add

to do 



path to add

to do

path to add

 to do 


Test files

  • what test done
  • how to do that

path to add

test 

Team Information

  1. Forked Issue on Github
  2. Weiran Fu (@ncsu.edu)
  3. Qingyan Wang (qwang20@ncsu.edu)
  4. Hongli Wang (hwang85@ncsu.edu)
  5. Mentor: Mohit Jain (mjain6@ncsu.edu)

References

  1. Expertiza on GitHub
  2. The live Expertiza website
  3. Expertiza project documentation wiki
  4. GitHub Project Repository Fork
  5. Demo link
  6. Rspec Documentation