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

KG - Dashboard Visit Groups Controller Specs / Day Validation Bug #8

Merged
merged 8 commits into from Jan 19, 2017

Conversation

kayla-glick
Copy link

No description provided.

@@ -31,7 +31,17 @@ def update
if @visit_group.update_attributes(visit_group_params)
render nothing: true
else
render json: @visit_group.errors, status: :unprocessable_entity
if @visit_group.day.nil?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add a comment explaining what this is doing, since this is a little out of the ordinary.

@@ -102,8 +102,11 @@ test:
root_url: /
dashboard_link: /dashboard
research_master_link: 'https://research-master-staging.musc.edu/'
<<<<<<< HEAD

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be resolved.

@visit_group = nil

# This is an intruder
flash[:alert] = 'You are not allowed to access that Visit Group.'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be localized

before_action :find_visit_group, only: [:update, :destroy]

before_action :find_visit_group, only: [:update, :destroy]
before_filter :find_service_request
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before_action is new syntax

@schedule_tab = params[:schedule_tab]
@arm = params[:arm_id].present? ? Arm.find(params[:arm_id]) : @protocol.arms.first
@visit_group = VisitGroup.new()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need parenthesis

@kayla-glick
Copy link
Author

NOTE When this is merged, please also deliver https://www.pivotaltracker.com/story/show/135552501 as requested by Wenjun

@jleonardw9 jleonardw9 merged commit 4e727bb into master Jan 19, 2017
@jleonardw9 jleonardw9 deleted the kg-dashboard_visit_groups_controller_specs branch January 19, 2017 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants