0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-10-18 11:52:39 +02:00

DEV: Don't raise exception if group cannot be found

Dieser Commit ist enthalten in:
Angus McLeod 2024-10-01 08:46:14 +02:00
Ursprung 1f3fe7a923
Commit 051184a4e1
2 geänderte Dateien mit 65 neuen und 22 gelöschten Zeilen

Datei anzeigen

@ -1,36 +1,79 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
activesupport (7.2.1)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
ast (2.4.2) ast (2.4.2)
json (2.6.2) base64 (0.2.0)
parallel (1.22.1) bigdecimal (3.1.8)
parser (3.1.2.1) concurrent-ruby (1.3.4)
connection_pool (2.4.1)
drb (2.2.1)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
json (2.7.2)
language_server-protocol (3.17.0.3)
logger (1.6.1)
minitest (5.25.1)
parallel (1.26.3)
parser (3.3.5.0)
ast (~> 2.4.1) ast (~> 2.4.1)
racc
racc (1.8.1) racc (1.8.1)
rack (3.1.7)
rainbow (3.1.1) rainbow (3.1.1)
regexp_parser (2.6.0) regexp_parser (2.9.2)
rexml (3.2.5) rubocop (1.66.1)
rubocop (1.36.0)
json (~> 2.3) json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 3.1.2.1) parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0) rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0) regexp_parser (>= 2.4, < 3.0)
rexml (>= 3.2.5, < 4.0) rubocop-ast (>= 1.32.2, < 2.0)
rubocop-ast (>= 1.20.1, < 2.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0) unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.22.0) rubocop-ast (1.32.3)
parser (>= 3.1.1.0) parser (>= 3.3.1.0)
rubocop-discourse (3.0) rubocop-capybara (2.21.0)
rubocop (>= 1.1.0) rubocop (~> 1.41)
rubocop-rspec (>= 2.0.0) rubocop-discourse (3.8.1)
rubocop-rspec (2.13.2) activesupport (>= 6.1)
rubocop (~> 1.33) rubocop (>= 1.59.0)
ruby-progressbar (1.11.0) rubocop-capybara (>= 2.0.0)
unicode-display_width (2.3.0) rubocop-factory_bot (>= 2.0.0)
rubocop-rails (>= 2.25.0)
rubocop-rspec (>= 3.0.1)
rubocop-rspec_rails (>= 2.30.0)
rubocop-factory_bot (2.26.1)
rubocop (~> 1.61)
rubocop-rails (2.26.2)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.52.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rspec (3.0.5)
rubocop (~> 1.61)
rubocop-rspec_rails (2.30.0)
rubocop (~> 1.61)
rubocop-rspec (~> 3, >= 3.0.1)
ruby-progressbar (1.13.0)
securerandom (0.3.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.6.0)
PLATFORMS PLATFORMS
arm64-darwin-23
ruby ruby
DEPENDENCIES DEPENDENCIES
@ -38,4 +81,4 @@ DEPENDENCIES
rubocop-discourse rubocop-discourse
BUNDLED WITH BUNDLED WITH
2.2.16 2.5.18

Datei anzeigen

@ -401,7 +401,7 @@ class CustomWizard::Action
if groups.present? if groups.present?
groups.each do |group_id| groups.each do |group_id|
group = Group.find(group_id) if group_id group = Group.find_by(id: group_id) if group_id
result = group.add(user) if group result = group.add(user) if group
end end
end end