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

Sj empty protocol admin view #124

Merged
merged 2 commits into from Mar 2, 2017
Merged

Conversation

Stuart-Johnson
Copy link
Collaborator

Allowing super users (any super users) to view any protocol without SUB service requests. This covers both the authorization to view them, and adding an "empty protocols" option to dashboard if you are a super user. [#140144393]

Stuart Johnson and others added 2 commits February 27, 2017 10:49
@@ -288,7 +296,7 @@ def unique_rm_id_to_protocol
sort_order = arr[1]
case sort_name
when 'id'
order("id #{sort_order.upcase}")
order("protocols.id #{sort_order.upcase}")

Choose a reason for hiding this comment

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

Looks like this might conflict with #125 @Stuart-Johnson @jwiel86

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@kyle-glick @jwiel86 Yeah, It does I think. I had to change this because just 'id' was causing an ambiguity error if the initial query had any eager loading. I'm not sure, but it looks like Hanna's pull request also addresses this with the 'protocols.id'. I think the best thing would be to merge hers in first, then I'll address conflicts with mine, and make sure it still works.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@kyle-glick @jwiel86 After investigation, looks like this shouldn't actually conflict with Hanna's stuff. Should be fine.

@Stuart-Johnson Stuart-Johnson merged commit 3a42789 into master Mar 2, 2017
@Stuart-Johnson Stuart-Johnson deleted the sj-empty_protocol_admin_view branch March 2, 2017 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants