Skip to content

Commit

Permalink
Merge pull request #657 from ChicagoWorldcon/stag-diff-dropped-people
Browse files Browse the repository at this point in the history
ignore declined to drop (and vice versa) in the drop report (2.0.1)
  • Loading branch information
Gailbear authored Aug 19, 2022
2 parents 209b8f0 + 2fb45cf commit 10f7999
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/services/change_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def self.dropped_people(from:, to: nil)
changes = get_changes(clazz: Audit::PersonVersion, type: Person, from: from, to: to)
changes.each do |id, change|
if change[:changes]['con_state'] && ['declined', 'rejected'].include?(change[:changes]['con_state'][1] )
# do not count a "dropped" state to another dropped state
next if ['declined', 'rejected'].include?(change[:changes]['con_state'][0]

res.append [change[:object].published_name]
end
end
Expand Down

0 comments on commit 10f7999

Please sign in to comment.