Skip to content

Commit 0db1903

Browse files
committed
Fix rubocop warnings
1 parent 8b8f8f0 commit 0db1903

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/services/journals/create_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def insert_data_sql(predecessor, notes, cause)
361361
# will already have been increased so nothing needs to be done.
362362
# But if any of the associated data is updated or if only a cause or note is added, the journable would
363363
# otherwise not have receive an updated timestamp.
364-
def touch_journable_sql(predecessor, notes, cause)
364+
def touch_journable_sql(predecessor, notes, cause) # rubocop:disable Metrics/AbcSize
365365
if journable.class.aaj_options[:timestamp].to_sym == :updated_at
366366
sql = <<~SQL
367367
UPDATE

spec/models/work_package/work_package_acts_as_journalized_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656

5757
# The below test was failing with the following error:
5858
# ERROR: new row for relation "journals" violates check constraint "journals_validity_period_not_empty" (PG::CheckViolation)
59-
# DETAIL: Failing row contains (1178, WorkPackage, 481, 1252, , 2025-12-04 07:58:21.028586+00, 1, 2025-12-04 07:58:21.028586+00, Journal::WorkPackageJournal, 833, {}, empty, f).
59+
# DETAIL: Failing row contains (1178, WorkPackage, 481, 1252, , 2025-12-04 07:58:21.028586+00, 1,
60+
# 2025-12-04 07:58:21.028586+00, Journal::WorkPackageJournal, 833, {}, empty, f).
6061
it "can add multiple comments right after creation" do
6162
work_package
6263
User.execute_as current_user do

0 commit comments

Comments
 (0)