From 7fbf1395043e3e880adc79fc2c59757af39c3943 Mon Sep 17 00:00:00 2001 From: kevinrobinson Date: Fri, 23 Aug 2019 13:16:37 -0400 Subject: [PATCH 1/2] Educator home page view: Show missing_from_last_export --- app/controllers/educators_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/educators_controller.rb b/app/controllers/educators_controller.rb index 8ce28fb57e..36e3b98a77 100644 --- a/app/controllers/educators_controller.rb +++ b/app/controllers/educators_controller.rb @@ -28,6 +28,7 @@ def show :schoolwide_access, :districtwide_access, :grade_level_access, + :missing_from_last_export, :admin ], :methods => [:labels], From 92e2840b965e64b1762bbc638c5a19d44af245a4 Mon Sep 17 00:00:00 2001 From: kevinrobinson Date: Tue, 27 Aug 2019 15:58:14 -0400 Subject: [PATCH 2/2] Include active, and update spec --- app/controllers/educators_controller.rb | 5 ++++- spec/controllers/educators_controller_spec.rb | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/controllers/educators_controller.rb b/app/controllers/educators_controller.rb index 36e3b98a77..570b46af46 100644 --- a/app/controllers/educators_controller.rb +++ b/app/controllers/educators_controller.rb @@ -31,7 +31,10 @@ def show :missing_from_last_export, :admin ], - :methods => [:labels], + :methods => [ + :active?, + :labels + ], :include => { :school => { :only => [:id, :name] }, :sections => { diff --git a/spec/controllers/educators_controller_spec.rb b/spec/controllers/educators_controller_spec.rb index 8d2ba5e528..9c21b2f128 100644 --- a/spec/controllers/educators_controller_spec.rb +++ b/spec/controllers/educators_controller_spec.rb @@ -20,6 +20,8 @@ def make_request_for_uri(educator) "email"=>"uri@demo.studentinsights.org", "admin"=>true, "full_name"=>"Disney, Uri", + "active?"=>true, + "missing_from_last_export"=>false, "staff_type"=>"Administrator", "schoolwide_access"=>true, "grade_level_access"=>[],