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

Jw dashboard status bug #657

Merged
merged 6 commits into from Sep 13, 2016
Merged

Jw dashboard status bug #657

merged 6 commits into from Sep 13, 2016

Conversation

jwiel86
Copy link
Contributor

@jwiel86 jwiel86 commented Sep 1, 2016

When sorting on dashboard page, params for scopes with_status, with_organization, and with_owner were being passed in as type String rather than type Array. Also, with_owner was not being hit when sorting on dashboard. Specs were written for each scope to test both types of passed in params.

@@ -193,23 +193,26 @@ class Protocol < ActiveRecord::Base

scope :with_status, -> (status) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should rename 'status' accordingly. Perhaps statuses?

@jwiel86 jwiel86 merged commit d0cdf6e into master Sep 13, 2016
@jwiel86 jwiel86 deleted the jw_dashboard_status_bug branch September 13, 2016 15:16
ying-pbrc added a commit to PBRCDev/sparc-request that referenced this pull request Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants