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

Consider having valuator group as having valuator #1791

Merged
merged 1 commit into from
Jan 9, 2019
Merged

Conversation

javierm
Copy link

@javierm javierm commented Jan 2, 2019

Objectives

Make the tab "without valuator" really mean "without valuator nor valuator group", just as expected by administrators.

Does this PR need a Backport to CONSUL?

Yes.

So under the tab "without valuator" we don't show investments assigned
to a valuator group, just as expected by administrators.
@@ -63,7 +63,8 @@ class Investment < ActiveRecord::Base

scope :valuation_open, -> { where(valuation_finished: false) }
scope :without_admin, -> { valuation_open.where(administrator_id: nil) }
scope :without_valuator, -> { valuation_open.where(valuator_assignments_count: 0) }
scope :without_valuator_group, -> { where(valuator_group_assignments_count: 0) }
scope :without_valuator, -> { valuation_open.without_valuator_group.where(valuator_assignments_count: 0) }

Choose a reason for hiding this comment

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

Metrics/LineLength: Line is too long. [121/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants