Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E1946 #14

Open
wants to merge 798 commits into
base: beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
798 commits
Select commit Hold shift + click to select a range
36cbdf0
added spec tests for search function with version creation
Mar 24, 2020
98d4075
Corrected the variable names that weren't clear.
rajan3010 Mar 24, 2020
b52b0b8
Fix for travis build failing
JasmineMadonna Mar 25, 2020
9ef9b2f
Fix for travis build failing Merge branch 'E2009_Refactor_assignment'…
JasmineMadonna Mar 25, 2020
3116c73
Changes about two long lines and position of option paratermer
guoyiwang Mar 25, 2020
123f2cd
Divide complete to three method and add multiple test for different m…
guoyiwang Mar 26, 2020
d0688a6
Merge pull request #15 from hosungh/eric-bookmark-menu
DanielleHancock Mar 23, 2020
846eb79
change questionnaire path in instructor_role
Mar 29, 2020
3950575
change questionnaire path in instructor_role (#17)
epeden Mar 29, 2020
f76c667
don't change database.yml.example file
Mar 29, 2020
9ddf923
Addition/modification of comments
Mar 29, 2020
70aed84
Merge pull request #18 from hosungh/dont-commit-database-example
epeden Mar 29, 2020
3572f3a
Merge pull request #19 from hosungh/hosungh-develop
hosungh Mar 29, 2020
6d2601f
Extracted methods to help with refactoring long methods in assignemen…
JasmineMadonna Mar 29, 2020
f194cff
add comments to changed code
Mar 30, 2020
b90b2ac
change labels in role_instructor
Mar 30, 2020
f767ce6
fix merge conflicts
Mar 30, 2020
adfaa8a
Merge pull request #21 from hosungh/test-db-migrate-change
epeden Mar 30, 2020
003f373
whitespace change in database.yml.example
Mar 30, 2020
7e83845
Merge pull request #22 from hosungh/whitespace-in-database-example
epeden Mar 30, 2020
9ea175b
add schema file changes
Mar 30, 2020
8da538a
Merge pull request #23 from hosungh/test-db-migration-change
epeden Mar 30, 2020
904636e
Change conditions to origin conditions in master branch, only add the…
guoyiwang Mar 30, 2020
887b5dd
Delete the commented out code
guoyiwang Mar 30, 2020
75dbc2c
Small fixes - renamed review_type method inside delete o delete_revie…
JasmineMadonna Mar 30, 2020
0e65079
Merge branch 'beta' of https://github.com/hosungh/expertiza into beta
DanielleHancock Mar 30, 2020
b90becc
fix incorrect comments
Mar 30, 2020
de1976c
Refactor the LotteryController class
uiz-11 Mar 30, 2020
afac0d5
Make suggested changes after team review
uiz-11 Mar 30, 2020
51cfc75
Simplify construct_user_bidding_info, remove_user_from_previous_team,…
uiz-11 Mar 30, 2020
047bfdf
Add comments and fix styling issues
uiz-11 Mar 30, 2020
0572b06
Set up the test environment with helper objects
uiz-11 Mar 30, 2020
b73aa30
Add Bid class to the factories file
uiz-11 Mar 30, 2020
3bcc867
Add a new line to the end of each file
uiz-11 Mar 30, 2020
178c0d8
renamed rev_q_ids to questionnaire_ids
JasmineMadonna Mar 30, 2020
2c6ec28
Add test for merge_bids_from_different_previous_teams method
uiz-11 Mar 30, 2020
d716423
Fixed error where Edit Assignment > Topics page always said that book…
DanielleHancock Mar 30, 2020
c90053a
remove_user_from previous_team test
Mar 30, 2020
252553a
remove_empty_teams test
Mar 30, 2020
4a285d0
assign_available_slots test
Mar 30, 2020
da4a6ee
Export field refactored
rajan3010 Mar 30, 2020
efeebce
Merge branch 'E2009_Refactor_assignment' of https://github.com/Jasmin…
rajan3010 Mar 31, 2020
79748a4
Merge pull request #20 from hosungh/eric-add-comments
epeden Mar 31, 2020
3ced128
Merge pull request #24 from hosungh/danielle-develop
epeden Mar 31, 2020
5661437
add action_allowed? test
carlklier Mar 31, 2020
1fc3d40
add construct_user_bidding_info test
carlklier Mar 31, 2020
8f86bbd
add create_new_teams_for_bidding_response test
carlklier Mar 31, 2020
549d158
add run_intelligent_assignment test
carlklier Mar 31, 2020
9eb654e
add construct_teams_bidding_info test
carlklier Mar 31, 2020
b3901ce
add match_new_teams_to_topics test
carlklier Mar 31, 2020
df3c4df
Add edge cases for run_intelligent_assignment and action_allowed? met…
uiz-11 Mar 31, 2020
36c964c
add unit tests
Mar 31, 2020
13956ce
remove unnecessary assertion
Mar 31, 2020
55a0a3e
Merge pull request #25 from hosungh/eric-unit-tests
epeden Mar 31, 2020
d206704
Add tests for bookmarks_controller
Mar 31, 2020
52f081f
adding changes to beta branch
ramyananth Mar 31, 2020
eace40d
moved hash to an actual value
ramyananth Mar 31, 2020
50c5f95
Changed simple if-else to ternary operator in 2 places. renamed rev_q…
JasmineMadonna Mar 31, 2020
c2a3f5e
Bug fix for course in insure_course_participants method
ushvarma Mar 31, 2020
5fdd7a4
Refactor lottery_controller_spec.rb
uiz-11 Mar 31, 2020
573542c
Add edge case for match_new_teams_to_topics method
uiz-11 Mar 31, 2020
80ab1be
Further reduce LoC
uiz-11 Mar 31, 2020
ca075d1
Retry adding tests for match_new_teams_to_topics methods
uiz-11 Mar 31, 2020
025178d
Make the last formatting changes
uiz-11 Mar 31, 2020
9824d0b
refactored a part in response_map_to_metareviews function
rajan3010 Mar 31, 2020
46d6c93
Reverting previous 2 commits. Last commit had conflicts and destroyed…
JasmineMadonna Mar 31, 2020
96abe8f
The checking condition for peer review score
ushvarma Mar 31, 2020
e90fe45
Make subtle revision to the edge case testing
uiz-11 Mar 31, 2020
ece4c44
Fix spacing issues
uiz-11 Mar 31, 2020
9a7f994
Updated variable names
JayalakshmiV Mar 31, 2020
a401fe6
Fix styling issues
uiz-11 Mar 31, 2020
f4676a4
Added comments to each method
JayalakshmiV Mar 31, 2020
fb7b3ac
change gemfile.lock and schema.rb to expertiza original repo beta branch
guoyiwang Mar 31, 2020
b4b3199
Merge branch 'beta' of https://github.com/hosungh/expertiza into hosu…
Mar 31, 2020
2ba066e
Delete duplicate entry in factory
Mar 31, 2020
dc5a7d8
Refactored response_map_to_metareview further. Extracted a method out…
JasmineMadonna Mar 31, 2020
e20fa7e
Merge pull request #26 from hosungh/hosungh-develop
hosungh Mar 31, 2020
5beec7b
Added one more test group for bookmarks_controller spec
Mar 31, 2020
f9c2b1d
Merge pull request #27 from hosungh/hosungh-develop
epeden Mar 31, 2020
1aaee9b
Improved the checking condition for peer review score
ushvarma Mar 31, 2020
d30320e
Fix for travis build failing. Added a check before each loop
JasmineMadonna Mar 31, 2020
b2a8466
add rspec tests for sign_up_sheet
DanielleHancock Mar 31, 2020
370f063
Merge branch 'beta' into danielle-develop
DanielleHancock Mar 31, 2020
d14d574
In the course hash if no couse participant there cannot be any topic …
ushvarma Mar 31, 2020
4f7a060
Reverted a refactoring done with delete method
JasmineMadonna Mar 31, 2020
fef94cf
Comments have been added at the appropriate lines
ushvarma Apr 1, 2020
29c61be
Added some comments
JasmineMadonna Apr 1, 2020
b4a789b
add bookmark list tests
Apr 1, 2020
058f99d
Test for bookmark_rating_response_map model
Apr 1, 2020
7bb0b78
Merge pull request #28 from hosungh/eric-feature-tests
epeden Apr 1, 2020
aa478eb
Merge pull request #29 from hosungh/hosungh-develop
hosungh Apr 1, 2020
8418677
remove commented out block
Apr 1, 2020
ecb27d3
Merge pull request #30 from hosungh/eric-feature-tests
epeden Apr 1, 2020
a699629
Added the testing condition for Insuring existence of course particip…
ushvarma Apr 1, 2020
8957b25
add bookmark review test
Apr 1, 2020
fc448b8
remove commented out line
Apr 1, 2020
1061b0f
remove unnecessary constant
Apr 1, 2020
6f5f684
Merge pull request #31 from hosungh/bookmark-review-test
epeden Apr 1, 2020
ca23c55
Merge branch 'beta' into danielle-develop
DanielleHancock Apr 1, 2020
cf88344
added test case for assignment_grade_summary for times when they have…
ramyananth Apr 1, 2020
ed37d02
Delete .gitignore
DanielleHancock Apr 1, 2020
2ebc343
Merge pull request #31 from hosungh/bookmark-review-test
epeden Apr 1, 2020
90c629f
Change .gitignore to match expertiza/beta
DanielleHancock Apr 1, 2020
0763c2f
Merge pull request #32 from hosungh/danielle-develop
DanielleHancock Apr 1, 2020
2f5c2b3
Update assessment360_controller.rb
ramyananth Apr 1, 2020
66a59c5
Update assessment360_controller.rb
ramyananth Apr 1, 2020
4684dd9
Remove comments from insure_existence_of and assignment_grade_summary
ramyananth Apr 1, 2020
cd3e8d8
Added comments for export
rajan3010 Apr 1, 2020
7a3dec8
Merge branch 'E2009_Refactor_assignment' of https://github.com/Jasmin…
Apr 1, 2020
f00dded
DELETE_INSTANCES constant changed to variable and brough it insude de…
JasmineMadonna Apr 1, 2020
40be5cd
initial commit
Apr 18, 2020
f8dcd43
Init PR commit
ridem-gituser Apr 18, 2020
6e97eab
Adding migration to response_maps table: visibility feild
SujalAhrodia Apr 18, 2020
480875a
Revert "Adding migration to response_maps table: visibility feild"
SujalAhrodia Apr 18, 2020
50289b0
Adding migration to response_maps (visibility column)
SujalAhrodia Apr 19, 2020
70fe48b
try to fix travis CI build
Apr 20, 2020
2282868
Added start time function to response.html.erb
leroyboy12 Apr 20, 2020
61f824c
removal of accidental whitespaces in response.html.erb
leroyboy12 Apr 20, 2020
7f3c329
Added end time function to response.html.erb
leroyboy12 Apr 20, 2020
2e534a6
Added set inerval to jQuery
leroyboy12 Apr 20, 2020
f7c0203
Initial commit
Apr 20, 2020
6983933
added JS logic to submitted files erb for marking time of external files
littlekahunalifts Apr 20, 2020
3c67df9
Fixed travis CI error
Apr 20, 2020
2d04ce2
added submissionViewingEvents model
Apr 20, 2020
ec65e7a
push model autogenerated files
Apr 20, 2020
7bcbd26
added SubmissionViewingEvents controller
Apr 20, 2020
0586c23
added methods to SubmissionViewingEvents controller
Apr 20, 2020
fc20476
edited routes to ahve route for viewing external links
littlekahunalifts Apr 20, 2020
fd52216
Merge branch 'E2023_2' of https://github.com/jamcdon3/expertiza into …
littlekahunalifts Apr 20, 2020
53d0ee7
added to routes for viewing external link times
littlekahunalifts Apr 20, 2020
7029b4f
Adding consent checkbox to the response view
SujalAhrodia Apr 21, 2020
0f53573
reverted response_controller.rb for travis
littlekahunalifts Apr 21, 2020
d9e0b27
redoing changes for submitted_content/_main.html.erb
littlekahunalifts Apr 21, 2020
d67c6ef
Addition of hidden field tags for form in response.html.erb
leroyboy12 Apr 21, 2020
f75a1f6
Added submission check to ensure reviewer is still working on review
leroyboy12 Apr 21, 2020
ac0d5b3
Added logic to set submission check to false in view.html.erb
leroyboy12 Apr 21, 2020
1a72cd8
Created submission vieiwing events index page
leroyboy12 Apr 21, 2020
ecb8232
Created edit view form submission viewing events controller
leroyboy12 Apr 21, 2020
6909264
Created partial form for submission viewing events controller
leroyboy12 Apr 21, 2020
db79062
Adding migration to response table and removing earlier from response…
SujalAhrodia Apr 21, 2020
6a2e246
Added checkbox in response/view and script to update 'visibility' value
SujalAhrodia Apr 21, 2020
a088065
Added toggle method in response controller to update visibility
SujalAhrodia Apr 21, 2020
a20e381
Added route to update visibility
SujalAhrodia Apr 21, 2020
fd1cc5f
Removing migration to response_maps
SujalAhrodia Apr 21, 2020
43af3ee
Added method is_visibility_public? in review_mapping_helper.rb.
JasmineMadonna Apr 21, 2020
ad042ca
edited views/submitted_content/_hyperlink...erb to ensure users click…
littlekahunalifts Apr 21, 2020
2b59b58
Changed method name is_visibility_public? to visibility_public?
JasmineMadonna Apr 21, 2020
9349138
Add sample_reviews table
khotAyush Apr 21, 2020
4c8d129
Merge pull request #18 from khotAyush/e2022-sub/dbresponsemap
khotAyush Apr 21, 2020
92402c6
remove duplicate id key
khotAyush Apr 22, 2020
519ac10
Merge pull request #19 from khotAyush/e2022-sub/dbresponsemap
khotAyush Apr 22, 2020
8673424
Added comments in the script section
SujalAhrodia Apr 22, 2020
561e67a
Renamed toggle function and updated route
SujalAhrodia Apr 22, 2020
7254819
Merge pull request #20 from khotAyush/feature1
SujalAhrodia Apr 22, 2020
fd49c13
Merge pull request #17 from khotAyush/e2022_instructor_selection
JasmineMadonna Apr 22, 2020
d39e588
Modified review report views. Now a tick mark in team reviewed column…
JasmineMadonna Apr 22, 2020
2430f5d
Merge pull request #21 from khotAyush/e2022_instructor_selection
JasmineMadonna Apr 22, 2020
ae749a0
made changes to _review_report to reflect changes in reports_controller
Sattlert2 Apr 22, 2020
d9c229e
added a viewer for reports controller
Sattlert2 Apr 22, 2020
fdb91d5
Replaced line 55 in view_review_scores_popup to find the team through…
Sattlert2 Apr 22, 2020
321257b
updated line 32 to incorporate file link from class
Sattlert2 Apr 22, 2020
a5c7bbf
created show.html.haml for submission viewing events to enable dynami…
Sattlert2 Apr 22, 2020
35657ed
Created new.html.haml for submission_viewing_events to enable dynamic…
Sattlert2 Apr 22, 2020
121ea10
delete autogenerated minitest files - not used in experiza
Apr 22, 2020
641bb62
remove not used autogenerated files from controller
Apr 22, 2020
b30d734
creat controller rspec and test record_start_time method
Apr 23, 2020
85e7bbe
updated rspec and added record_end_time test
Apr 23, 2020
3a080e8
update rspec and added mark_end_time test
Apr 23, 2020
ef83737
added sample reviews controller with view
Apr 23, 2020
6049af9
Add Modal Popup for Instructor Assignemnt selection
khotAyush Apr 24, 2020
bb3a2fb
Merge pull request #25 from khotAyush/e2022-sub/smplemap
khotAyush Apr 24, 2020
3a0fd89
added embedded function for tracking window times
Apr 24, 2020
2fc8d14
fix typo
Apr 24, 2020
0d88011
Add instructor actions (Mark/unmark as sample)
khotAyush Apr 24, 2020
9147df7
Remove redundant code
khotAyush Apr 24, 2020
8cb844c
Revert init change
khotAyush Apr 25, 2020
e85c1ca
Fix public/published check
khotAyush Apr 25, 2020
56d39c9
Merge branch 'e2022/sample-reviews' of https://github.com/khotAyush/e…
khotAyush Apr 25, 2020
dbc0c9d
Added view samples from response ids into controller and view
Apr 25, 2020
d9f95f6
Merge branch 'listSampleReviews' into e2022/sample-reviews
Apr 25, 2020
9e6c681
added show view and controller with sample review ids
Apr 25, 2020
6ef1f3e
changed sample ques and view
Apr 30, 2020
0d1bc5d
Add schema (mitigate travis build failure)
khotAyush Apr 30, 2020
58f9aa2
Remove debug loggers
khotAyush Apr 30, 2020
adb8389
fix schema
khotAyush Apr 30, 2020
b8b587d
Add course name to Assignment Popup
khotAyush Apr 30, 2020
4cd9867
Update factories and failing tests for new response field
khotAyush Apr 30, 2020
ee130b7
Add rspec test for Controller
khotAyush Apr 30, 2020
1e21d31
correct spaces
khotAyush Apr 30, 2020
24c2e1c
fix spaces
khotAyush May 1, 2020
579cd2b
Fix null check
khotAyush May 1, 2020
66786f1
Merge branch 'e2022/sample-reviews' of https://github.com/khotAyush/e…
khotAyush May 1, 2020
5816b83
added index and show page tests for sample_reviews controller
May 1, 2020
0bea16f
Merge branch 'e2022/sample-reviews' of https://github.com/khotAyush/e…
May 1, 2020
6704823
rspec test for the method visibility_public? in review_mapping_helper.rb
JasmineMadonna May 1, 2020
d5b4c8c
Add threshold Constant
khotAyush May 1, 2020
7582f6c
Merge branch 'e2022/sample-reviews' of https://github.com/khotAyush/e…
khotAyush May 1, 2020
9080c67
Tick mark renamed to check mark in _review_report.html.erb
JasmineMadonna May 1, 2020
5780f43
changes with show page, sample review link and rspec test verification
May 1, 2020
85348d3
Merge branch 'e2022/sample-reviews' of https://github.com/khotAyush/e…
May 1, 2020
87584ec
fix crlf
khotAyush May 1, 2020
ff77787
Re-adding migration file
SujalAhrodia May 2, 2020
043cc3b
Revert "Re-adding migration file"
SujalAhrodia May 2, 2020
5ad17a0
Revert "Tick mark renamed to check mark in _review_report.html.erb"
khotAyush May 2, 2020
0ba48d3
rename tick mark to check mark
khotAyush May 2, 2020
655f449
Trigger build
SujalAhrodia May 2, 2020
95e0f2c
Test Commit for Travis build
SaNPai23 May 25, 2020
6a4bf77
Merge pull request #1725 from khotAyush/e2022/sample-reviews
adityag3 Jun 4, 2020
f394fa4
Merge pull request #1632 from vishva1001/beta
adityag3 Jun 5, 2020
3d29e0f
Revert "E1995. Tests for email functionality"
adityag3 Jun 8, 2020
0a4e4f1
Manual Merge conflict removal
adityag3 Jun 8, 2020
1896b54
Merge branch 'khotAyush-E2011/refactor-assignment-creation-spec' into…
adityag3 Jun 8, 2020
e3732b8
Merge pull request #1712 from carlklier/beta
adityag3 Jun 8, 2020
eb6fc76
Merge pull request #1682 from mehtasahil31/beta
adityag3 Jun 8, 2020
c7ae87a
Merge pull request #1697 from JasmineMadonna/E2009_Refactor_assignment
adityag3 Jun 8, 2020
040fc42
Merge branch 'beta' into beta
adityag3 Jun 8, 2020
0eb2079
Update 'danger' gem
Winbobob Jun 8, 2020
ee8c17d
Cherry picking Winobob's commit from master
Saurabh110 Jun 11, 2020
04ae6b8
Deleted .generators files
Saurabh110 Jun 11, 2020
cb16bf7
Merge pull request #1694 from SujalAhrodia/beta
adityag3 Jun 12, 2020
af8dbab
Merge pull request #1713 from ramyananth/beta
adityag3 Jun 12, 2020
739fce2
Merge branch 'beta' into revert-1632-beta
adityag3 Jun 12, 2020
851d7ab
Merge pull request #1736 from expertiza/revert-1632-beta
adityag3 Jun 12, 2020
cbd8684
Merge pull request #1633 from theSaurabhMhatre/beta
adityag3 Jun 15, 2020
7c1a1ef
Merge branch 'beta' into beta
adityag3 Jun 17, 2020
54ab8a3
Merge pull request #1643 from smyoder/beta
adityag3 Jun 17, 2020
8b7b694
Merge branch 'beta' into beta
adityag3 Jun 17, 2020
d3f2787
Merge pull request #1685 from sandeepkundala/beta
adityag3 Jun 19, 2020
cc3c418
Merge pull request #1512 from Bharat23/beta
adityag3 Jun 19, 2020
661ff39
Merge branch 'beta' into beta
adityag3 Jun 19, 2020
cd78228
Merge pull request #1515 from eerxuan/beta
adityag3 Jun 20, 2020
65f04ba
Merge branch 'beta' into beta
adityag3 Jun 22, 2020
67ab7f1
Merge pull request #1562 from pururaj1908/beta
adityag3 Jun 22, 2020
15d5f05
Update export_file_controller.rb
adityag3 Jun 22, 2020
99fa36a
Merge pull request #1533 from RoshaniN/beta
adityag3 Jun 22, 2020
cdf3e00
Update user.rb
adityag3 Jun 22, 2020
806231d
Update users_controller.rb
adityag3 Jun 22, 2020
066f4e8
Merge pull request #1561 from urvishvasani/beta
adityag3 Jun 24, 2020
b5f1980
Merge pull request #1542 from aranne/beta
adityag3 Jun 24, 2020
b676ee0
Revert "E1966. Partials"
adityag3 Jun 24, 2020
7d66ef2
Merge pull request #1743 from expertiza/revert-1542-beta
adityag3 Jun 24, 2020
e227af7
Merge branch 'beta' into E2023_2
adityag3 Jun 24, 2020
67a937a
Updated travis.yml
Saurabh110 Jun 24, 2020
e037bf7
Revert travis.yml update
Saurabh110 Jun 24, 2020
086ea8b
Updated schema.rb
Saurabh110 Jun 24, 2020
b7a2461
Merge pull request #1728 from jamcdon3/E2023_2
adityag3 Jun 25, 2020
4d08e90
Merge pull request #1704 from hosungh/beta
adityag3 Jun 26, 2020
bfaac2c
Merge pull request #1536 from binpatel31/ISSUE-1961
adityag3 Jun 28, 2020
68e8c8d
Changing to original test
adityag3 Jun 28, 2020
f69c34a
Merge branch 'beta' into E1946
adityag3 Jun 28, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions .generators
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<Settings><!--This file was automatically generated by Ruby plugin.
You are allowed to:
1. Reorder generators
2. Remove generators
3. Add installed generators
To add new installed generators automatically delete this file and reload the project.
--><GeneratorsGroup><Generator name="active_record:migration" /><Generator name="active_record:model" /><Generator name="active_record:observer" /><Generator name="active_record:session_migration" /><Generator name="controller" /><Generator name="erb:controller" /><Generator name="erb:mailer" /><Generator name="erb:scaffold" /><Generator name="generator" /><Generator name="helper" /><Generator name="integration_test" /><Generator name="mailer" /><Generator name="metal" /><Generator name="migration" /><Generator name="model" /><Generator name="model_subclass" /><Generator name="observer" /><Generator name="performance_test" /><Generator name="plugin" /><Generator name="resource" /><Generator name="scaffold" /><Generator name="scaffold_controller" /><Generator name="session_migration" /><Generator name="stylesheets" /><Generator name="test_unit:controller" /><Generator name="test_unit:helper" /><Generator name="test_unit:integration" /><Generator name="test_unit:mailer" /><Generator name="test_unit:model" /><Generator name="test_unit:observer" /><Generator name="test_unit:performance" /><Generator name="test_unit:plugin" /><Generator name="test_unit:scaffold" /></GeneratorsGroup></Settings>
7 changes: 7 additions & 0 deletions .rakeTasks
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Settings><!--This file was automatically generated by Ruby plugin.
You are allowed to:
1. Remove rake task
2. Add existing rake tasks
To add existing rake tasks automatically delete this file and reload the project.
--><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ gem 'activesupport', '~> 4.2.11.1'
gem 'airbrake'
gem 'awesome_nested_set'
gem 'bind-it'
gem 'bootstrap3-datetimepicker-rails', '~> 4.17.47'
gem 'capistrano'
gem 'capistrano-bundler'
gem "capistrano-db-tasks", require: false
Expand All @@ -18,7 +19,7 @@ gem 'capistrano-rvm'
gem 'chartjs-ror'
gem 'coffee-rails'
gem 'coveralls', require: false
gem 'danger', git: 'https://github.com/Winbobob/danger.git', ref: '6df469a', require: false
gem 'danger', git: 'https://github.com/Winbobob/danger.git', ref: 'a2fe557209879642615473ee9919788fc650be75', require: false
gem 'delayed_job_active_record'
gem 'dynamic_form'
gem 'edavis10-ruby-web-search'
Expand All @@ -38,6 +39,7 @@ gem 'jquery-tablesorter'
gem 'jquery-ui-sass-rails'
gem 'json'
gem 'lingua'
gem 'momentjs-rails', '>= 2.9.0'
gem 'mysql2'
gem 'nokogiri'
gem 'omniauth-google-oauth2'
Expand Down
27 changes: 18 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
GIT
remote: https://github.com/Winbobob/danger.git
revision: 6df469a1c1359ea06ce7ba7eccd4a0ad73a9efdb
ref: 6df469a
revision: a2fe557209879642615473ee9919788fc650be75
ref: a2fe557209879642615473ee9919788fc650be75
specs:
danger (5.8.0)
danger (5.16.1)
claide (~> 1.0)
claide-plugins (>= 0.9.2)
colored2 (~> 3.1)
Expand Down Expand Up @@ -95,6 +95,8 @@ GEM
execjs (~> 2.0)
bind-it (0.2.7)
rjb (~> 1.4.3)
bootstrap3-datetimepicker-rails (4.17.47)
momentjs-rails (>= 2.8.1)
builder (3.2.3)
capistrano (3.10.1)
airbrussh (>= 1.0.0)
Expand Down Expand Up @@ -125,7 +127,7 @@ GEM
rails (>= 3.1)
childprocess (0.8.0)
ffi (~> 1.0, >= 1.0.11)
claide (1.0.2)
claide (1.0.3)
claide-plugins (0.9.2)
cork
nap
Expand Down Expand Up @@ -194,7 +196,8 @@ GEM
gchartrb (0.8)
gdata (1.1.2)
gherkin (5.0.0)
git (1.5.0)
git (1.7.0)
rchardet (~> 1.8)
globalid (0.4.2)
activesupport (>= 4.2.0)
googlecharts (1.6.12)
Expand Down Expand Up @@ -276,6 +279,8 @@ GEM
mini_mime (1.0.1)
mini_portile2 (2.4.0)
minitest (5.11.3)
momentjs-rails (2.20.1)
railties (>= 3.1)
morpher (0.2.6)
abstract_type (~> 0.0.7)
adamantium (~> 0.2.0)
Expand Down Expand Up @@ -326,7 +331,8 @@ GEM
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
octokit (4.13.0)
octokit (4.18.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
omniauth (1.8.1)
hashie (>= 3.4.6, < 3.6.0)
Expand Down Expand Up @@ -403,6 +409,7 @@ GEM
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rb-readline (0.5.5)
rchardet (1.8.0)
react-rails (1.11.0)
babel-transpiler (>= 0.7.0)
connection_pool
Expand Down Expand Up @@ -487,9 +494,9 @@ GEM
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
sawyer (0.8.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
scrypt (2.1.1)
ffi-compiler (>= 0.0.2)
rake
Expand Down Expand Up @@ -582,6 +589,7 @@ DEPENDENCIES
airbrake
awesome_nested_set
bind-it
bootstrap3-datetimepicker-rails (~> 4.17.47)
capistrano
capistrano-bundler
capistrano-db-tasks
Expand Down Expand Up @@ -619,6 +627,7 @@ DEPENDENCIES
json
launchy
lingua
momentjs-rails (>= 2.9.0)
mutant-rspec
mysql2
nokogiri
Expand Down
2 changes: 2 additions & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
//= require awesome_input
//= require jquery-bar-rating/jquery.barrating
//= require Chart.min
//= require moment
//= require bootstrap-datetimepicker
// Eliminate the “element.dispatchEvent is not a function” error
jQuery.noConflict();

Expand Down
73 changes: 73 additions & 0 deletions app/assets/javascripts/team_users_popup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
$(document).ready(function () {
$('#dialogConfirmMark').dialog({
autoOpen: false
})
$('#dialogConfirmUnmark').dialog({
autoOpen: false
})
});

function publish_example_review(bid) {
$("#dialogConfirmMark").dialog({
modal: true,
height: 600,
width: 500,

buttons: {
Cancel : function () {
$(this).dialog("close");
},
'Publish Sample Reviews': function() {
var array = [];
$("input:checkbox[name=published_assignments]:checked").each(function() {
array.push($(this).val());
});
$.ajax({
"url":"/sample_reviews/map/"+bid.getAttribute('data-response-id'),
"type":"POST",
"data":{
"assignments":array
},
"dataType":"json",
success:function(data, textStatus, jqXHR)
{
window.location.reload();
},
});
}}});

$('#dialogConfirmMark').dialog('open');
}

function suppress_example_review(bid) {
$("#dialogConfirmUnmark").dialog({
modal: true,
height: 600,
width: 500,

buttons: {
Cancel : function () {
$(this).dialog("close");
},
Yes: function() {
var array = [];
$("input:checkbox[name=published_assignments]:checked").each(function() {
array.push($(this).val());
});

$.ajax({
"url":"/sample_reviews/unmap/"+bid.getAttribute('data-response-id'),
"type":"POST",
"data":{
"assignments":array
},
"dataType":"json", success:function(data, textStatus, jqXHR)
{
window.location.reload();
},
});
}}});

$('#dialogConfirmUnmark').dialog('open');
}

53 changes: 52 additions & 1 deletion app/assets/javascripts/tree_display.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// initialize a global object available throughout the application
// can be useful on different pages
let app_variables = {
currentUserId: null
};

// execute the grabbing of user id after the page is fully loaded
// helps to make sure that the react component is rendered for sure
// also avoid hindering the rendering steps
window.addEventListener('load', e => {
// grab the data attribute
let treeDisplayDiv = document.querySelector('#tree_display');
// check if the html element is present requested in the query above
if (treeDisplayDiv) {
// set the userid for the current user
app_variables.currentUserId = treeDisplayDiv.dataset.userId;
}
});
jQuery(document).ready(function() {
// This preloadedImages function is refered from http://jsfiddle.net/slashingweapon/8jAeu/
// Actually I am not using the values in preloadedImages, but image loading speed is indeed getting faster
Expand Down Expand Up @@ -91,9 +109,18 @@ jQuery(document).ready(function() {
newNodeType = this.props.nodeType + "s"
}
if (this.props.is_available || newNodeType == 'questionnaires') {
// check if the user id exists
// check if the current user id matches the user/instructor id associated with a questionnaire/survey
// show edit button only for the items which are associated to that user
if (app_variables.currentUserId == null || this.props.instructor_id == app_variables.currentUserId) {
moreContent.push(
<span>
<a title="Edit" href={"/"+newNodeType+"/"+(parseInt(this.props.id)/2).toString()+"/edit"}><img src="/assets/tree_view/edit-icon-24.png" /></a>
</span>
);
}
moreContent.push(
<span>
<a title="Edit" href={"/"+newNodeType+"/"+(parseInt(this.props.id)/2).toString()+"/edit"}><img src="/assets/tree_view/edit-icon-24.png" /></a>
<a title="Delete" href={"/tree_display/confirm?id="+(parseInt(this.props.id)/2).toString()+"&nodeType="+newNodeType}><img src="/assets/tree_view/delete-icon-24.png" /></a>
</span>
)
Expand Down Expand Up @@ -310,6 +337,7 @@ jQuery(document).ready(function() {
allow_suggestions={this.props.allow_suggestions}
has_topic={this.props.has_topic}
id={id}
instructor_id = {this.props.instructor_id}
/>
</td>
</tr>
Expand All @@ -336,6 +364,7 @@ jQuery(document).ready(function() {
allow_suggestions={this.props.allow_suggestions}
has_topic={this.props.has_topic}
id={id}
instructor_id = {this.props.instructor_id}
/>
</td>
</tr>
Expand Down Expand Up @@ -381,6 +410,7 @@ jQuery(document).ready(function() {
require_quiz={entry.require_quiz}
has_topic={entry.has_topic}
dataType={_this.props.dataType}
instructor_id={entry.instructor_id}
/>)
})
}
Expand All @@ -402,6 +432,7 @@ jQuery(document).ready(function() {
require_quiz={entry.require_quiz}
has_topic={entry.has_topic}
dataType={_this.props.dataType}
instructor_id={entry.instructor_id}
/>)
})
}
Expand Down Expand Up @@ -464,6 +495,26 @@ jQuery(document).ready(function() {
expanded: false
}
},
componentDidMount: function() {
// this buffer holds the title for all of the rubric types under the Questionnaire tab
rubricBuffer = ["Review", "Metareview", "Author Feedback", "Teammate Review", "Assignment Survey", "Global Survey", "Course Survey"];

//selectedMenuItem then takes the clicked rubric from the panel under questionnaire
//selectedMenuItemIndex finds the corresponding index of the click rubric from the above buffer
selectedMenuItem = document.getElementById("tree_display").getAttribute("data-menu-item");
selectedMenuItemIndex = rubricBuffer.indexOf(selectedMenuItem);

if (selectedMenuItemIndex !== -1) {
if(rubricBuffer[selectedMenuItemIndex] === this.props.name) {
//if the name matches, expand the rubric panel by setting this property to true
this.setState({
expanded: true
}, function () {
this.props.rowClicked(this.props.id, true, this.props.newParams)
})
}
}
},
handleClick: function(event) {
//alert('click');

Expand Down
1 change: 1 addition & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ $icon-font-path: "bootstrap-sass/assets/fonts/bootstrap/";
@import "confirm_box";
@import "inner-pages";
@import "homepage";
@import 'bootstrap-datetimepicker';
2 changes: 2 additions & 0 deletions app/controllers/admin_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class AdminController < ApplicationController

def action_allowed?
case params[:action]
when 'list_instructors'
Expand Down Expand Up @@ -34,4 +35,5 @@ def show_instructor
@user = User.find(params[:id])
@role = Role.find(@user.role_id)
end

end