change_manager 0.1.2 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04869266d59b398a40c9cfc421769bf7c9177dc4
|
4
|
+
data.tar.gz: 60950b44a16edaa95b8ed7015f55a9b0c11ac151
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3a30a6561ee6c5f3e38231269e50f7f877ab08920e5e6c901415615e9fd4e39a2ed66bf82f9bf1eb43cc670a0c244e5851e46e6fbbc6227e83bb1ba800fc324
|
7
|
+
data.tar.gz: c661dc1f0a1fd3b897634d149c0df4d7fe023a5746895dad498d927db3c6199ef9d512799f6847acc8196af9a3d90c01b885d7f790d84585d66907fc319e3970
|
@@ -3,7 +3,7 @@ module ChangeManager
|
|
3
3
|
def self.queue_change(owner, change_type, context, target)
|
4
4
|
change_id = Change.new_change(owner, change_type, context, target)
|
5
5
|
# Resque.enqueue(MakeChange, change_id)
|
6
|
-
Resque.enqueue_in(
|
6
|
+
Resque.enqueue_in(5.minutes, ChangeManager::BeginChange, change_id)
|
7
7
|
end
|
8
8
|
|
9
9
|
def self.process_change(change_id)
|
@@ -33,6 +33,7 @@ module ChangeManager
|
|
33
33
|
if change.inverse_of?(next_change)
|
34
34
|
change.cancel
|
35
35
|
next_change.cancel
|
36
|
+
puts 'cancelled inverse changes ' + change.change_type + ' and ' + next_change.change_type
|
36
37
|
similar_changes.delete_if { |change| change.cancelled? }
|
37
38
|
end
|
38
39
|
end
|
@@ -8,14 +8,14 @@ module ChangeManager
|
|
8
8
|
queued_change.should be_true
|
9
9
|
end
|
10
10
|
end
|
11
|
-
describe '#
|
11
|
+
describe '#process_change' do
|
12
12
|
let(:cancelled_change) { FactoryGirl.create(:change, cancelled: true)}
|
13
13
|
let(:change) { FactoryGirl.create(:change) }
|
14
14
|
it 'should do nothing if initial change is cancelled' do
|
15
|
-
Manager.
|
15
|
+
Manager.process_change(cancelled_change.id).should be_nil
|
16
16
|
end
|
17
17
|
it 'should execute if initial change isn\'t cancelled' do
|
18
|
-
Manager.
|
18
|
+
Manager.process_change(change.id).should_not be_nil
|
19
19
|
end
|
20
20
|
end
|
21
21
|
describe '#group_similar_changes:' do
|
data/spec/testapp/log/test.log
CHANGED
@@ -672,3 +672,306 @@ The Scholar@UC team
|
|
672
672
|
[1m[35m (0.1ms)[0m rollback transaction
|
673
673
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
674
674
|
[1m[35m (0.0ms)[0m rollback transaction
|
675
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
676
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
677
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
678
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
679
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
680
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
681
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
682
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
683
|
+
[1m[36mSQL (32.7ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
684
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
685
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
686
|
+
[1m[35m (0.1ms)[0m begin transaction
|
687
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
688
|
+
[1m[35m (0.1ms)[0m begin transaction
|
689
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
690
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
691
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
692
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
693
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
694
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
695
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
696
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
697
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
698
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
699
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
700
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
701
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "test"], ["target", "testemail@gmail.com"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
702
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
703
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
704
|
+
[1m[35m (0.1ms)[0m begin transaction
|
705
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
706
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
707
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
708
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
709
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
710
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
711
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
712
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
713
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
714
|
+
[1m[35m (0.1ms)[0m begin transaction
|
715
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
716
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
717
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
718
|
+
[1m[35mChangeManager::Change Load (0.1ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
|
719
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
720
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
721
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
722
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
|
723
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
724
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target2"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
725
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
726
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
|
727
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
728
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner1"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
729
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
730
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
|
731
|
+
[1m[36mChangeManager::Change Load (0.2ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'[0m
|
732
|
+
[1m[35m (1.3ms)[0m rollback transaction
|
733
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
734
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
735
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
736
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
737
|
+
[1m[36mChangeManager::Change Load (0.1ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 1]]
|
738
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
739
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
740
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
741
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 2]]
|
742
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
743
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
744
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
745
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 3]]
|
746
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
747
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 2[0m [["cancelled", true], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
748
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
749
|
+
[1m[36mChangeManager::Change Load (0.1ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'[0m
|
750
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
751
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
752
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
753
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
754
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
755
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 1]]
|
756
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
757
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
758
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
759
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 2]]
|
760
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
761
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
762
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
763
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 3]]
|
764
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
765
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
766
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
767
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 4]]
|
768
|
+
[1m[35mChangeManager::Change Load (0.1ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
|
769
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
770
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
771
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
772
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
773
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4[0m [["cancelled", true], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
774
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
775
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
776
|
+
[1m[35m (0.0ms)[0m begin transaction
|
777
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
778
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
779
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
780
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
|
781
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
782
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
783
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
784
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
|
785
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
786
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
787
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
788
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
|
789
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
790
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
791
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
792
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
|
793
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
794
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:50:24 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
795
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
796
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 5]]
|
797
|
+
[1m[36mChangeManager::Change Load (0.1ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'[0m
|
798
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
799
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3[0m [["cancelled", true], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
800
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
801
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
802
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Mon, 23 May 2016 14:50:24 UTC +00:00]]
|
803
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
804
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
805
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
806
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
807
|
+
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "test"], ["target", "testemail@gmail.com"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
808
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
809
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
810
|
+
[1m[35m (0.1ms)[0m begin transaction
|
811
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
812
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
813
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
814
|
+
[1m[35mChangeManager::Change Load (0.1ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
|
815
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
816
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
817
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
818
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
|
819
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
820
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target2"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
821
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
822
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
|
823
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
824
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner1"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
825
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
826
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
|
827
|
+
[1m[36mChangeManager::Change Load (0.1ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'[0m
|
828
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
829
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
830
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
831
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
832
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
833
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 1]]
|
834
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
835
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
836
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
837
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 2]]
|
838
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
839
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
840
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
841
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 3]]
|
842
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
843
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
844
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
845
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 4]]
|
846
|
+
[1m[35mChangeManager::Change Load (0.1ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
|
847
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
848
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
849
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
850
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
851
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4[0m [["cancelled", true], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
852
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
853
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
854
|
+
[1m[35m (0.1ms)[0m begin transaction
|
855
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
856
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
857
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
858
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
|
859
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
860
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
861
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
862
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
|
863
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
864
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
865
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
866
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
|
867
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
868
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
869
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
870
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
|
871
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
872
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
873
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
874
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 5]]
|
875
|
+
[1m[36mChangeManager::Change Load (0.1ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'[0m
|
876
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
877
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3[0m [["cancelled", true], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
878
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
879
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
880
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
881
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
882
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
883
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
884
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
885
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
886
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
887
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 1]]
|
888
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
889
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
890
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
891
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 2]]
|
892
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
893
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
894
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
895
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 3]]
|
896
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
897
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 2[0m [["cancelled", true], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
898
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
899
|
+
[1m[36mChangeManager::Change Load (0.1ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'[0m
|
900
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
901
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
902
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
903
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
904
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
905
|
+
[1m[36mChangeManager::Change Load (0.0ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 1]]
|
906
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
907
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
908
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
909
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
910
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
911
|
+
[1m[36mChangeManager::Change Load (0.1ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1[0m [["id", 1]]
|
912
|
+
[1m[35mChangeManager::Change Load (0.0ms)[0m SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
|
913
|
+
[1m[36mChangeManager::Change Load (0.1ms)[0m [1mSELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'email@test.com' AND "change_manager_changes"."target" = 'spec@test.com' AND "change_manager_changes"."cancelled" = 'f'[0m
|
914
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
915
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1[0m [["cancelled", true], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
916
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
917
|
+
Rendered /Users/kyle/workspace/change_manager/app/views/change_manager/notification_mailer/construct_email.html.erb (1.9ms)
|
918
|
+
|
919
|
+
Sent mail to spec@test.com (30.9ms)
|
920
|
+
Date: Mon, 23 May 2016 10:52:35 -0400
|
921
|
+
From: email@test.com
|
922
|
+
To: spec@test.com
|
923
|
+
Message-ID: <57431933ed47e_47c3febcc463be0937b2@kyles-mbp.lang.uc.edu.mail>
|
924
|
+
Subject: Updates from Scholar@UC
|
925
|
+
Mime-Version: 1.0
|
926
|
+
Content-Type: text/html;
|
927
|
+
charset=UTF-8
|
928
|
+
Content-Transfer-Encoding: 7bit
|
929
|
+
|
930
|
+
<!-- mailer template here -->
|
931
|
+
<div>
|
932
|
+
Dear Scholar@UC User,
|
933
|
+
</div>
|
934
|
+
<br>
|
935
|
+
This email is to inform you that the following changes have been made to your account:
|
936
|
+
<br><br>
|
937
|
+
<table><th><td>Change Owner</td><td>Change Context</td><td>Change</td><td>Time</td></th><tr><td>email@test.com</td><td>1</td><td>added_as_delegate</td><td>2016-05-23 14:52:35 UTC</td></tr></table>
|
938
|
+
|
939
|
+
Changes can include:
|
940
|
+
<br>
|
941
|
+
<ul>
|
942
|
+
<li>Being added/removed as another contributor's delegate</li>
|
943
|
+
<li>Being added/removed as an editor of a work</li>
|
944
|
+
<li>Being added/removed to a group</li>
|
945
|
+
</ul>
|
946
|
+
|
947
|
+
|
948
|
+
Thanks,
|
949
|
+
The Scholar@UC team
|
950
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
951
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "change_manager_changes" SET "notified" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["notified", Mon, 23 May 2016 14:52:35 UTC +00:00], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
952
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
953
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
954
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
955
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
956
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Mon, 23 May 2016 14:52:35 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Mon, 23 May 2016 14:52:35 UTC +00:00]]
|
957
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
958
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
959
|
+
[1m[35m (0.1ms)[0m begin transaction
|
960
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
961
|
+
[1m[35m (0.1ms)[0m begin transaction
|
962
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
963
|
+
[1m[35m (0.1ms)[0m begin transaction
|
964
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
965
|
+
[1m[35m (0.1ms)[0m begin transaction
|
966
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
967
|
+
[1m[35m (0.0ms)[0m begin transaction
|
968
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
969
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Mon, 23 May 2016 14:52:36 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Mon, 23 May 2016 14:52:36 UTC +00:00]]
|
970
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
971
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
972
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
973
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
974
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
975
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
976
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
977
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: change_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Lawhorn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|