push_type_core 0.2.0.beta2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/dragonfly.rb +0 -13
- data/lib/generators/push_type/install/install_generator.rb +1 -1
- data/lib/generators/push_type/install/templates/push_type.rb +26 -8
- data/lib/push_type/config.rb +31 -0
- data/lib/push_type/core/engine.rb +5 -12
- data/lib/push_type/core.rb +12 -1
- data/test/dummy/config/initializers/push_type.rb +26 -8
- data/test/dummy/config/secrets.yml +2 -2
- data/test/dummy/db/schema.rb +1 -1
- data/test/dummy/log/test.log +1244 -1242
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/generators/app/models/home_page.rb +10 -0
- data/test/dummy/tmp/generators/app/views/nodes/home_page.html.erb +3 -0
- data/test/lib/push_type/core_test.rb +0 -1
- metadata +21 -20
- data/test/dummy/tmp/generators/config/initializers/push_type.rb +0 -15
- data/test/dummy/tmp/generators/config/routes.rb +0 -59
- /data/test/dummy/db/migrate/{20150208150305_create_push_type_users.push_type.rb → 20150209204334_create_push_type_users.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20150208150306_create_push_type_nodes.push_type.rb → 20150209204335_create_push_type_nodes.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20150208150307_create_push_type_node_hierarchies.push_type.rb → 20150209204336_create_push_type_node_hierarchies.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20150208150308_create_push_type_assets.push_type.rb → 20150209204337_create_push_type_assets.push_type.rb} +0 -0
data/test/dummy/log/test.log
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
[1m[36m (
|
2
|
-
[1m[35m (
|
1
|
+
[1m[36m (3.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
2
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
3
|
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
-
Migrating to CreatePushTypeUsers (
|
4
|
+
Migrating to CreatePushTypeUsers (20150209204334)
|
5
5
|
[1m[35m (0.1ms)[0m BEGIN
|
6
|
-
[1m[36mSQL (1.
|
6
|
+
[1m[36mSQL (1.8ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
7
7
|
[1m[35m (2.2ms)[0m CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp, "updated_at" timestamp)
|
8
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "
|
8
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150209204334"]]
|
9
9
|
[1m[35m (0.5ms)[0m COMMIT
|
10
|
-
Migrating to CreatePushTypeNodes (
|
10
|
+
Migrating to CreatePushTypeNodes (20150209204335)
|
11
11
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12
|
-
[1m[35m (1.
|
13
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "
|
12
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
|
13
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150209204335"]]
|
14
14
|
[1m[35m (0.3ms)[0m COMMIT
|
15
|
-
Migrating to CreatePushTypeNodeHierarchies (
|
15
|
+
Migrating to CreatePushTypeNodeHierarchies (20150209204336)
|
16
16
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17
17
|
[1m[35m (0.4ms)[0m CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
|
18
18
|
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")[0m
|
19
|
-
[1m[35m (0.
|
20
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "
|
19
|
+
[1m[35m (0.4ms)[0m CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
|
20
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150209204336"]]
|
21
21
|
[1m[35m (0.3ms)[0m COMMIT
|
22
|
-
Migrating to CreatePushTypeAssets (
|
22
|
+
Migrating to CreatePushTypeAssets (20150209204337)
|
23
23
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24
24
|
[1m[35m (1.9ms)[0m CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
|
25
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "
|
25
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150209204337"]]
|
26
26
|
[1m[35m (0.3ms)[0m COMMIT
|
27
27
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28
28
|
[1m[35m (1.6ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
@@ -49,7 +49,7 @@ WHERE c.contype = 'f'
|
|
49
49
|
AND t3.nspname = ANY (current_schemas(false))
|
50
50
|
ORDER BY c.conname
|
51
51
|
[0m
|
52
|
-
[1m[35m (1.
|
52
|
+
[1m[35m (1.2ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
53
53
|
FROM pg_constraint c
|
54
54
|
JOIN pg_class t1 ON c.conrelid = t1.oid
|
55
55
|
JOIN pg_class t2 ON c.confrelid = t2.oid
|
@@ -61,7 +61,7 @@ WHERE c.contype = 'f'
|
|
61
61
|
AND t3.nspname = ANY (current_schemas(false))
|
62
62
|
ORDER BY c.conname
|
63
63
|
|
64
|
-
[1m[36m (1.
|
64
|
+
[1m[36m (1.2ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
65
65
|
FROM pg_constraint c
|
66
66
|
JOIN pg_class t1 ON c.conrelid = t1.oid
|
67
67
|
JOIN pg_class t2 ON c.confrelid = t2.oid
|
@@ -75,54 +75,19 @@ ORDER BY c.conname
|
|
75
75
|
[0m
|
76
76
|
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
77
77
|
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
|
78
|
-
[1m[36m (
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
86
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
87
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
88
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
89
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "1"], ["created_at", "2015-02-08 15:03:09.438277"], ["updated_at", "2015-02-08 15:03:09.438277"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
|
90
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
91
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
92
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
78
|
+
[1m[36m (0.9ms)[0m [1m SELECT schemaname || '.' || tablename
|
79
|
+
FROM pg_tables
|
80
|
+
WHERE tablename !~ '_prt_' AND schemaname = ANY (current_schemas(false))
|
81
|
+
[0m
|
82
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
83
|
+
[1m[36m (28.5ms)[0m [1mTRUNCATE TABLE "public"."schema_migrations", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets" RESTART IDENTITY CASCADE;[0m
|
84
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL
|
93
85
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
[1m[
|
98
|
-
[1m[
|
99
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
100
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
101
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-02-08 15:03:09.445084"], ["updated_at", "2015-02-08 15:03:09.445084"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
102
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
103
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
104
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
105
|
-
[1m[35m (0.0ms)[0m BEGIN
|
106
|
-
-----------------------------------------------------------------------
|
107
|
-
PushType::Asset::#media::with a non existing style: test_0001_anonymous
|
108
|
-
-----------------------------------------------------------------------
|
109
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
110
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
111
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
112
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
113
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-02-08 15:03:09.449419"], ["updated_at", "2015-02-08 15:03:09.449419"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
114
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
115
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
116
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
117
|
-
[1m[36m (0.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL[0m
|
118
|
-
[1m[35m (26.9ms)[0m TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
|
119
|
-
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL[0m
|
120
|
-
[1m[35m (0.1ms)[0m BEGIN
|
121
|
-
[1m[36mPushType::Node Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-1' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
122
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"tags\":[\"foo\",\"bar\"]}"], ["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-1"], ["status", 0], ["created_at", "2015-02-08 15:03:09.496568"], ["updated_at", "2015-02-08 15:03:09.496568"]]
|
123
|
-
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t2884d0a4b2ad7f9a4d06f5c3200d1e6d[0m
|
124
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "767f2b57-2b50-4b05-9510-78c043359847"], ["descendant_id", "767f2b57-2b50-4b05-9510-78c043359847"], ["generations", 0]]
|
125
|
-
[1m[36m (0.6ms)[0m [1mUPDATE "push_type_nodes"
|
86
|
+
[1m[35mPushType::Node Exists (0.4ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-1' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
87
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-1"], ["created_at", "2015-02-09 20:43:38.482883"], ["updated_at", "2015-02-09 20:43:38.482883"]]
|
88
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t6461abe4e77d01b87666e500a422d7e7
|
89
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "4bcdd0f7-73d4-4482-93dc-afb003001804"], ["descendant_id", "4bcdd0f7-73d4-4482-93dc-afb003001804"], ["generations", 0]]
|
90
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
126
91
|
SET "sort_order" = t.seq + -1
|
127
92
|
FROM (
|
128
93
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -130,26 +95,45 @@ FROM (
|
|
130
95
|
WHERE "parent_id" IS NULL
|
131
96
|
) AS t
|
132
97
|
WHERE "push_type_nodes"."id" = t.id
|
133
|
-
|
134
|
-
[1m[
|
135
|
-
[1m[
|
136
|
-
[1m[
|
137
|
-
[1m[
|
138
|
-
[1m[35m (0.4ms)[0m SELECT DISTINCT jsonb_array_elements_text(field_store->'tags') AS _tag FROM push_type_nodes WHERE push_type_nodes.type IN ('Page') ORDER BY _tag
|
98
|
+
|
99
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "4bcdd0f7-73d4-4482-93dc-afb003001804"]]
|
100
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4bcdd0f7-73d4-4482-93dc-afb003001804"]]
|
101
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tdf2008cf12afb410e5f04bf31b9273d0[0m
|
102
|
+
[1m[35m (1.7ms)[0m COMMIT
|
139
103
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
140
|
-
|
141
|
-
.
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
[1m[36m (0.
|
104
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", "2015-02-09 20:43:38.508206"], ["updated_at", "2015-02-09 20:43:38.508740"], ["id", "4bcdd0f7-73d4-4482-93dc-afb003001804"]]
|
105
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
106
|
+
[1m[35m (0.1ms)[0m BEGIN
|
107
|
+
-------------------------------------------
|
108
|
+
exposed?::when exposed: test_0001_anonymous
|
109
|
+
-------------------------------------------
|
110
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
111
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
112
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
113
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
114
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
115
|
+
[1m[35m (0.1ms)[0m BEGIN
|
116
|
+
-------------------------------------------
|
117
|
+
exposed?::when exposed: test_0002_anonymous
|
118
|
+
-------------------------------------------
|
119
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
120
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
121
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
122
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
123
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
124
|
+
[1m[35m (0.0ms)[0m BEGIN
|
125
|
+
-------------------------------------------------------
|
126
|
+
#set_published_at::when publishing: test_0001_anonymous
|
127
|
+
-------------------------------------------------------
|
128
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
129
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
130
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
147
131
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
148
132
|
[1m[36mPushType::Node Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-2' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
149
|
-
[1m[35mSQL (0.
|
150
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS
|
151
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "
|
152
|
-
[1m[36m (0.
|
133
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-2"], ["published_at", "2015-02-09 20:43:38.528981"], ["created_at", "2015-02-09 20:43:38.529203"], ["updated_at", "2015-02-09 20:43:38.529203"]]
|
134
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t6fafa758beae35dff8e6a155fc036d6d[0m
|
135
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "09e08dae-ab1c-49b1-a2b4-c744f9024ce4"], ["descendant_id", "09e08dae-ab1c-49b1-a2b4-c744f9024ce4"], ["generations", 0]]
|
136
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "push_type_nodes"
|
153
137
|
SET "sort_order" = t.seq + -1
|
154
138
|
FROM (
|
155
139
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -158,27 +142,29 @@ FROM (
|
|
158
142
|
) AS t
|
159
143
|
WHERE "push_type_nodes"."id" = t.id
|
160
144
|
[0m
|
161
|
-
[1m[35mPushType::Node Load (0.
|
162
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "
|
163
|
-
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS
|
145
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "09e08dae-ab1c-49b1-a2b4-c744f9024ce4"]]
|
146
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "09e08dae-ab1c-49b1-a2b4-c744f9024ce4"]]
|
147
|
+
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t20e6ffff2fc06f4d1e64c4dea6323e21
|
164
148
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
165
|
-
[1m[35m (0.
|
149
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
150
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "push_type_nodes" SET "status" = $1, "published_at" = $2, "updated_at" = $3 WHERE "push_type_nodes"."id" = $4[0m [["status", 0], ["published_at", nil], ["updated_at", "2015-02-09 20:43:38.535032"], ["id", "09e08dae-ab1c-49b1-a2b4-c744f9024ce4"]]
|
151
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
166
152
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
167
153
|
[1m[35m (0.1ms)[0m ROLLBACK
|
168
|
-
[1m[36m (0.
|
169
|
-
|
170
|
-
.
|
171
|
-
|
154
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
155
|
+
--------------------------------------------------------------------
|
156
|
+
.published::with published_to dates in the past: test_0001_anonymous
|
157
|
+
--------------------------------------------------------------------
|
172
158
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
173
159
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
174
160
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
175
|
-
[1m[36m (0.
|
161
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:38.539920') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:38.540083')[0m
|
176
162
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
177
163
|
[1m[36mPushType::Node Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-3' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
178
|
-
[1m[35mSQL (0.
|
179
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS
|
180
|
-
[1m[35mSQL (0.
|
181
|
-
[1m[36m (0.
|
164
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-3"], ["published_at", "2015-02-07 20:43:38.541174"], ["published_to", "2015-02-08 20:43:38.541278"], ["created_at", "2015-02-09 20:43:38.543345"], ["updated_at", "2015-02-09 20:43:38.543345"]]
|
165
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS tee231b45d2817dbfb00f9251913e4701[0m
|
166
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d1ac1cf6-387c-457f-8f43-6189aa293e87"], ["descendant_id", "d1ac1cf6-387c-457f-8f43-6189aa293e87"], ["generations", 0]]
|
167
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "push_type_nodes"
|
182
168
|
SET "sort_order" = t.seq + -1
|
183
169
|
FROM (
|
184
170
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -187,28 +173,19 @@ FROM (
|
|
187
173
|
) AS t
|
188
174
|
WHERE "push_type_nodes"."id" = t.id
|
189
175
|
[0m
|
190
|
-
[1m[
|
191
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY
|
192
|
-
[1m[
|
193
|
-
[1m[36m (0.1ms)[0m [
|
194
|
-
[1m[35m (0.
|
195
|
-
[1m[36m (0.1ms)[0m [
|
196
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
197
|
-
[1m[36m (0.1ms)[0m [
|
198
|
-
[1m[
|
199
|
-
|
200
|
-
.
|
201
|
-
|
202
|
-
[1m[
|
203
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
204
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
205
|
-
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE (push_type_nodes.type NOT IN ('TestPage'))
|
206
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
207
|
-
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-4' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
208
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["type", "TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-4"], ["status", 0], ["created_at", "2015-02-08 15:03:09.570730"], ["updated_at", "2015-02-08 15:03:09.570730"]]
|
209
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tda5ab5ff282e6f365068e379db2919e4
|
210
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "1e07b866-ccd7-4274-8510-87d2b5e6c173"], ["descendant_id", "1e07b866-ccd7-4274-8510-87d2b5e6c173"], ["generations", 0]]
|
211
|
-
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
176
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "d1ac1cf6-387c-457f-8f43-6189aa293e87"]]
|
177
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "d1ac1cf6-387c-457f-8f43-6189aa293e87"]]
|
178
|
+
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS ta6f323fdd80ce160b13f0bf9cb0a22ec
|
179
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
180
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:38.539920') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:38.540083')
|
181
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
182
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
183
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
184
|
+
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-4' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
185
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["field_store", "{\"tags\":[\"foo\",\"bar\"]}"], ["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-4"], ["status", 0], ["created_at", "2015-02-09 20:43:38.566496"], ["updated_at", "2015-02-09 20:43:38.566496"]]
|
186
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS ta142b241318b1091c4c68fc734db52c7
|
187
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "a64c901e-b5b4-4655-950f-2b1a79f74eef"], ["descendant_id", "a64c901e-b5b4-4655-950f-2b1a79f74eef"], ["generations", 0]]
|
188
|
+
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
212
189
|
SET "sort_order" = t.seq + -1
|
213
190
|
FROM (
|
214
191
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -217,27 +194,16 @@ FROM (
|
|
217
194
|
) AS t
|
218
195
|
WHERE "push_type_nodes"."id" = t.id
|
219
196
|
|
220
|
-
[1m[
|
221
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY
|
222
|
-
[1m[
|
223
|
-
[1m[35m (0.
|
224
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
225
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE (push_type_nodes.type NOT IN ('TestPage'))
|
226
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
227
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
197
|
+
[1m[36mPage Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "a64c901e-b5b4-4655-950f-2b1a79f74eef"]]
|
198
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "a64c901e-b5b4-4655-950f-2b1a79f74eef"]]
|
199
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t86485fb5f18b26c5c85a1e07ea3371de[0m
|
200
|
+
[1m[35m (0.4ms)[0m COMMIT
|
228
201
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
[1m[
|
233
|
-
[1m[
|
234
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
235
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
236
|
-
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-5' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
237
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-5"], ["published_at", "2015-02-09 15:03:09.579513"], ["created_at", "2015-02-08 15:03:09.581137"], ["updated_at", "2015-02-08 15:03:09.581137"]]
|
238
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t47695d3138283021d7d3fa6a7c1b1e14
|
239
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "42382745-ecad-4ef2-afd3-543cf2736110"], ["descendant_id", "42382745-ecad-4ef2-afd3-543cf2736110"], ["generations", 0]]
|
240
|
-
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
202
|
+
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-5' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
203
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["field_store", "{\"tags\":[\"baz\"]}"], ["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-5"], ["status", 0], ["created_at", "2015-02-09 20:43:38.575216"], ["updated_at", "2015-02-09 20:43:38.575216"]]
|
204
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t69176a91e8cd7cce1c85b37e14e9844e
|
205
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "336890fa-3437-4bb8-b9f0-2b49c18b8769"], ["descendant_id", "336890fa-3437-4bb8-b9f0-2b49c18b8769"], ["generations", 0]]
|
206
|
+
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
241
207
|
SET "sort_order" = t.seq + -1
|
242
208
|
FROM (
|
243
209
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -246,25 +212,16 @@ FROM (
|
|
246
212
|
) AS t
|
247
213
|
WHERE "push_type_nodes"."id" = t.id
|
248
214
|
|
249
|
-
[1m[
|
250
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
251
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
252
|
-
[1m[35m (0.
|
253
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
254
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
215
|
+
[1m[36mPage Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "336890fa-3437-4bb8-b9f0-2b49c18b8769"]]
|
216
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "336890fa-3437-4bb8-b9f0-2b49c18b8769"]]
|
217
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tddc7640acab265c0b77555ebbfef2c15[0m
|
218
|
+
[1m[35m (0.3ms)[0m COMMIT
|
255
219
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
256
|
-
----------------------------
|
257
|
-
#status: test_0004_anonymous
|
258
|
-
----------------------------
|
259
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
260
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
261
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
262
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
263
220
|
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-6' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
264
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("
|
265
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS
|
266
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "
|
267
|
-
[1m[35m (0.
|
221
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["field_store", "{\"tags\":[\"foo\",\"bang\"]}"], ["type", "TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-6"], ["status", 0], ["created_at", "2015-02-09 20:43:38.583206"], ["updated_at", "2015-02-09 20:43:38.583206"]]
|
222
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t60152db8b0ddefc1eae4ed85882e43bf
|
223
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "8cdb5e5a-0443-4992-878b-fec67a04747a"], ["descendant_id", "8cdb5e5a-0443-4992-878b-fec67a04747a"], ["generations", 0]]
|
224
|
+
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
268
225
|
SET "sort_order" = t.seq + -1
|
269
226
|
FROM (
|
270
227
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -273,25 +230,17 @@ FROM (
|
|
273
230
|
) AS t
|
274
231
|
WHERE "push_type_nodes"."id" = t.id
|
275
232
|
|
276
|
-
[1m[
|
277
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
278
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
279
|
-
[1m[35m (0.
|
280
|
-
[1m[36m (0.
|
281
|
-
[1m[35m (0.1ms)[0m
|
282
|
-
[1m[
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
[1m[
|
287
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
288
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
289
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
290
|
-
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-7' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
291
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-7"], ["published_at", "2015-02-09 15:03:09.594626"], ["created_at", "2015-02-08 15:03:09.596138"], ["updated_at", "2015-02-08 15:03:09.596138"]]
|
292
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS teaa3d2818fb5652250ed7e8eced0993d
|
293
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "d4c4bec9-7608-4f20-835b-cd6a243a78c5"], ["descendant_id", "d4c4bec9-7608-4f20-835b-cd6a243a78c5"], ["generations", 0]]
|
294
|
-
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
233
|
+
[1m[36mTestPage Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "8cdb5e5a-0443-4992-878b-fec67a04747a"]]
|
234
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8cdb5e5a-0443-4992-878b-fec67a04747a"]]
|
235
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t22ec57b714cb7de581c4cd4271b0edfa[0m
|
236
|
+
[1m[35m (0.4ms)[0m COMMIT
|
237
|
+
[1m[36m (0.4ms)[0m [1mSELECT DISTINCT jsonb_array_elements_text(field_store->'tags') AS _tag FROM push_type_nodes WHERE push_type_nodes.type IN ('Page') ORDER BY _tag[0m
|
238
|
+
[1m[35m (0.1ms)[0m BEGIN
|
239
|
+
[1m[36mPushType::Node Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-7' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
240
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"tags\":[\"foo\",\"bar\"]}"], ["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-7"], ["status", 0], ["created_at", "2015-02-09 20:43:38.592395"], ["updated_at", "2015-02-09 20:43:38.592395"]]
|
241
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t97d787bcbf1e5dfe82ca71b6951ef2e3[0m
|
242
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "66ef7326-ce2a-44fb-b05d-e8f6f7461862"], ["descendant_id", "66ef7326-ce2a-44fb-b05d-e8f6f7461862"], ["generations", 0]]
|
243
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "push_type_nodes"
|
295
244
|
SET "sort_order" = t.seq + -1
|
296
245
|
FROM (
|
297
246
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -299,26 +248,17 @@ FROM (
|
|
299
248
|
WHERE "parent_id" IS NULL
|
300
249
|
) AS t
|
301
250
|
WHERE "push_type_nodes"."id" = t.id
|
302
|
-
|
303
|
-
[1m[
|
304
|
-
[1m[
|
305
|
-
[1m[
|
306
|
-
[1m[
|
307
|
-
[1m[
|
308
|
-
[1m[
|
309
|
-
[1m[
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
314
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
315
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
316
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
317
|
-
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-8' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
318
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-8"], ["published_at", "2015-02-06 15:03:09.602184"], ["published_to", "2015-02-07 15:03:09.602237"], ["created_at", "2015-02-08 15:03:09.604033"], ["updated_at", "2015-02-08 15:03:09.604033"]]
|
319
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t50d7e17d2bcdc2ddd2fb8478299755c6
|
320
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "f4235576-4e90-4c25-9064-2a071ee976dc"], ["descendant_id", "f4235576-4e90-4c25-9064-2a071ee976dc"], ["generations", 0]]
|
321
|
-
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
251
|
+
[0m
|
252
|
+
[1m[35mPage Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "66ef7326-ce2a-44fb-b05d-e8f6f7461862"]]
|
253
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "66ef7326-ce2a-44fb-b05d-e8f6f7461862"]]
|
254
|
+
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t376268e245b8a7c9ee2ca38f35c97f03
|
255
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
256
|
+
[1m[35m (0.1ms)[0m BEGIN
|
257
|
+
[1m[36mPushType::Node Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-8' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
258
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"tags\":[\"baz\"]}"], ["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-8"], ["status", 0], ["created_at", "2015-02-09 20:43:38.600700"], ["updated_at", "2015-02-09 20:43:38.600700"]]
|
259
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS tfc612fab66b4ca217744577dbea5172d[0m
|
260
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a0ce684c-64f5-414a-bf48-790d3a62ebab"], ["descendant_id", "a0ce684c-64f5-414a-bf48-790d3a62ebab"], ["generations", 0]]
|
261
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "push_type_nodes"
|
322
262
|
SET "sort_order" = t.seq + -1
|
323
263
|
FROM (
|
324
264
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -326,26 +266,17 @@ FROM (
|
|
326
266
|
WHERE "parent_id" IS NULL
|
327
267
|
) AS t
|
328
268
|
WHERE "push_type_nodes"."id" = t.id
|
329
|
-
|
330
|
-
[1m[
|
331
|
-
[1m[
|
332
|
-
[1m[
|
333
|
-
[1m[
|
334
|
-
[1m[
|
335
|
-
[1m[
|
336
|
-
[1m[
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
341
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
342
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
343
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
344
|
-
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-9' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
345
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-9"], ["published_at", "2015-02-09 15:03:09.610265"], ["created_at", "2015-02-08 15:03:09.611802"], ["updated_at", "2015-02-08 15:03:09.611802"]]
|
346
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t183f2c0541504ec0e7692019c2e4e1da
|
347
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "976689d2-0fb2-4fb5-94a4-156000fe416a"], ["descendant_id", "976689d2-0fb2-4fb5-94a4-156000fe416a"], ["generations", 0]]
|
348
|
-
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
269
|
+
[0m
|
270
|
+
[1m[35mPage Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "a0ce684c-64f5-414a-bf48-790d3a62ebab"]]
|
271
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "a0ce684c-64f5-414a-bf48-790d3a62ebab"]]
|
272
|
+
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t8c74d15bc4674d2d6f44bf694d3eed8d
|
273
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
274
|
+
[1m[35m (0.1ms)[0m BEGIN
|
275
|
+
[1m[36mPushType::Node Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-9' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
276
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"tags\":[\"foo\",\"bang\"]}"], ["type", "TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-9"], ["status", 0], ["created_at", "2015-02-09 20:43:38.609176"], ["updated_at", "2015-02-09 20:43:38.609176"]]
|
277
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS tc19cfe679628f9d51b0598227f7d6ac7[0m
|
278
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0d5bedc2-5e00-4c37-b2e1-7a900b36fbfe"], ["descendant_id", "0d5bedc2-5e00-4c37-b2e1-7a900b36fbfe"], ["generations", 0]]
|
279
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "push_type_nodes"
|
349
280
|
SET "sort_order" = t.seq + -1
|
350
281
|
FROM (
|
351
282
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -353,25 +284,17 @@ FROM (
|
|
353
284
|
WHERE "parent_id" IS NULL
|
354
285
|
) AS t
|
355
286
|
WHERE "push_type_nodes"."id" = t.id
|
356
|
-
|
357
|
-
[1m[
|
358
|
-
[1m[
|
359
|
-
[1m[
|
360
|
-
[1m[
|
361
|
-
[1m[
|
362
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
287
|
+
[0m
|
288
|
+
[1m[35mTestPage Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "0d5bedc2-5e00-4c37-b2e1-7a900b36fbfe"]]
|
289
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "0d5bedc2-5e00-4c37-b2e1-7a900b36fbfe"]]
|
290
|
+
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t68842ae55e5096dea5ef1860a7a96455
|
291
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
292
|
+
[1m[35m (0.2ms)[0m SELECT DISTINCT jsonb_array_elements_text(field_store->'tags') AS _tag FROM push_type_nodes ORDER BY _tag
|
363
293
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
[1m[
|
368
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
369
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
370
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
371
|
-
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-10' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
372
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-10"], ["published_at", "2015-02-08 15:03:09.619519"], ["created_at", "2015-02-08 15:03:09.619685"], ["updated_at", "2015-02-08 15:03:09.619685"]]
|
373
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tb7cf60302576f49e95d55b327c337f13
|
374
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "59d92eb8-b334-4a75-823d-47578390fbcd"], ["descendant_id", "59d92eb8-b334-4a75-823d-47578390fbcd"], ["generations", 0]]
|
294
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-10' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
295
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["field_store", "{\"tags\":[\"foo\",\"bar\"]}"], ["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-10"], ["status", 0], ["created_at", "2015-02-09 20:43:38.617780"], ["updated_at", "2015-02-09 20:43:38.617780"]]
|
296
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS teb541b4943801113382ffa6f6853d0b7
|
297
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "4e66f50e-bcff-4631-9556-b410bb627adf"], ["descendant_id", "4e66f50e-bcff-4631-9556-b410bb627adf"], ["generations", 0]]
|
375
298
|
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
376
299
|
SET "sort_order" = t.seq + -1
|
377
300
|
FROM (
|
@@ -381,25 +304,16 @@ FROM (
|
|
381
304
|
) AS t
|
382
305
|
WHERE "push_type_nodes"."id" = t.id
|
383
306
|
|
384
|
-
[1m[
|
385
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
386
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
387
|
-
[1m[35m (0.
|
388
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
389
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
307
|
+
[1m[36mPage Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "4e66f50e-bcff-4631-9556-b410bb627adf"]]
|
308
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4e66f50e-bcff-4631-9556-b410bb627adf"]]
|
309
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t801bc3a9e5ec4d62a5247e56e8c843c2[0m
|
310
|
+
[1m[35m (0.4ms)[0m COMMIT
|
390
311
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
391
|
-
----------------------------
|
392
|
-
#status: test_0001_anonymous
|
393
|
-
----------------------------
|
394
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
395
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
396
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
397
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
398
312
|
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-11' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
399
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("
|
400
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS
|
401
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "
|
402
|
-
[1m[35m (0.
|
313
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["field_store", "{\"tags\":[\"baz\"]}"], ["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-11"], ["status", 0], ["created_at", "2015-02-09 20:43:38.625662"], ["updated_at", "2015-02-09 20:43:38.625662"]]
|
314
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tee19e4fbd13d27bcc7bc0ed8bd0bee4b
|
315
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "2d767017-0d9f-4c0e-b868-96eca1b5a25e"], ["descendant_id", "2d767017-0d9f-4c0e-b868-96eca1b5a25e"], ["generations", 0]]
|
316
|
+
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
403
317
|
SET "sort_order" = t.seq + -1
|
404
318
|
FROM (
|
405
319
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -408,24 +322,15 @@ FROM (
|
|
408
322
|
) AS t
|
409
323
|
WHERE "push_type_nodes"."id" = t.id
|
410
324
|
|
411
|
-
[1m[
|
412
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
413
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
414
|
-
[1m[35m (0.
|
415
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
416
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
325
|
+
[1m[36mPage Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "2d767017-0d9f-4c0e-b868-96eca1b5a25e"]]
|
326
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2d767017-0d9f-4c0e-b868-96eca1b5a25e"]]
|
327
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t40f27737dfba9b76d11e15d29f3b06b9[0m
|
328
|
+
[1m[35m (0.3ms)[0m COMMIT
|
417
329
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
[1m[
|
422
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
423
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
424
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
425
|
-
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-12' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
426
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-12"], ["published_at", "2015-02-08 15:03:09.634112"], ["created_at", "2015-02-08 15:03:09.634284"], ["updated_at", "2015-02-08 15:03:09.634284"]]
|
427
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS te2ced2f9d20f3f881772ace04dd9cc0e
|
428
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "9a9df440-7e4e-4e60-925f-c17611254b00"], ["descendant_id", "9a9df440-7e4e-4e60-925f-c17611254b00"], ["generations", 0]]
|
330
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-12' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
331
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["field_store", "{\"tags\":[\"foo\",\"bang\"]}"], ["type", "TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-12"], ["status", 0], ["created_at", "2015-02-09 20:43:38.633663"], ["updated_at", "2015-02-09 20:43:38.633663"]]
|
332
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t7ab2be89ef9a7b1a4c6b69b7106b3c61
|
333
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "42183074-f4cc-4b66-8d97-4ac7b5189fa5"], ["descendant_id", "42183074-f4cc-4b66-8d97-4ac7b5189fa5"], ["generations", 0]]
|
429
334
|
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
430
335
|
SET "sort_order" = t.seq + -1
|
431
336
|
FROM (
|
@@ -435,51 +340,75 @@ FROM (
|
|
435
340
|
) AS t
|
436
341
|
WHERE "push_type_nodes"."id" = t.id
|
437
342
|
|
438
|
-
[1m[
|
439
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
440
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
343
|
+
[1m[36mTestPage Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "42183074-f4cc-4b66-8d97-4ac7b5189fa5"]]
|
344
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "42183074-f4cc-4b66-8d97-4ac7b5189fa5"]]
|
345
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t5cf73760e6fe05277ec18ccbf343a1f7[0m
|
346
|
+
[1m[35m (0.3ms)[0m COMMIT
|
347
|
+
[1m[36m (0.2ms)[0m [1mSELECT DISTINCT jsonb_array_elements_text(field_store->'tags') AS _tag FROM push_type_nodes WHERE push_type_nodes.type IN ('TestPage') ORDER BY _tag[0m
|
348
|
+
[1m[35m (0.1ms)[0m BEGIN
|
349
|
+
-----------------------------------------------
|
350
|
+
PushType::InstallGenerator: test_0001_anonymous
|
351
|
+
-----------------------------------------------
|
352
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
353
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
354
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
355
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
356
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
357
|
+
[1m[35m (0.1ms)[0m BEGIN
|
358
|
+
-----------------------------------------------
|
359
|
+
PushType::InstallGenerator: test_0002_anonymous
|
360
|
+
-----------------------------------------------
|
361
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
362
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
363
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
364
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
365
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
366
|
+
[1m[35m (0.1ms)[0m BEGIN
|
367
|
+
----------------------------------------------------------
|
368
|
+
PushType::Asset::#media::with no args: test_0001_anonymous
|
369
|
+
----------------------------------------------------------
|
370
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
371
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
372
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
373
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
374
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-02-09 20:43:40.622849"], ["updated_at", "2015-02-09 20:43:40.622849"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
441
375
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
442
376
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
443
377
|
[1m[35m (0.1ms)[0m ROLLBACK
|
444
378
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
445
|
-
|
446
|
-
|
447
|
-
|
379
|
+
----------------------------------------------------------
|
380
|
+
PushType::Asset::#media::with no args: test_0002_anonymous
|
381
|
+
----------------------------------------------------------
|
448
382
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
449
383
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
450
384
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
451
385
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
452
|
-
[1m[
|
453
|
-
[1m[
|
454
|
-
[1m[35m (0.1ms)[0m
|
455
|
-
[1m[
|
456
|
-
[1m[35m (0.
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
)
|
463
|
-
|
464
|
-
|
465
|
-
[1m[
|
466
|
-
|
467
|
-
|
468
|
-
|
386
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "2"], ["created_at", "2015-02-09 20:43:40.627998"], ["updated_at", "2015-02-09 20:43:40.627998"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
|
387
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
388
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
389
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
390
|
+
[1m[35m (0.1ms)[0m BEGIN
|
391
|
+
----------------------------------------------------------------------------
|
392
|
+
FrontEndController::GET #node::when node does not exist: test_0001_anonymous
|
393
|
+
----------------------------------------------------------------------------
|
394
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
395
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
396
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
397
|
+
Processing by FrontEndController#node as HTML
|
398
|
+
Parameters: {"permalink"=>"does/not/exist"}
|
399
|
+
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_nodes" AS p0
|
400
|
+
ON p0."id" =
|
401
|
+
"push_type_nodes"."parent_id" INNER JOIN "push_type_nodes" AS p1
|
402
|
+
ON p1."id" =
|
403
|
+
"p0"."parent_id" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:40.635799') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:40.635926') AND "push_type_nodes"."slug" = $1 AND "p0"."slug" = 'not' AND "p1"."slug" = 'does' AND "p1"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1 [["slug", "exist"]]
|
404
|
+
Completed 404 Not Found in 4ms
|
469
405
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
470
406
|
[1m[35m (0.1ms)[0m ROLLBACK
|
471
407
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
[1m[
|
476
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
477
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
478
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
479
|
-
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-14' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
480
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-14"], ["published_at", "2015-02-08 15:03:09.649218"], ["created_at", "2015-02-08 15:03:09.649385"], ["updated_at", "2015-02-08 15:03:09.649385"]]
|
481
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t5e71e9f534d93a221866ad238aa3a93c
|
482
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "59a891fd-fa90-4b5a-8843-74cf25fdd39b"], ["descendant_id", "59a891fd-fa90-4b5a-8843-74cf25fdd39b"], ["generations", 0]]
|
408
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-13' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
409
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-13"], ["deleted_at", "2015-02-09 20:43:40.640838"], ["created_at", "2015-02-09 20:43:40.642855"], ["updated_at", "2015-02-09 20:43:40.642855"]]
|
410
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t3454ac54ce3ad8b4e9ee50a93cb80a6e
|
411
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "c5910602-ec90-432c-b43f-cf406b39b2a4"], ["descendant_id", "c5910602-ec90-432c-b43f-cf406b39b2a4"], ["generations", 0]]
|
483
412
|
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
484
413
|
SET "sort_order" = t.seq + -1
|
485
414
|
FROM (
|
@@ -489,133 +418,273 @@ FROM (
|
|
489
418
|
) AS t
|
490
419
|
WHERE "push_type_nodes"."id" = t.id
|
491
420
|
|
492
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "
|
493
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
494
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
421
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "c5910602-ec90-432c-b43f-cf406b39b2a4"]]
|
422
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "c5910602-ec90-432c-b43f-cf406b39b2a4"]]
|
423
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tb84ea08a6fffb86461717c1462083ce6[0m
|
424
|
+
[1m[35m (4.9ms)[0m COMMIT
|
425
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
426
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", nil], ["updated_at", "2015-02-09 20:43:40.654544"], ["id", "c5910602-ec90-432c-b43f-cf406b39b2a4"]]
|
427
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
428
|
+
[1m[35m (0.1ms)[0m BEGIN
|
429
|
+
------------------------------------
|
430
|
+
PushType::Asset: test_0001_anonymous
|
431
|
+
------------------------------------
|
432
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
433
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
434
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
435
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
436
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
437
|
+
[1m[35m (0.0ms)[0m BEGIN
|
438
|
+
-------------------------------------------------------------------
|
439
|
+
PushType::Asset: test_0005_should be valid with required attributes
|
440
|
+
-------------------------------------------------------------------
|
441
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
442
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
443
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
444
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
445
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
446
|
+
[1m[35m (0.1ms)[0m BEGIN
|
447
|
+
------------------------------------
|
448
|
+
PushType::Asset: test_0002_anonymous
|
449
|
+
------------------------------------
|
450
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
451
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
452
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
453
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
454
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
455
|
+
[1m[35m (0.0ms)[0m BEGIN
|
456
|
+
------------------------------------
|
457
|
+
PushType::Asset: test_0004_anonymous
|
458
|
+
------------------------------------
|
459
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
460
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
461
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
462
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
463
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
464
|
+
[1m[35m (0.0ms)[0m BEGIN
|
465
|
+
------------------------------------
|
466
|
+
PushType::Asset: test_0003_anonymous
|
467
|
+
------------------------------------
|
468
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
469
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
470
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
471
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
472
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
473
|
+
[1m[35m (0.1ms)[0m BEGIN
|
474
|
+
----------------------------------------
|
475
|
+
#set_default_status: test_0001_anonymous
|
476
|
+
----------------------------------------
|
477
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
478
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
479
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
480
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
481
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
482
|
+
[1m[35m (0.1ms)[0m BEGIN
|
483
|
+
-------------------------------------------
|
484
|
+
PushType::Asset::#kind: test_0013_anonymous
|
485
|
+
-------------------------------------------
|
486
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
487
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
488
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
489
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
490
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "3"], ["created_at", "2015-02-09 20:43:40.676632"], ["updated_at", "2015-02-09 20:43:40.676632"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
|
495
491
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
496
492
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
497
493
|
[1m[35m (0.1ms)[0m ROLLBACK
|
498
|
-
[1m[36m (0.
|
499
|
-
|
500
|
-
|
501
|
-
|
494
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
495
|
+
-------------------------------------------
|
496
|
+
PushType::Asset::#kind: test_0003_anonymous
|
497
|
+
-------------------------------------------
|
498
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
499
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
500
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
501
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
502
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-02-09 20:43:40.681071"], ["updated_at", "2015-02-09 20:43:40.681071"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
503
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
504
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
505
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
506
|
+
[1m[35m (0.1ms)[0m BEGIN
|
507
|
+
-------------------------------------------
|
508
|
+
PushType::Asset::#kind: test_0006_anonymous
|
509
|
+
-------------------------------------------
|
510
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
511
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
512
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
513
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
514
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "audio.m3u"], ["file_size", 64], ["file_uid", "5"], ["created_at", "2015-02-09 20:43:40.685297"], ["updated_at", "2015-02-09 20:43:40.685297"], ["file_ext", "m3u"], ["mime_type", "audio/x-mpegurl"]]
|
515
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
516
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
517
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
518
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
519
|
+
-------------------------------------------
|
520
|
+
PushType::Asset::#kind: test_0016_anonymous
|
521
|
+
-------------------------------------------
|
502
522
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
503
523
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
504
524
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
505
525
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
506
|
-
[1m[
|
507
|
-
[1m[
|
508
|
-
[1m[35m (0.1ms)[0m
|
509
|
-
[1m[
|
510
|
-
[1m[35m (0.
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
)
|
517
|
-
|
518
|
-
|
519
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "f26cc04f-0006-4cd2-9112-9440772658fa"]]
|
520
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "f26cc04f-0006-4cd2-9112-9440772658fa"]]
|
521
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS ta2c013e2280ddf08af803bd8942fce97[0m
|
526
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "6"], ["created_at", "2015-02-09 20:43:40.689378"], ["updated_at", "2015-02-09 20:43:40.689378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
|
527
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
528
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
529
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
530
|
+
[1m[35m (0.1ms)[0m BEGIN
|
531
|
+
-------------------------------------------
|
532
|
+
PushType::Asset::#kind: test_0015_anonymous
|
533
|
+
-------------------------------------------
|
534
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
535
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
536
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
537
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
538
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "7"], ["created_at", "2015-02-09 20:43:40.693977"], ["updated_at", "2015-02-09 20:43:40.693977"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
|
522
539
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
523
540
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
524
541
|
[1m[35m (0.1ms)[0m ROLLBACK
|
525
542
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
526
|
-
|
527
|
-
|
528
|
-
|
543
|
+
-------------------------------------------
|
544
|
+
PushType::Asset::#kind: test_0014_anonymous
|
545
|
+
-------------------------------------------
|
546
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
547
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
548
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
549
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
550
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "8"], ["created_at", "2015-02-09 20:43:40.706779"], ["updated_at", "2015-02-09 20:43:40.706779"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
|
551
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
552
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
553
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
554
|
+
[1m[35m (0.1ms)[0m BEGIN
|
555
|
+
-------------------------------------------
|
556
|
+
PushType::Asset::#kind: test_0004_anonymous
|
557
|
+
-------------------------------------------
|
558
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
559
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
560
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
561
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
562
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["created_at", "2015-02-09 20:43:40.711557"], ["updated_at", "2015-02-09 20:43:40.711557"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
563
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
564
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
565
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
566
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
567
|
+
-------------------------------------------
|
568
|
+
PushType::Asset::#kind: test_0001_anonymous
|
569
|
+
-------------------------------------------
|
529
570
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
530
571
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
531
572
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
532
573
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
533
|
-
[1m[
|
534
|
-
[1m[
|
535
|
-
[1m[35m (0.1ms)[0m
|
536
|
-
[1m[
|
537
|
-
[1m[35m (0.
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
)
|
544
|
-
|
545
|
-
|
546
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "cd455c8a-bb8e-4b1f-bd00-018d64ab20fc"]]
|
547
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "cd455c8a-bb8e-4b1f-bd00-018d64ab20fc"]]
|
548
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t64223917d804eef738bbb0adddb0ad84[0m
|
574
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "10"], ["created_at", "2015-02-09 20:43:40.716274"], ["updated_at", "2015-02-09 20:43:40.716274"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
575
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
576
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
577
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
578
|
+
[1m[35m (0.1ms)[0m BEGIN
|
579
|
+
-------------------------------------------
|
580
|
+
PushType::Asset::#kind: test_0008_anonymous
|
581
|
+
-------------------------------------------
|
582
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
583
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
584
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
585
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
586
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "audio.m3u"], ["file_size", 64], ["file_uid", "11"], ["created_at", "2015-02-09 20:43:40.721119"], ["updated_at", "2015-02-09 20:43:40.721119"], ["file_ext", "m3u"], ["mime_type", "audio/x-mpegurl"]]
|
549
587
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
550
588
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
551
589
|
[1m[35m (0.1ms)[0m ROLLBACK
|
552
590
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
553
|
-
|
554
|
-
|
555
|
-
|
591
|
+
-------------------------------------------
|
592
|
+
PushType::Asset::#kind: test_0002_anonymous
|
593
|
+
-------------------------------------------
|
556
594
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
557
595
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
558
596
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
559
597
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
560
|
-
[1m[
|
561
|
-
[1m[
|
562
|
-
[1m[35m (0.1ms)[0m
|
563
|
-
[1m[
|
564
|
-
[1m[35m (0.
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
)
|
571
|
-
|
572
|
-
|
573
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "653f2a17-d04f-4edf-a4a9-1794b9fecb22"]]
|
574
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "653f2a17-d04f-4edf-a4a9-1794b9fecb22"]]
|
575
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t7fd3e2bf7cf39687f00b0f244da14385[0m
|
598
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "12"], ["created_at", "2015-02-09 20:43:40.725705"], ["updated_at", "2015-02-09 20:43:40.725705"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
599
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
600
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
601
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
602
|
+
[1m[35m (0.1ms)[0m BEGIN
|
603
|
+
-------------------------------------------
|
604
|
+
PushType::Asset::#kind: test_0005_anonymous
|
605
|
+
-------------------------------------------
|
606
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
607
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
608
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
609
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
610
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "audio.m3u"], ["file_size", 64], ["file_uid", "13"], ["created_at", "2015-02-09 20:43:40.730335"], ["updated_at", "2015-02-09 20:43:40.730335"], ["file_ext", "m3u"], ["mime_type", "audio/x-mpegurl"]]
|
576
611
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
577
612
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
578
613
|
[1m[35m (0.1ms)[0m ROLLBACK
|
579
614
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
[1m[35m (0.
|
615
|
+
-------------------------------------------
|
616
|
+
PushType::Asset::#kind: test_0007_anonymous
|
617
|
+
-------------------------------------------
|
618
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
584
619
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
585
620
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
586
621
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
587
|
-
[1m[
|
588
|
-
[1m[
|
589
|
-
[1m[35m (0.1ms)[0m
|
590
|
-
[1m[
|
591
|
-
[1m[35m (0.
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
)
|
598
|
-
|
599
|
-
|
600
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "bd569099-4ce8-46d2-bf15-597148d0bdb9"]]
|
601
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "bd569099-4ce8-46d2-bf15-597148d0bdb9"]]
|
602
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t65af8b2583776ee9acd73956d25f6473[0m
|
622
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "audio.m3u"], ["file_size", 64], ["file_uid", "14"], ["created_at", "2015-02-09 20:43:40.740085"], ["updated_at", "2015-02-09 20:43:40.740085"], ["file_ext", "m3u"], ["mime_type", "audio/x-mpegurl"]]
|
623
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
624
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
625
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
626
|
+
[1m[35m (0.1ms)[0m BEGIN
|
627
|
+
-------------------------------------------
|
628
|
+
PushType::Asset::#kind: test_0010_anonymous
|
629
|
+
-------------------------------------------
|
630
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
631
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
632
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
633
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
634
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "video.mp4"], ["file_size", 424925], ["file_uid", "15"], ["created_at", "2015-02-09 20:43:40.745210"], ["updated_at", "2015-02-09 20:43:40.745210"], ["file_ext", "mp4"], ["mime_type", "video/mp4"]]
|
603
635
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
604
636
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
605
637
|
[1m[35m (0.1ms)[0m ROLLBACK
|
606
638
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
607
|
-
|
608
|
-
|
609
|
-
|
639
|
+
-------------------------------------------
|
640
|
+
PushType::Asset::#kind: test_0009_anonymous
|
641
|
+
-------------------------------------------
|
642
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
643
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
644
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
645
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
646
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "video.mp4"], ["file_size", 424925], ["file_uid", "16"], ["created_at", "2015-02-09 20:43:40.761847"], ["updated_at", "2015-02-09 20:43:40.761847"], ["file_ext", "mp4"], ["mime_type", "video/mp4"]]
|
647
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
648
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
649
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
650
|
+
[1m[35m (0.1ms)[0m BEGIN
|
651
|
+
-------------------------------------------
|
652
|
+
PushType::Asset::#kind: test_0011_anonymous
|
653
|
+
-------------------------------------------
|
654
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
655
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
656
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
657
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
658
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "video.mp4"], ["file_size", 424925], ["file_uid", "17"], ["created_at", "2015-02-09 20:43:40.769322"], ["updated_at", "2015-02-09 20:43:40.769322"], ["file_ext", "mp4"], ["mime_type", "video/mp4"]]
|
659
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
660
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
661
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
662
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
663
|
+
-------------------------------------------
|
664
|
+
PushType::Asset::#kind: test_0012_anonymous
|
665
|
+
-------------------------------------------
|
610
666
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
611
667
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
612
668
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
613
669
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
614
|
-
[1m[
|
615
|
-
[1m[
|
616
|
-
[1m[35m (0.1ms)[0m
|
617
|
-
[1m[
|
618
|
-
[1m[35m (0.
|
670
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "video.mp4"], ["file_size", 424925], ["file_uid", "18"], ["created_at", "2015-02-09 20:43:40.774383"], ["updated_at", "2015-02-09 20:43:40.774383"], ["file_ext", "mp4"], ["mime_type", "video/mp4"]]
|
671
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
672
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
673
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
674
|
+
[1m[35m (0.1ms)[0m BEGIN
|
675
|
+
------------------------------------------------------
|
676
|
+
.exposed: test_0002_it should omit any unexposed nodes
|
677
|
+
------------------------------------------------------
|
678
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
679
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
680
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
681
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE (push_type_nodes.type NOT IN ('TestPage'))
|
682
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
683
|
+
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-14' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
684
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["type", "TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-14"], ["status", 0], ["created_at", "2015-02-09 20:43:40.780621"], ["updated_at", "2015-02-09 20:43:40.780621"]]
|
685
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t503d1ee1a27d8c0e5e9a8966b6ccdfa3
|
686
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "9c8e0522-9e5b-4ca6-9633-b8bd8ebb761b"], ["descendant_id", "9c8e0522-9e5b-4ca6-9633-b8bd8ebb761b"], ["generations", 0]]
|
687
|
+
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
619
688
|
SET "sort_order" = t.seq + -1
|
620
689
|
FROM (
|
621
690
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -624,25 +693,27 @@ FROM (
|
|
624
693
|
) AS t
|
625
694
|
WHERE "push_type_nodes"."id" = t.id
|
626
695
|
|
627
|
-
[1m[
|
628
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
629
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
696
|
+
[1m[36mTestPage Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "9c8e0522-9e5b-4ca6-9633-b8bd8ebb761b"]]
|
697
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "9c8e0522-9e5b-4ca6-9633-b8bd8ebb761b"]]
|
698
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS ta741a41ff1e35d498d4496b2412a2b4f[0m
|
630
699
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
631
|
-
[1m[36m (0.1ms)[0m [
|
632
|
-
[1m[35m (0.
|
633
|
-
[1m[36m (0.1ms)[0m [
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
[1m[36m (0.0ms)[0m [
|
639
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
700
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "push_type_nodes" WHERE (push_type_nodes.type NOT IN ('TestPage'))[0m
|
701
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
702
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
703
|
+
[1m[35m (0.1ms)[0m BEGIN
|
704
|
+
-----------------------------------------------------
|
705
|
+
.exposed: test_0001_it should scope all exposed nodes
|
706
|
+
-----------------------------------------------------
|
707
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
708
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
709
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
710
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "push_type_nodes"
|
640
711
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
641
|
-
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-
|
642
|
-
[1m[36mSQL (0.
|
643
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS
|
644
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "
|
645
|
-
[1m[35m (0.
|
712
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-15' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
713
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["type", "TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-15"], ["status", 0], ["created_at", "2015-02-09 20:43:40.790303"], ["updated_at", "2015-02-09 20:43:40.790303"]]
|
714
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tf5debbea2db24c70ed6b98668186021b
|
715
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "b019c796-5a01-478e-907a-f696b806a4b4"], ["descendant_id", "b019c796-5a01-478e-907a-f696b806a4b4"], ["generations", 0]]
|
716
|
+
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
646
717
|
SET "sort_order" = t.seq + -1
|
647
718
|
FROM (
|
648
719
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -651,113 +722,95 @@ FROM (
|
|
651
722
|
) AS t
|
652
723
|
WHERE "push_type_nodes"."id" = t.id
|
653
724
|
|
654
|
-
[1m[
|
655
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
656
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
725
|
+
[1m[36mTestPage Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "b019c796-5a01-478e-907a-f696b806a4b4"]]
|
726
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "b019c796-5a01-478e-907a-f696b806a4b4"]]
|
727
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t1dca0e0fabc98b3f796465435856ad79[0m
|
657
728
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
658
|
-
[1m[36m (0.1ms)[0m [
|
659
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
660
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
661
|
-
--------------------------------------------------------------------
|
662
|
-
PushType::Asset::#media::with a geometry string: test_0001_anonymous
|
663
|
-
--------------------------------------------------------------------
|
664
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
665
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
666
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
667
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
668
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-02-08 15:03:09.705570"], ["updated_at", "2015-02-08 15:03:09.705570"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
669
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
729
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "push_type_nodes"[0m
|
670
730
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
671
731
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
672
732
|
[1m[35m (0.0ms)[0m BEGIN
|
673
|
-
|
674
|
-
PushType::
|
675
|
-
|
733
|
+
-----------------------------------
|
734
|
+
PushType::Node: test_0001_anonymous
|
735
|
+
-----------------------------------
|
676
736
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
677
737
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
678
738
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
679
|
-
[1m[
|
680
|
-
[1m[
|
681
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
682
|
-
DRAGONFLY: shell command: 'convert' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150208-6151-18rrjl1' '-resize' '48x56^^' '-gravity' 'Center' '-crop' '48x56+0+0' '+repage' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20150208-6151-1cegg8r.png'
|
683
|
-
DRAGONFLY: shell command: 'identify' '-ping' '-format' '%m %w %h' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20150208-6151-1cegg8r.png'
|
684
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
739
|
+
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" IS NULL AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
740
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
685
741
|
[1m[35m (0.1ms)[0m ROLLBACK
|
686
742
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
687
|
-
|
688
|
-
PushType::
|
689
|
-
|
690
|
-
[1m[35m (0.
|
743
|
+
------------------------------------------------------------------
|
744
|
+
PushType::Node: test_0002_should be valid with required attributes
|
745
|
+
------------------------------------------------------------------
|
746
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
691
747
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
692
|
-
[1m[35m (0.
|
693
|
-
[1m[
|
694
|
-
[1m[
|
695
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
696
|
-
DRAGONFLY: shell command: 'convert' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150208-6151-h38fsv' '-resize' '48x56^^' '-gravity' 'Center' '-crop' '48x56+0+0' '+repage' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20150208-6151-1r8o6eu.png'
|
697
|
-
DRAGONFLY: shell command: 'identify' '-ping' '-format' '%m %w %h' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20150208-6151-1r8o6eu.png'
|
698
|
-
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
748
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
749
|
+
[1m[36mPushType::Node Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-16' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
750
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
699
751
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
700
752
|
[1m[35m (0.1ms)[0m BEGIN
|
701
|
-
|
702
|
-
PushType::Asset::#
|
703
|
-
|
704
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
705
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
753
|
+
----------------------------------------------------
|
754
|
+
PushType::Asset::#preview_thumb: test_0001_anonymous
|
755
|
+
----------------------------------------------------
|
706
756
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
757
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
758
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
707
759
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
708
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "
|
760
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["created_at", "2015-02-09 20:43:40.806993"], ["updated_at", "2015-02-09 20:43:40.806993"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
709
761
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
762
|
+
DRAGONFLY: shell command: 'identify' '-ping' '-format' '%m %w %h' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150209-10796-19ey2dz'
|
710
763
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
711
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
712
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
713
|
-
|
714
|
-
PushType::Asset::#
|
715
|
-
|
764
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
765
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
766
|
+
----------------------------------------------------
|
767
|
+
PushType::Asset::#preview_thumb: test_0002_anonymous
|
768
|
+
----------------------------------------------------
|
716
769
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
717
770
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
718
771
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
719
772
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
720
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "
|
773
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "20"], ["created_at", "2015-02-09 20:43:40.821074"], ["updated_at", "2015-02-09 20:43:40.821074"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
|
721
774
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
722
775
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
723
776
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
724
777
|
[1m[35m (0.1ms)[0m BEGIN
|
725
|
-
|
726
|
-
PushType::Asset::#
|
727
|
-
|
728
|
-
[1m[36m (0.
|
778
|
+
--------------------------------------------------------------------------------------------
|
779
|
+
PushType::Asset::#description_or_file_name: test_0002_should return description when present
|
780
|
+
--------------------------------------------------------------------------------------------
|
781
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
729
782
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
730
|
-
[1m[36m (0.
|
783
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
731
784
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
732
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "
|
785
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["created_at", "2015-02-09 20:43:40.828764"], ["updated_at", "2015-02-09 20:43:40.828764"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
733
786
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
734
787
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
735
788
|
[1m[35m (0.1ms)[0m ROLLBACK
|
736
789
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
737
|
-
|
738
|
-
PushType::Asset::#
|
739
|
-
|
790
|
+
---------------------------------------------------------------
|
791
|
+
PushType::Asset::#description_or_file_name: test_0001_anonymous
|
792
|
+
---------------------------------------------------------------
|
740
793
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
741
794
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
742
795
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
743
796
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
744
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "
|
797
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-02-09 20:43:40.833139"], ["updated_at", "2015-02-09 20:43:40.833139"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
745
798
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
746
799
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
747
800
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
748
|
-
[1m[35m (0.
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
[1m[36m (0.
|
753
|
-
[1m[35m (0.
|
754
|
-
[1m[36m (0.
|
801
|
+
[1m[35m (0.0ms)[0m BEGIN
|
802
|
+
-------------------------------------------------------
|
803
|
+
#set_published_at::when publishing: test_0001_anonymous
|
804
|
+
-------------------------------------------------------
|
805
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
806
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
807
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
755
808
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
756
|
-
[1m[36mPushType::Node Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-
|
757
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("
|
758
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS
|
759
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "
|
760
|
-
[1m[36m (0.
|
809
|
+
[1m[36mPushType::Node Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-17' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
810
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-17"], ["created_at", "2015-02-09 20:43:40.837877"], ["updated_at", "2015-02-09 20:43:40.837877"]]
|
811
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS tb474e21e016d4862a8e5dc389790e211[0m
|
812
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f02cb7f1-5a42-4e3a-83ab-c3543d155fd5"], ["descendant_id", "f02cb7f1-5a42-4e3a-83ab-c3543d155fd5"], ["generations", 0]]
|
813
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "push_type_nodes"
|
761
814
|
SET "sort_order" = t.seq + -1
|
762
815
|
FROM (
|
763
816
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -766,30 +819,28 @@ FROM (
|
|
766
819
|
) AS t
|
767
820
|
WHERE "push_type_nodes"."id" = t.id
|
768
821
|
[0m
|
769
|
-
[1m[
|
770
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "
|
771
|
-
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS
|
822
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "f02cb7f1-5a42-4e3a-83ab-c3543d155fd5"]]
|
823
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "f02cb7f1-5a42-4e3a-83ab-c3543d155fd5"]]
|
824
|
+
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t2e808581ab37bef71d8731f2f3d5e6a8
|
772
825
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
773
|
-
[1m[35mPushType::Node Load (0.3ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "db2b9b9c-2e44-4001-ae6c-2abb01f92a5b"]]
|
774
|
-
Processing by FrontEndController#node as HTML
|
775
|
-
Parameters: {"permalink"=>"foo-bar-21"}
|
776
|
-
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-08 15:03:09.799603') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-08 15:03:09.799772') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1[0m [["slug", "foo-bar-21"]]
|
777
|
-
Rendered nodes/page.html.erb within layouts/application (1.0ms)
|
778
|
-
Completed 200 OK in 20ms (Views: 11.5ms | ActiveRecord: 0.2ms)
|
779
|
-
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
780
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
781
|
-
[1m[35m (0.1ms)[0m BEGIN
|
782
|
-
--------------------------------------------------------------------------
|
783
|
-
FrontEndController::GET #node::when node is published: test_0001_anonymous
|
784
|
-
--------------------------------------------------------------------------
|
785
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
786
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
787
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
788
826
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
789
|
-
[1m[
|
790
|
-
[1m[
|
791
|
-
[1m[36m (0.1ms)[0m [
|
792
|
-
[1m[
|
827
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "push_type_nodes" SET "status" = $1, "published_at" = $2, "updated_at" = $3 WHERE "push_type_nodes"."id" = $4[0m [["status", 1], ["published_at", "2015-02-09 20:43:40.844224"], ["updated_at", "2015-02-09 20:43:40.844402"], ["id", "f02cb7f1-5a42-4e3a-83ab-c3543d155fd5"]]
|
828
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
829
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
830
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
831
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
832
|
+
----------------------------------------------------------------------
|
833
|
+
.published::with published_at dates in the future: test_0001_anonymous
|
834
|
+
----------------------------------------------------------------------
|
835
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
836
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
837
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
838
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:40.849171') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:40.849300')[0m
|
839
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
840
|
+
[1m[36mPushType::Node Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-18' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
841
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-18"], ["published_at", "2015-02-10 20:43:40.849915"], ["created_at", "2015-02-09 20:43:40.851664"], ["updated_at", "2015-02-09 20:43:40.851664"]]
|
842
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t8e99a1b0293ac66940ba4ac818933a33[0m
|
843
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e4cede0e-00b7-4da1-bb30-c4c779f00072"], ["descendant_id", "e4cede0e-00b7-4da1-bb30-c4c779f00072"], ["generations", 0]]
|
793
844
|
[1m[36m (0.3ms)[0m [1mUPDATE "push_type_nodes"
|
794
845
|
SET "sort_order" = t.seq + -1
|
795
846
|
FROM (
|
@@ -799,30 +850,50 @@ FROM (
|
|
799
850
|
) AS t
|
800
851
|
WHERE "push_type_nodes"."id" = t.id
|
801
852
|
[0m
|
802
|
-
[1m[
|
803
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "
|
804
|
-
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS
|
853
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "e4cede0e-00b7-4da1-bb30-c4c779f00072"]]
|
854
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "e4cede0e-00b7-4da1-bb30-c4c779f00072"]]
|
855
|
+
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t32531a38f9a1cd6ee569782c9d996d2f
|
856
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
857
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:40.849171') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:40.849300')
|
858
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
859
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
860
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
861
|
+
----------------------------------------------------
|
862
|
+
PushType::Asset::#set_mime_type: test_0001_anonymous
|
863
|
+
----------------------------------------------------
|
864
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
865
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
866
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
867
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
868
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-02-09 20:43:40.862206"], ["updated_at", "2015-02-09 20:43:40.862206"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
805
869
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
806
|
-
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "6c5b99f9-45ab-4627-9458-c8e53f85f7d4"]]
|
807
|
-
Processing by FrontEndController#node as HTML
|
808
|
-
Parameters: {"permalink"=>"foo-bar-22"}
|
809
|
-
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-08 15:03:09.827192') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-08 15:03:09.827287') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1[0m [["slug", "foo-bar-22"]]
|
810
|
-
Rendered nodes/page.html.erb within layouts/application (0.1ms)
|
811
|
-
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
812
870
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
813
871
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
814
872
|
[1m[35m (0.1ms)[0m BEGIN
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
[1m[36m (0.
|
873
|
+
----------------------------------------------------
|
874
|
+
PushType::Asset::#set_mime_type: test_0002_anonymous
|
875
|
+
----------------------------------------------------
|
876
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
819
877
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
820
878
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
821
879
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
822
|
-
[1m[
|
823
|
-
[1m[
|
824
|
-
[1m[36m (0.1ms)[0m [
|
825
|
-
[1m[
|
880
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "24"], ["created_at", "2015-02-09 20:43:40.866582"], ["updated_at", "2015-02-09 20:43:40.866582"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
881
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
882
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
883
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
884
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
885
|
+
---------------------------------------------------------
|
886
|
+
.published::without published status: test_0001_anonymous
|
887
|
+
---------------------------------------------------------
|
888
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
889
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
890
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
891
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:40.870770') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:40.870856')[0m
|
892
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
893
|
+
[1m[36mPushType::Node Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-19' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
894
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-19"], ["created_at", "2015-02-09 20:43:40.873195"], ["updated_at", "2015-02-09 20:43:40.873195"]]
|
895
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t6d5718f86398780a157493267906f159[0m
|
896
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "320d66e5-4d5e-4539-a47a-6ccc1f5b301d"], ["descendant_id", "320d66e5-4d5e-4539-a47a-6ccc1f5b301d"], ["generations", 0]]
|
826
897
|
[1m[36m (0.3ms)[0m [1mUPDATE "push_type_nodes"
|
827
898
|
SET "sort_order" = t.seq + -1
|
828
899
|
FROM (
|
@@ -832,24 +903,59 @@ FROM (
|
|
832
903
|
) AS t
|
833
904
|
WHERE "push_type_nodes"."id" = t.id
|
834
905
|
[0m
|
835
|
-
[1m[
|
836
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "
|
837
|
-
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS
|
906
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "320d66e5-4d5e-4539-a47a-6ccc1f5b301d"]]
|
907
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "320d66e5-4d5e-4539-a47a-6ccc1f5b301d"]]
|
908
|
+
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS tbf64180300681cd0c6f6bd5a73ff0466
|
838
909
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
839
|
-
[1m[
|
910
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:40.870770') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:40.870856')
|
911
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
912
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
913
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
914
|
+
--------------------------------------------------------------------------
|
915
|
+
FrontEndController::GET #node::when node is published: test_0001_anonymous
|
916
|
+
--------------------------------------------------------------------------
|
917
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
918
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
919
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
920
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
921
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-20' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
922
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-20"], ["status", 1], ["published_at", "2015-02-09 20:43:40.883539"], ["created_at", "2015-02-09 20:43:40.883737"], ["updated_at", "2015-02-09 20:43:40.883737"]]
|
923
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t9ef268474380932028b8f9dc86b81ed2
|
924
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "31490672-25cf-4a9c-ae24-94669b6efe22"], ["descendant_id", "31490672-25cf-4a9c-ae24-94669b6efe22"], ["generations", 0]]
|
925
|
+
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
926
|
+
SET "sort_order" = t.seq + -1
|
927
|
+
FROM (
|
928
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
929
|
+
FROM "push_type_nodes"
|
930
|
+
WHERE "parent_id" IS NULL
|
931
|
+
) AS t
|
932
|
+
WHERE "push_type_nodes"."id" = t.id
|
933
|
+
|
934
|
+
[1m[36mPage Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "31490672-25cf-4a9c-ae24-94669b6efe22"]]
|
935
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "31490672-25cf-4a9c-ae24-94669b6efe22"]]
|
936
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t18f1e241eb009c8406f5b835ce9d2ac7[0m
|
937
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
938
|
+
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc[0m [["descendant_id", "31490672-25cf-4a9c-ae24-94669b6efe22"]]
|
840
939
|
Processing by FrontEndController#node as HTML
|
841
|
-
Parameters: {"permalink"=>"foo-bar-
|
842
|
-
[1m[
|
843
|
-
Rendered nodes/page.html.erb within layouts/application (
|
844
|
-
Completed 200 OK in
|
845
|
-
[1m[
|
846
|
-
[1m[
|
847
|
-
[1m[
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
[1m[
|
852
|
-
[1m[36m (0.
|
940
|
+
Parameters: {"permalink"=>"foo-bar-20"}
|
941
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:40.897232') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:40.897388') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1 [["slug", "foo-bar-20"]]
|
942
|
+
Rendered nodes/page.html.erb within layouts/application (1.1ms)
|
943
|
+
Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.2ms)
|
944
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
945
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
946
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
947
|
+
--------------------------------------------------------------------------
|
948
|
+
FrontEndController::GET #node::when node is published: test_0002_anonymous
|
949
|
+
--------------------------------------------------------------------------
|
950
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
951
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
952
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
953
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
954
|
+
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-21' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
955
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-21"], ["status", 1], ["published_at", "2015-02-09 20:43:40.917700"], ["created_at", "2015-02-09 20:43:40.917926"], ["updated_at", "2015-02-09 20:43:40.917926"]]
|
956
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tb81db46c83066c49f3959d578852d225
|
957
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "0e982ccd-b115-4689-b19e-99e42553f32e"], ["descendant_id", "0e982ccd-b115-4689-b19e-99e42553f32e"], ["generations", 0]]
|
958
|
+
[1m[35m (0.4ms)[0m UPDATE "push_type_nodes"
|
853
959
|
SET "sort_order" = t.seq + -1
|
854
960
|
FROM (
|
855
961
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -857,24 +963,31 @@ FROM (
|
|
857
963
|
WHERE "parent_id" IS NULL
|
858
964
|
) AS t
|
859
965
|
WHERE "push_type_nodes"."id" = t.id
|
860
|
-
|
861
|
-
[1m[
|
862
|
-
[1m[
|
863
|
-
[1m[
|
864
|
-
[1m[
|
865
|
-
[1m[
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
[1m[36m (0.1ms)[0m [
|
872
|
-
[1m[35m (0.
|
966
|
+
|
967
|
+
[1m[36mPage Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "0e982ccd-b115-4689-b19e-99e42553f32e"]]
|
968
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "0e982ccd-b115-4689-b19e-99e42553f32e"]]
|
969
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t82d42cb84cda8d3df2b5bb1d47501e32[0m
|
970
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
971
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc[0m [["descendant_id", "0e982ccd-b115-4689-b19e-99e42553f32e"]]
|
972
|
+
Processing by FrontEndController#node as HTML
|
973
|
+
Parameters: {"permalink"=>"foo-bar-21"}
|
974
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:40.926974') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:40.927089') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1 [["slug", "foo-bar-21"]]
|
975
|
+
Rendered nodes/page.html.erb within layouts/application (0.1ms)
|
976
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
977
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
978
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
979
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
980
|
+
--------------------------------------------------------------------------
|
981
|
+
FrontEndController::GET #node::when node is published: test_0003_anonymous
|
982
|
+
--------------------------------------------------------------------------
|
983
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
984
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
985
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
873
986
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
874
|
-
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-
|
875
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("
|
876
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS
|
877
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "
|
987
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-22' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
988
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-22"], ["status", 1], ["published_at", "2015-02-09 20:43:40.933269"], ["created_at", "2015-02-09 20:43:40.933460"], ["updated_at", "2015-02-09 20:43:40.933460"]]
|
989
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tc5da59993bdb3dab721bfc468e98fc39
|
990
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "85222553-510b-47bd-8a3f-6c964899e193"], ["descendant_id", "85222553-510b-47bd-8a3f-6c964899e193"], ["generations", 0]]
|
878
991
|
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
879
992
|
SET "sort_order" = t.seq + -1
|
880
993
|
FROM (
|
@@ -884,71 +997,100 @@ FROM (
|
|
884
997
|
) AS t
|
885
998
|
WHERE "push_type_nodes"."id" = t.id
|
886
999
|
|
887
|
-
[1m[
|
888
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
889
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
1000
|
+
[1m[36mPage Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "85222553-510b-47bd-8a3f-6c964899e193"]]
|
1001
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "85222553-510b-47bd-8a3f-6c964899e193"]]
|
1002
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t0afe837022e1f8c5c5b3c0c75687ddfb[0m
|
890
1003
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
891
|
-
[1m[
|
1004
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc[0m [["descendant_id", "85222553-510b-47bd-8a3f-6c964899e193"]]
|
1005
|
+
Processing by FrontEndController#node as HTML
|
1006
|
+
Parameters: {"permalink"=>"foo-bar-22"}
|
1007
|
+
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:40.942002') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:40.942106') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1 [["slug", "foo-bar-22"]]
|
1008
|
+
Rendered nodes/page.html.erb within layouts/application (0.1ms)
|
1009
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
1010
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1011
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1012
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1013
|
+
----------------------------------------------------------------------
|
1014
|
+
.published::with published_to dates in the future: test_0001_anonymous
|
1015
|
+
----------------------------------------------------------------------
|
1016
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1017
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1018
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1019
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:40.952150') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:40.952240')[0m
|
1020
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1021
|
+
[1m[36mPushType::Node Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-23' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1022
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-23"], ["published_at", "2015-02-07 20:43:40.952882"], ["published_to", "2015-02-10 20:43:40.952943"], ["created_at", "2015-02-09 20:43:40.955156"], ["updated_at", "2015-02-09 20:43:40.955156"]]
|
1023
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS td3821439cf75badf7b42229296b09695[0m
|
1024
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f1c27b20-90d6-4618-a243-b2302e73ff5a"], ["descendant_id", "f1c27b20-90d6-4618-a243-b2302e73ff5a"], ["generations", 0]]
|
1025
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "push_type_nodes"
|
1026
|
+
SET "sort_order" = t.seq + -1
|
1027
|
+
FROM (
|
1028
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1029
|
+
FROM "push_type_nodes"
|
1030
|
+
WHERE "parent_id" IS NULL
|
1031
|
+
) AS t
|
1032
|
+
WHERE "push_type_nodes"."id" = t.id
|
1033
|
+
[0m
|
1034
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "f1c27b20-90d6-4618-a243-b2302e73ff5a"]]
|
1035
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "f1c27b20-90d6-4618-a243-b2302e73ff5a"]]
|
1036
|
+
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t156f3339e8e42829a1fc246af5f28ac4
|
1037
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1038
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:40.952150') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:40.952240')
|
1039
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1040
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1041
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1042
|
+
-----------------------------------
|
1043
|
+
PushType::User: test_0001_anonymous
|
1044
|
+
-----------------------------------
|
1045
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1046
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1047
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1048
|
+
[1m[36mPushType::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" IS NULL LIMIT 1[0m
|
892
1049
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
893
1050
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
894
1051
|
[1m[35m (0.1ms)[0m BEGIN
|
895
|
-
|
896
|
-
PushType::
|
897
|
-
|
1052
|
+
------------------------------------------------------------------
|
1053
|
+
PushType::User: test_0002_should be valid with required attributes
|
1054
|
+
------------------------------------------------------------------
|
898
1055
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
899
|
-
[1m[35m (0.
|
1056
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
900
1057
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
901
|
-
[1m[
|
902
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "11"], ["created_at", "2015-02-08 15:03:09.866716"], ["updated_at", "2015-02-08 15:03:09.866716"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
903
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1058
|
+
[1m[35mPushType::User Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
|
904
1059
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
905
1060
|
[1m[35m (0.1ms)[0m ROLLBACK
|
906
|
-
[1m[36m (0.
|
1061
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
907
1062
|
-----------------------------------------------------------------
|
908
1063
|
PushType::Asset::#media::with original style: test_0002_anonymous
|
909
1064
|
-----------------------------------------------------------------
|
910
1065
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
911
1066
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
912
|
-
[1m[35m (0.
|
1067
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
913
1068
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
914
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "
|
1069
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2015-02-09 20:43:40.981334"], ["updated_at", "2015-02-09 20:43:40.981334"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
|
915
1070
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
916
1071
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
917
1072
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
918
1073
|
[1m[35m (0.1ms)[0m BEGIN
|
919
|
-
|
920
|
-
PushType::
|
921
|
-
|
922
|
-
[1m[36m (0.
|
1074
|
+
-----------------------------------------------------------------
|
1075
|
+
PushType::Asset::#media::with original style: test_0001_anonymous
|
1076
|
+
-----------------------------------------------------------------
|
1077
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
923
1078
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
924
1079
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
925
|
-
[1m[
|
1080
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1081
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "26"], ["created_at", "2015-02-09 20:43:40.985564"], ["updated_at", "2015-02-09 20:43:40.985564"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
1082
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
926
1083
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
927
1084
|
[1m[35m (0.1ms)[0m ROLLBACK
|
928
|
-
[1m[36m (0.1ms)[0m [
|
929
|
-
|
930
|
-
|
931
|
-
------------------------------------------------------------------
|
932
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
933
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
934
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
935
|
-
[1m[36mPushType::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1[0m
|
936
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
937
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1085
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL[0m
|
1086
|
+
[1m[35m (28.0ms)[0m TRUNCATE TABLE "public"."schema_migrations", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets" RESTART IDENTITY CASCADE;
|
1087
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL[0m
|
938
1088
|
[1m[35m (0.1ms)[0m BEGIN
|
939
|
-
|
940
|
-
.
|
941
|
-
|
942
|
-
[1m[
|
943
|
-
[1m[
|
944
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
945
|
-
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-08 15:03:09.890141') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-08 15:03:09.890253')
|
946
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
947
|
-
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-26' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
948
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-26"], ["published_at", "2015-02-09 15:03:09.890832"], ["created_at", "2015-02-08 15:03:09.892633"], ["updated_at", "2015-02-08 15:03:09.892633"]]
|
949
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tdafa5e4156d5d82c749f847318346842
|
950
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "79c2c03b-6627-49f5-8ae0-d0291d90f619"], ["descendant_id", "79c2c03b-6627-49f5-8ae0-d0291d90f619"], ["generations", 0]]
|
951
|
-
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
1089
|
+
[1m[36mPushType::Node Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-24' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1090
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"tags\":[\"foo\",\"bar\"]}"], ["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-24"], ["status", 0], ["created_at", "2015-02-09 20:43:41.021342"], ["updated_at", "2015-02-09 20:43:41.021342"]]
|
1091
|
+
[1m[36m (0.2ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t61d76c7ebd670fb2c999db6d405ce523[0m
|
1092
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "996c3d27-b963-4e87-9714-fee0d90a8c88"], ["descendant_id", "996c3d27-b963-4e87-9714-fee0d90a8c88"], ["generations", 0]]
|
1093
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "push_type_nodes"
|
952
1094
|
SET "sort_order" = t.seq + -1
|
953
1095
|
FROM (
|
954
1096
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -956,27 +1098,18 @@ FROM (
|
|
956
1098
|
WHERE "parent_id" IS NULL
|
957
1099
|
) AS t
|
958
1100
|
WHERE "push_type_nodes"."id" = t.id
|
959
|
-
|
960
|
-
[1m[
|
961
|
-
[1m[
|
962
|
-
[1m[
|
963
|
-
[1m[
|
964
|
-
[1m[
|
965
|
-
[1m[
|
966
|
-
[1m[
|
967
|
-
[1m[
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
972
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
973
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
974
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
975
|
-
[1m[36mPushType::Node Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-27' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
976
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-27"], ["published_at", "2015-02-08 15:03:09.902704"], ["created_at", "2015-02-08 15:03:09.902900"], ["updated_at", "2015-02-08 15:03:09.902900"]]
|
977
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t96b72f0058cf09ad19782bcd45cc3d74[0m
|
978
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a5909854-f8e3-4fb2-b773-92bb94192fec"], ["descendant_id", "a5909854-f8e3-4fb2-b773-92bb94192fec"], ["generations", 0]]
|
979
|
-
[1m[36m (0.3ms)[0m [1mUPDATE "push_type_nodes"
|
1101
|
+
[0m
|
1102
|
+
[1m[35mPage Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "996c3d27-b963-4e87-9714-fee0d90a8c88"]]
|
1103
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "996c3d27-b963-4e87-9714-fee0d90a8c88"]]
|
1104
|
+
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS te646af0cb47d0f180e256e517327976e
|
1105
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
1106
|
+
[1m[35m (0.2ms)[0m SELECT DISTINCT jsonb_array_elements_text(field_store->'tags') AS _tag FROM push_type_nodes WHERE push_type_nodes.type IN ('Page') ORDER BY _tag
|
1107
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1108
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-25' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1109
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-25"], ["deleted_at", "2015-02-09 20:43:41.029962"], ["created_at", "2015-02-09 20:43:41.031603"], ["updated_at", "2015-02-09 20:43:41.031603"]]
|
1110
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS ta4cf49de3a39f89e9098c87d49ac55cc
|
1111
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "e33be9e9-89de-4792-ae6e-b4cc32b0ef22"], ["descendant_id", "e33be9e9-89de-4792-ae6e-b4cc32b0ef22"], ["generations", 0]]
|
1112
|
+
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
980
1113
|
SET "sort_order" = t.seq + -1
|
981
1114
|
FROM (
|
982
1115
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -984,21 +1117,23 @@ FROM (
|
|
984
1117
|
WHERE "parent_id" IS NULL
|
985
1118
|
) AS t
|
986
1119
|
WHERE "push_type_nodes"."id" = t.id
|
987
|
-
|
988
|
-
[1m[
|
989
|
-
[1m[
|
990
|
-
[1m[
|
991
|
-
[1m[
|
992
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_2
|
993
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "push_type_nodes" SET "status" = $1, "published_at" = $2, "updated_at" = $3 WHERE "push_type_nodes"."id" = $4[0m [["status", 0], ["published_at", nil], ["updated_at", "2015-02-08 15:03:09.908486"], ["id", "a5909854-f8e3-4fb2-b773-92bb94192fec"]]
|
994
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
995
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
996
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1120
|
+
|
1121
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "e33be9e9-89de-4792-ae6e-b4cc32b0ef22"]]
|
1122
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "e33be9e9-89de-4792-ae6e-b4cc32b0ef22"]]
|
1123
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tebdbfa45d74b515f6f3b89a94fabd951[0m
|
1124
|
+
[1m[35m (0.4ms)[0m COMMIT
|
997
1125
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
[1m[
|
1126
|
+
-----------------------------------------------
|
1127
|
+
PushType::Node::#permalink: test_0001_anonymous
|
1128
|
+
-----------------------------------------------
|
1129
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1130
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1131
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1132
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1133
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'one' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1134
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["status", 0], ["title", "Foo bar"], ["slug", "one"], ["created_at", "2015-02-09 20:43:41.046580"], ["updated_at", "2015-02-09 20:43:41.046580"]]
|
1135
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tb6ae3f836af25d9490cc468b50b019fd
|
1136
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "a790a5cf-2aa1-47c1-b6bc-96f2f36e0edc"], ["descendant_id", "a790a5cf-2aa1-47c1-b6bc-96f2f36e0edc"], ["generations", 0]]
|
1002
1137
|
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
1003
1138
|
SET "sort_order" = t.seq + -1
|
1004
1139
|
FROM (
|
@@ -1008,351 +1143,202 @@ FROM (
|
|
1008
1143
|
) AS t
|
1009
1144
|
WHERE "push_type_nodes"."id" = t.id
|
1010
1145
|
|
1011
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "
|
1012
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
1013
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
1014
|
-
[1m[35m (0.
|
1015
|
-
[1m[36m (0.1ms)[0m [
|
1016
|
-
[1m[
|
1017
|
-
[1m[
|
1018
|
-
[1m[35m (0.1ms)[0m
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
[1m[36mPushType::Node Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'one' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1027
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "one"], ["created_at", "2015-02-08 15:03:09.924020"], ["updated_at", "2015-02-08 15:03:09.924020"]]
|
1028
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t6cf3c1666dc28ba43214494d42460804[0m
|
1029
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "14c88382-5e3e-4524-aaf6-9ee9e054ad65"], ["descendant_id", "14c88382-5e3e-4524-aaf6-9ee9e054ad65"], ["generations", 0]]
|
1146
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "a790a5cf-2aa1-47c1-b6bc-96f2f36e0edc"]]
|
1147
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "a790a5cf-2aa1-47c1-b6bc-96f2f36e0edc"]]
|
1148
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t88e72bc9e28eb410650f9e7a18f592e4[0m
|
1149
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1150
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1151
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'two' AND "push_type_nodes"."parent_id" = 'a790a5cf-2aa1-47c1-b6bc-96f2f36e0edc') LIMIT 1
|
1152
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "parent_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 0], ["title", "Foo bar"], ["slug", "two"], ["parent_id", "a790a5cf-2aa1-47c1-b6bc-96f2f36e0edc"], ["created_at", "2015-02-09 20:43:41.053206"], ["updated_at", "2015-02-09 20:43:41.053206"]]
|
1153
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t495228219d677597b920d34a2466e161
|
1154
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "db7a8e58-3139-4d8d-9bc0-34ac132c6473"], ["descendant_id", "db7a8e58-3139-4d8d-9bc0-34ac132c6473"], ["generations", 0]]
|
1155
|
+
[1m[35m (0.2ms)[0m INSERT INTO "push_type_node_hierarchies"
|
1156
|
+
(ancestor_id, descendant_id, generations)
|
1157
|
+
SELECT x.ancestor_id, 'db7a8e58-3139-4d8d-9bc0-34ac132c6473', x.generations + 1
|
1158
|
+
FROM "push_type_node_hierarchies" x
|
1159
|
+
WHERE x.descendant_id = 'a790a5cf-2aa1-47c1-b6bc-96f2f36e0edc'
|
1160
|
+
|
1030
1161
|
[1m[36m (0.2ms)[0m [1mUPDATE "push_type_nodes"
|
1031
1162
|
SET "sort_order" = t.seq + -1
|
1032
1163
|
FROM (
|
1033
1164
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1034
1165
|
FROM "push_type_nodes"
|
1035
|
-
WHERE "parent_id"
|
1166
|
+
WHERE "parent_id" = 'a790a5cf-2aa1-47c1-b6bc-96f2f36e0edc'
|
1036
1167
|
) AS t
|
1037
1168
|
WHERE "push_type_nodes"."id" = t.id
|
1038
1169
|
[0m
|
1039
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "
|
1040
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "
|
1041
|
-
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS
|
1170
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "db7a8e58-3139-4d8d-9bc0-34ac132c6473"]]
|
1171
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "db7a8e58-3139-4d8d-9bc0-34ac132c6473"]]
|
1172
|
+
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS ta331f1f0d75756c0d0cbfe914b316d25
|
1042
1173
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1043
1174
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1044
|
-
[1m[36mPushType::Node Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = '
|
1045
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("status", "title", "slug", "parent_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "
|
1046
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS
|
1047
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "
|
1175
|
+
[1m[36mPushType::Node Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'three' AND "push_type_nodes"."parent_id" = 'db7a8e58-3139-4d8d-9bc0-34ac132c6473') LIMIT 1[0m
|
1176
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("status", "title", "slug", "parent_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "three"], ["parent_id", "db7a8e58-3139-4d8d-9bc0-34ac132c6473"], ["created_at", "2015-02-09 20:43:41.060347"], ["updated_at", "2015-02-09 20:43:41.060347"]]
|
1177
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t797c58a54eb0548527233a42be52288d[0m
|
1178
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "cebbf494-92ac-4816-a520-191eebd1cf9d"], ["descendant_id", "cebbf494-92ac-4816-a520-191eebd1cf9d"], ["generations", 0]]
|
1048
1179
|
[1m[36m (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies"
|
1049
1180
|
(ancestor_id, descendant_id, generations)
|
1050
|
-
SELECT x.ancestor_id, '
|
1181
|
+
SELECT x.ancestor_id, 'cebbf494-92ac-4816-a520-191eebd1cf9d', x.generations + 1
|
1051
1182
|
FROM "push_type_node_hierarchies" x
|
1052
|
-
WHERE x.descendant_id = '
|
1183
|
+
WHERE x.descendant_id = 'db7a8e58-3139-4d8d-9bc0-34ac132c6473'
|
1053
1184
|
[0m
|
1054
|
-
[1m[35m (0.
|
1185
|
+
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
1055
1186
|
SET "sort_order" = t.seq + -1
|
1056
1187
|
FROM (
|
1057
1188
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1058
1189
|
FROM "push_type_nodes"
|
1059
|
-
WHERE "parent_id" = '
|
1190
|
+
WHERE "parent_id" = 'db7a8e58-3139-4d8d-9bc0-34ac132c6473'
|
1060
1191
|
) AS t
|
1061
1192
|
WHERE "push_type_nodes"."id" = t.id
|
1062
1193
|
|
1063
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "
|
1064
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
1065
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
1194
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "cebbf494-92ac-4816-a520-191eebd1cf9d"]]
|
1195
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "cebbf494-92ac-4816-a520-191eebd1cf9d"]]
|
1196
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t26614216d07d02f2446986775651ef13[0m
|
1066
1197
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1067
|
-
[1m[
|
1068
|
-
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'three' AND "push_type_nodes"."parent_id" = '74d16b7e-a48e-4d87-98dc-b911b1418a19') LIMIT 1
|
1069
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "parent_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 0], ["title", "Foo bar"], ["slug", "three"], ["parent_id", "74d16b7e-a48e-4d87-98dc-b911b1418a19"], ["created_at", "2015-02-08 15:03:09.937476"], ["updated_at", "2015-02-08 15:03:09.937476"]]
|
1070
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t23beaaf8489743d48766951cecbc27cf
|
1071
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "a45fd6a1-f21f-42c1-a2b9-24e0212f2412"], ["descendant_id", "a45fd6a1-f21f-42c1-a2b9-24e0212f2412"], ["generations", 0]]
|
1072
|
-
[1m[35m (0.2ms)[0m INSERT INTO "push_type_node_hierarchies"
|
1073
|
-
(ancestor_id, descendant_id, generations)
|
1074
|
-
SELECT x.ancestor_id, 'a45fd6a1-f21f-42c1-a2b9-24e0212f2412', x.generations + 1
|
1075
|
-
FROM "push_type_node_hierarchies" x
|
1076
|
-
WHERE x.descendant_id = '74d16b7e-a48e-4d87-98dc-b911b1418a19'
|
1077
|
-
|
1078
|
-
[1m[36m (0.3ms)[0m [1mUPDATE "push_type_nodes"
|
1079
|
-
SET "sort_order" = t.seq + -1
|
1080
|
-
FROM (
|
1081
|
-
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1082
|
-
FROM "push_type_nodes"
|
1083
|
-
WHERE "parent_id" = '74d16b7e-a48e-4d87-98dc-b911b1418a19'
|
1084
|
-
) AS t
|
1085
|
-
WHERE "push_type_nodes"."id" = t.id
|
1086
|
-
[0m
|
1087
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "a45fd6a1-f21f-42c1-a2b9-24e0212f2412"]]
|
1088
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "a45fd6a1-f21f-42c1-a2b9-24e0212f2412"]]
|
1089
|
-
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t83a310509de8d951b684f438940012c8
|
1090
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1091
|
-
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "a45fd6a1-f21f-42c1-a2b9-24e0212f2412"]]
|
1092
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1093
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1094
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1095
|
-
------------------------------------------------------------------
|
1096
|
-
PushType::Node: test_0002_should be valid with required attributes
|
1097
|
-
------------------------------------------------------------------
|
1098
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1099
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1100
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1101
|
-
[1m[36mPushType::Node Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-29' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1198
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc[0m [["descendant_id", "cebbf494-92ac-4816-a520-191eebd1cf9d"]]
|
1102
1199
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1103
1200
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1104
1201
|
[1m[35m (0.1ms)[0m BEGIN
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1202
|
+
---------------------------------------------
|
1203
|
+
exposed?::when unexposed: test_0001_anonymous
|
1204
|
+
---------------------------------------------
|
1205
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1206
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1207
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1208
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1209
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
1210
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1211
|
+
---------------------------------------------
|
1212
|
+
exposed?::when unexposed: test_0002_anonymous
|
1213
|
+
---------------------------------------------
|
1108
1214
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1109
1215
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1110
1216
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1111
|
-
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" IS NULL AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1112
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1113
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1114
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1115
|
-
----------------------------------------------------------------------------
|
1116
|
-
FrontEndController::GET #node::when node does not exist: test_0001_anonymous
|
1117
|
-
----------------------------------------------------------------------------
|
1118
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1119
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1120
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1121
|
-
Processing by FrontEndController#node as HTML
|
1122
|
-
Parameters: {"permalink"=>"does/not/exist"}
|
1123
|
-
[1m[36mPushType::Node Load (0.3ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_nodes" AS p0
|
1124
|
-
ON p0."id" =
|
1125
|
-
"push_type_nodes"."parent_id" INNER JOIN "push_type_nodes" AS p1
|
1126
|
-
ON p1."id" =
|
1127
|
-
"p0"."parent_id" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-08 15:03:09.955406') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-08 15:03:09.955507') AND "push_type_nodes"."slug" = $1 AND "p0"."slug" = 'not' AND "p1"."slug" = 'does' AND "p1"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1[0m [["slug", "exist"]]
|
1128
|
-
Completed 404 Not Found in 3ms
|
1129
1217
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1130
|
-
[1m[36m (0.
|
1218
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
1131
1219
|
[1m[35m (0.1ms)[0m BEGIN
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1220
|
+
--------------------------------------------------------------------
|
1221
|
+
.published::with published_at dates in the past: test_0001_anonymous
|
1222
|
+
--------------------------------------------------------------------
|
1135
1223
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1136
1224
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1137
1225
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1226
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:41.075218') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:41.075350')
|
1227
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1228
|
+
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-26' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1229
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-26"], ["published_at", "2015-02-07 20:43:41.075958"], ["created_at", "2015-02-09 20:43:41.077714"], ["updated_at", "2015-02-09 20:43:41.077714"]]
|
1230
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t0eccfca884c0f03396f919e3bb796fc4
|
1231
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "9c1c5ca7-a810-4d1c-ace9-9819750aeefd"], ["descendant_id", "9c1c5ca7-a810-4d1c-ace9-9819750aeefd"], ["generations", 0]]
|
1232
|
+
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
1233
|
+
SET "sort_order" = t.seq + -1
|
1234
|
+
FROM (
|
1235
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1236
|
+
FROM "push_type_nodes"
|
1237
|
+
WHERE "parent_id" IS NULL
|
1238
|
+
) AS t
|
1239
|
+
WHERE "push_type_nodes"."id" = t.id
|
1240
|
+
|
1241
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "9c1c5ca7-a810-4d1c-ace9-9819750aeefd"]]
|
1242
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "9c1c5ca7-a810-4d1c-ace9-9819750aeefd"]]
|
1243
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t65c30f92bdcb3e901837cb8ab499765b[0m
|
1244
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1245
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:41.075218') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:41.075350')[0m
|
1138
1246
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1139
1247
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1140
|
-
[1m[35m (0.
|
1248
|
+
[1m[35m (0.0ms)[0m BEGIN
|
1141
1249
|
----------------------------------------------
|
1142
|
-
PushType::User::#initials:
|
1250
|
+
PushType::User::#initials: test_0001_anonymous
|
1143
1251
|
----------------------------------------------
|
1144
1252
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1145
1253
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1146
1254
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1147
1255
|
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1148
1256
|
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
1149
|
-
[1m[35m (0.
|
1257
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1150
1258
|
----------------------------------------------
|
1151
|
-
PushType::User::#initials:
|
1259
|
+
PushType::User::#initials: test_0002_anonymous
|
1152
1260
|
----------------------------------------------
|
1153
|
-
[1m[36m (0.
|
1154
|
-
[1m[35m (0.
|
1261
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1262
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1155
1263
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1156
1264
|
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1157
1265
|
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
1158
1266
|
[1m[35m (0.1ms)[0m BEGIN
|
1159
|
-
|
1160
|
-
PushType::
|
1161
|
-
|
1162
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1163
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1164
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1165
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1166
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "audio.m3u"], ["file_size", 64], ["file_uid", "13"], ["created_at", "2015-02-08 15:03:09.970629"], ["updated_at", "2015-02-08 15:03:09.970629"], ["file_ext", "m3u"], ["mime_type", "audio/x-mpegurl"]]
|
1167
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1168
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1169
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1170
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1171
|
-
-------------------------------------------
|
1172
|
-
PushType::Asset::#kind: test_0005_anonymous
|
1173
|
-
-------------------------------------------
|
1174
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1175
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1176
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1177
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1178
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "audio.m3u"], ["file_size", 64], ["file_uid", "14"], ["created_at", "2015-02-08 15:03:09.974687"], ["updated_at", "2015-02-08 15:03:09.974687"], ["file_ext", "m3u"], ["mime_type", "audio/x-mpegurl"]]
|
1179
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1180
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1181
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1182
|
-
[1m[35m (0.0ms)[0m BEGIN
|
1183
|
-
-------------------------------------------
|
1184
|
-
PushType::Asset::#kind: test_0015_anonymous
|
1185
|
-
-------------------------------------------
|
1186
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1187
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1267
|
+
----------------------------------------------
|
1268
|
+
PushType::User::#initials: test_0003_anonymous
|
1269
|
+
----------------------------------------------
|
1188
1270
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1189
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1190
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "15"], ["created_at", "2015-02-08 15:03:09.978374"], ["updated_at", "2015-02-08 15:03:09.978374"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
|
1191
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1192
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1193
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1194
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1195
|
-
-------------------------------------------
|
1196
|
-
PushType::Asset::#kind: test_0004_anonymous
|
1197
|
-
-------------------------------------------
|
1198
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1199
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1200
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1201
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1202
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "16"], ["created_at", "2015-02-08 15:03:09.981954"], ["updated_at", "2015-02-08 15:03:09.981954"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
1203
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1204
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1205
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1206
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1207
|
-
-------------------------------------------
|
1208
|
-
PushType::Asset::#kind: test_0001_anonymous
|
1209
|
-
-------------------------------------------
|
1210
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1211
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1212
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1213
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1214
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "17"], ["created_at", "2015-02-08 15:03:09.985879"], ["updated_at", "2015-02-08 15:03:09.985879"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
1215
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1216
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1217
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1218
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1219
|
-
-------------------------------------------
|
1220
|
-
PushType::Asset::#kind: test_0014_anonymous
|
1221
|
-
-------------------------------------------
|
1222
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1223
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1224
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1225
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1226
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2015-02-08 15:03:09.994908"], ["updated_at", "2015-02-08 15:03:09.994908"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
|
1227
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1228
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1229
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1230
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1231
|
-
-------------------------------------------
|
1232
|
-
PushType::Asset::#kind: test_0003_anonymous
|
1233
|
-
-------------------------------------------
|
1234
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1235
1271
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1236
1272
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1237
|
-
[1m[35m (0.
|
1238
|
-
[1m[
|
1239
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1240
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1241
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1242
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1243
|
-
-------------------------------------------
|
1244
|
-
PushType::Asset::#kind: test_0016_anonymous
|
1245
|
-
-------------------------------------------
|
1246
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1247
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1248
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1249
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1250
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "20"], ["created_at", "2015-02-08 15:03:10.003899"], ["updated_at", "2015-02-08 15:03:10.003899"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
|
1251
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1252
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1253
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1273
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1274
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
1254
1275
|
[1m[35m (0.0ms)[0m BEGIN
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
[1m[
|
1259
|
-
[1m[
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
[1m[35m (0.1ms)[0m
|
1271
|
-
[1m[36m (0.
|
1272
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1273
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1274
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-02-08 15:03:10.011560"], ["updated_at", "2015-02-08 15:03:10.011560"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
1275
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1276
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1277
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1278
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1279
|
-
-------------------------------------------
|
1280
|
-
PushType::Asset::#kind: test_0009_anonymous
|
1281
|
-
-------------------------------------------
|
1282
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1283
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1284
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1285
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1286
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "video.mp4"], ["file_size", 424925], ["file_uid", "23"], ["created_at", "2015-02-08 15:03:10.016217"], ["updated_at", "2015-02-08 15:03:10.016217"], ["file_ext", "mp4"], ["mime_type", "video/mp4"]]
|
1287
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1288
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1289
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1290
|
-
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
1291
|
-
-------------------------------------------
|
1292
|
-
PushType::Asset::#kind: test_0012_anonymous
|
1293
|
-
-------------------------------------------
|
1294
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1295
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1296
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1297
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1298
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "video.mp4"], ["file_size", 424925], ["file_uid", "24"], ["created_at", "2015-02-08 15:03:10.021172"], ["updated_at", "2015-02-08 15:03:10.021172"], ["file_ext", "mp4"], ["mime_type", "video/mp4"]]
|
1299
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1300
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1301
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1276
|
+
[1m[36mPushType::Node Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-27' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1277
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-27"], ["created_at", "2015-02-09 20:43:41.088970"], ["updated_at", "2015-02-09 20:43:41.088970"]]
|
1278
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t11ef928716cb7d3f9ca479a54ef80ba6[0m
|
1279
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0821d6ff-b700-445e-8f18-4c1cf3c2ed66"], ["descendant_id", "0821d6ff-b700-445e-8f18-4c1cf3c2ed66"], ["generations", 0]]
|
1280
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "push_type_nodes"
|
1281
|
+
SET "sort_order" = t.seq + -1
|
1282
|
+
FROM (
|
1283
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1284
|
+
FROM "push_type_nodes"
|
1285
|
+
WHERE "parent_id" IS NULL
|
1286
|
+
) AS t
|
1287
|
+
WHERE "push_type_nodes"."id" = t.id
|
1288
|
+
[0m
|
1289
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "0821d6ff-b700-445e-8f18-4c1cf3c2ed66"]]
|
1290
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "0821d6ff-b700-445e-8f18-4c1cf3c2ed66"]]
|
1291
|
+
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t9815159c39e5332265b24736681d8473
|
1292
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
1302
1293
|
[1m[35m (0.1ms)[0m BEGIN
|
1303
|
-
|
1304
|
-
PushType::Asset::#
|
1305
|
-
|
1306
|
-
[1m[36m (0.
|
1294
|
+
-----------------------------------------------------------------------
|
1295
|
+
PushType::Asset::#media::with a non existing style: test_0001_anonymous
|
1296
|
+
-----------------------------------------------------------------------
|
1297
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1307
1298
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1308
1299
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1309
1300
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1310
|
-
[1m[36mSQL (0.
|
1301
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "27"], ["created_at", "2015-02-09 20:43:41.096763"], ["updated_at", "2015-02-09 20:43:41.096763"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
1311
1302
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1312
1303
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1313
1304
|
[1m[35m (0.1ms)[0m ROLLBACK
|
1314
1305
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1315
|
-
|
1316
|
-
PushType::Asset::#
|
1317
|
-
|
1318
|
-
[1m[35m (0.
|
1306
|
+
-----------------------------------------------------------------------
|
1307
|
+
PushType::Asset::#media::with a non existing style: test_0003_anonymous
|
1308
|
+
-----------------------------------------------------------------------
|
1309
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1319
1310
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1320
1311
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1321
1312
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1322
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "
|
1313
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "28"], ["created_at", "2015-02-09 20:43:41.100795"], ["updated_at", "2015-02-09 20:43:41.100795"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
|
1323
1314
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1324
1315
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1325
1316
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1326
1317
|
[1m[35m (0.1ms)[0m BEGIN
|
1327
|
-
|
1328
|
-
PushType::Asset::#
|
1329
|
-
|
1330
|
-
[1m[36m (0.
|
1331
|
-
[1m[35m (0.
|
1318
|
+
-----------------------------------------------------------------------
|
1319
|
+
PushType::Asset::#media::with a non existing style: test_0002_anonymous
|
1320
|
+
-----------------------------------------------------------------------
|
1321
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1322
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1332
1323
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1333
1324
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1334
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "
|
1325
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "29"], ["created_at", "2015-02-09 20:43:41.104395"], ["updated_at", "2015-02-09 20:43:41.104395"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
1335
1326
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1336
1327
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1337
1328
|
[1m[35m (0.1ms)[0m ROLLBACK
|
1338
1329
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
[1m[35m (0.
|
1343
|
-
[1m[36m (0.
|
1330
|
+
---------------------------------------------------------------------------
|
1331
|
+
FrontEndController::GET #node::when node not published: test_0001_anonymous
|
1332
|
+
---------------------------------------------------------------------------
|
1333
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1334
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1344
1335
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1345
1336
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1346
|
-
[1m[
|
1347
|
-
[1m[
|
1348
|
-
[1m[35m (0.1ms)[0m
|
1349
|
-
[1m[
|
1350
|
-
[1m[35m (0.
|
1351
|
-
[1m[36mPushType::Node Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-30' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1352
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-30"], ["created_at", "2015-02-08 15:03:10.041967"], ["updated_at", "2015-02-08 15:03:10.041967"]]
|
1353
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS ta13908688ad8602eea1ad0c266c77434[0m
|
1354
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "61f16006-2aef-4791-b272-6da1204ede8e"], ["descendant_id", "61f16006-2aef-4791-b272-6da1204ede8e"], ["generations", 0]]
|
1355
|
-
[1m[36m (0.3ms)[0m [1mUPDATE "push_type_nodes"
|
1337
|
+
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-28' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1338
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-28"], ["status", 0], ["created_at", "2015-02-09 20:43:41.110412"], ["updated_at", "2015-02-09 20:43:41.110412"]]
|
1339
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t38de94d0bbf532ae8820de45a5235a42
|
1340
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "774f8ed3-1bfc-43b7-8395-97d6184af6c0"], ["descendant_id", "774f8ed3-1bfc-43b7-8395-97d6184af6c0"], ["generations", 0]]
|
1341
|
+
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
1356
1342
|
SET "sort_order" = t.seq + -1
|
1357
1343
|
FROM (
|
1358
1344
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -1360,19 +1346,48 @@ FROM (
|
|
1360
1346
|
WHERE "parent_id" IS NULL
|
1361
1347
|
) AS t
|
1362
1348
|
WHERE "push_type_nodes"."id" = t.id
|
1363
|
-
|
1364
|
-
[1m[
|
1365
|
-
[1m[
|
1366
|
-
[1m[
|
1367
|
-
[1m[
|
1368
|
-
[1m[
|
1369
|
-
|
1370
|
-
|
1349
|
+
|
1350
|
+
[1m[36mPage Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "774f8ed3-1bfc-43b7-8395-97d6184af6c0"]]
|
1351
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "774f8ed3-1bfc-43b7-8395-97d6184af6c0"]]
|
1352
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t5aa2ba1d62546f70cd72a6fabde66043[0m
|
1353
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1354
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc[0m [["descendant_id", "774f8ed3-1bfc-43b7-8395-97d6184af6c0"]]
|
1355
|
+
Processing by FrontEndController#node as HTML
|
1356
|
+
Parameters: {"permalink"=>"foo-bar-28"}
|
1357
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-09 20:43:41.117961') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-09 20:43:41.118037') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1 [["slug", "foo-bar-28"]]
|
1358
|
+
Completed 404 Not Found in 1ms
|
1359
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1360
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1361
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1362
|
+
--------------------------------------------
|
1363
|
+
PushType::NodeGenerator: test_0001_anonymous
|
1364
|
+
--------------------------------------------
|
1365
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1366
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1367
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1368
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1369
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1370
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1371
|
+
--------------------------------------------
|
1372
|
+
PushType::NodeGenerator: test_0002_anonymous
|
1373
|
+
--------------------------------------------
|
1374
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1375
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1376
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1377
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1378
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1371
1379
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
[1m[
|
1380
|
+
----------------------------
|
1381
|
+
#status: test_0005_anonymous
|
1382
|
+
----------------------------
|
1383
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1384
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1385
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1386
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1387
|
+
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-29' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1388
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-29"], ["published_at", "2015-02-09 20:43:41.134651"], ["created_at", "2015-02-09 20:43:41.134842"], ["updated_at", "2015-02-09 20:43:41.134842"]]
|
1389
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tc1334ea3ed223863f26a29aa37264fde
|
1390
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "192dc0f3-0b7d-44f3-a067-85906483cd3a"], ["descendant_id", "192dc0f3-0b7d-44f3-a067-85906483cd3a"], ["generations", 0]]
|
1376
1391
|
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
1377
1392
|
SET "sort_order" = t.seq + -1
|
1378
1393
|
FROM (
|
@@ -1382,84 +1397,132 @@ FROM (
|
|
1382
1397
|
) AS t
|
1383
1398
|
WHERE "push_type_nodes"."id" = t.id
|
1384
1399
|
|
1385
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "
|
1386
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
1387
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
1388
|
-
[1m[35m (0.
|
1400
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "192dc0f3-0b7d-44f3-a067-85906483cd3a"]]
|
1401
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "192dc0f3-0b7d-44f3-a067-85906483cd3a"]]
|
1402
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t2e841bcd1394c4ce96634b44fdedb7d8[0m
|
1403
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1404
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1405
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1389
1406
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1407
|
+
----------------------------
|
1408
|
+
#status: test_0012_anonymous
|
1409
|
+
----------------------------
|
1393
1410
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1394
1411
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1395
1412
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1396
1413
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1397
|
-
[1m[
|
1398
|
-
[1m[
|
1399
|
-
[1m[35m (0.1ms)[0m
|
1400
|
-
[1m[
|
1401
|
-
[1m[35m (0.
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1414
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-30' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1415
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-30"], ["published_at", "2015-02-10 20:43:41.141169"], ["created_at", "2015-02-09 20:43:41.142794"], ["updated_at", "2015-02-09 20:43:41.142794"]]
|
1416
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t013eae5f693f02108fd9117d755b03b0
|
1417
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "ddcfc888-27cb-448d-b6ff-3292e961faa8"], ["descendant_id", "ddcfc888-27cb-448d-b6ff-3292e961faa8"], ["generations", 0]]
|
1418
|
+
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
1419
|
+
SET "sort_order" = t.seq + -1
|
1420
|
+
FROM (
|
1421
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1422
|
+
FROM "push_type_nodes"
|
1423
|
+
WHERE "parent_id" IS NULL
|
1424
|
+
) AS t
|
1425
|
+
WHERE "push_type_nodes"."id" = t.id
|
1426
|
+
|
1427
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "ddcfc888-27cb-448d-b6ff-3292e961faa8"]]
|
1428
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "ddcfc888-27cb-448d-b6ff-3292e961faa8"]]
|
1429
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t7101fea83c728ff42682e8635f90cc5f[0m
|
1410
1430
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1411
1431
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1412
1432
|
[1m[35m (0.1ms)[0m ROLLBACK
|
1413
1433
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1414
|
-
|
1415
|
-
|
1416
|
-
|
1417
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1418
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1419
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1420
|
-
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1421
|
-
[1m[35m (0.0ms)[0m ROLLBACK
|
1422
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1423
|
-
------------------------------------
|
1424
|
-
PushType::Asset: test_0004_anonymous
|
1425
|
-
------------------------------------
|
1434
|
+
----------------------------
|
1435
|
+
#status: test_0006_anonymous
|
1436
|
+
----------------------------
|
1426
1437
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1427
1438
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1428
|
-
[1m[35m (0.
|
1429
|
-
[1m[36m (0.0ms)[0m [
|
1430
|
-
[1m[
|
1431
|
-
[1m[
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1439
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1440
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_2[0m
|
1441
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-31' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1442
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-31"], ["published_at", "2015-02-09 20:43:41.150302"], ["created_at", "2015-02-09 20:43:41.150466"], ["updated_at", "2015-02-09 20:43:41.150466"]]
|
1443
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS ta48b1c6a87768dea1793abf074838f44
|
1444
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "4f4de73e-4365-4c44-87c5-8ae0772f7bfe"], ["descendant_id", "4f4de73e-4365-4c44-87c5-8ae0772f7bfe"], ["generations", 0]]
|
1445
|
+
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
1446
|
+
SET "sort_order" = t.seq + -1
|
1447
|
+
FROM (
|
1448
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1449
|
+
FROM "push_type_nodes"
|
1450
|
+
WHERE "parent_id" IS NULL
|
1451
|
+
) AS t
|
1452
|
+
WHERE "push_type_nodes"."id" = t.id
|
1453
|
+
|
1454
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "4f4de73e-4365-4c44-87c5-8ae0772f7bfe"]]
|
1455
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4f4de73e-4365-4c44-87c5-8ae0772f7bfe"]]
|
1456
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t4376f55151e8e2572eb424a474889d23[0m
|
1457
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1458
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1459
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1460
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1461
|
+
----------------------------
|
1462
|
+
#status: test_0004_anonymous
|
1463
|
+
----------------------------
|
1435
1464
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1436
1465
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1437
1466
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1467
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1468
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-32' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1469
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-32"], ["created_at", "2015-02-09 20:43:41.157881"], ["updated_at", "2015-02-09 20:43:41.157881"]]
|
1470
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tecb0065838065e5cb23b149ad4f0b9aa
|
1471
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "1d748c25-fd53-400e-b2b9-6ffd0e773c42"], ["descendant_id", "1d748c25-fd53-400e-b2b9-6ffd0e773c42"], ["generations", 0]]
|
1472
|
+
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
1473
|
+
SET "sort_order" = t.seq + -1
|
1474
|
+
FROM (
|
1475
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1476
|
+
FROM "push_type_nodes"
|
1477
|
+
WHERE "parent_id" IS NULL
|
1478
|
+
) AS t
|
1479
|
+
WHERE "push_type_nodes"."id" = t.id
|
1480
|
+
|
1481
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "1d748c25-fd53-400e-b2b9-6ffd0e773c42"]]
|
1482
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1d748c25-fd53-400e-b2b9-6ffd0e773c42"]]
|
1483
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tc6f992eaf65d91756dcc403fe55e42a4[0m
|
1484
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1438
1485
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1439
1486
|
[1m[35m (0.1ms)[0m ROLLBACK
|
1440
|
-
[1m[36m (0.
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1487
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
1488
|
+
----------------------------
|
1489
|
+
#status: test_0011_anonymous
|
1490
|
+
----------------------------
|
1444
1491
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1445
1492
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1446
1493
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1494
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1495
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-33' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1496
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-33"], ["published_at", "2015-02-10 20:43:41.164094"], ["created_at", "2015-02-09 20:43:41.165787"], ["updated_at", "2015-02-09 20:43:41.165787"]]
|
1497
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t3f8074e488269f895fcbd1fb77445e84
|
1498
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "3424235a-330a-42d9-9270-7e36928ca908"], ["descendant_id", "3424235a-330a-42d9-9270-7e36928ca908"], ["generations", 0]]
|
1499
|
+
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
1500
|
+
SET "sort_order" = t.seq + -1
|
1501
|
+
FROM (
|
1502
|
+
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1503
|
+
FROM "push_type_nodes"
|
1504
|
+
WHERE "parent_id" IS NULL
|
1505
|
+
) AS t
|
1506
|
+
WHERE "push_type_nodes"."id" = t.id
|
1507
|
+
|
1508
|
+
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "3424235a-330a-42d9-9270-7e36928ca908"]]
|
1509
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3424235a-330a-42d9-9270-7e36928ca908"]]
|
1510
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS tb845de6eafadebc1a7bc873ebfddd701[0m
|
1511
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1447
1512
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1448
1513
|
[1m[35m (0.1ms)[0m ROLLBACK
|
1449
1514
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
[1m[35m (0.
|
1515
|
+
----------------------------
|
1516
|
+
#status: test_0014_anonymous
|
1517
|
+
----------------------------
|
1518
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1454
1519
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1455
1520
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1456
|
-
[1m[36m (0.
|
1457
|
-
[1m[
|
1458
|
-
[1m[
|
1459
|
-
[1m[
|
1460
|
-
[1m[36mSQL (0.
|
1461
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t4156b839ef349c4e3d4d5013b5042806
|
1462
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "a1cb115e-9efc-460b-b034-3a21b7af6f01"], ["descendant_id", "a1cb115e-9efc-460b-b034-3a21b7af6f01"], ["generations", 0]]
|
1521
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1522
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-34' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1523
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-34"], ["published_at", "2015-02-07 20:43:41.177017"], ["published_to", "2015-02-08 20:43:41.177072"], ["created_at", "2015-02-09 20:43:41.178791"], ["updated_at", "2015-02-09 20:43:41.178791"]]
|
1524
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS te559818c647070c50510e4a7ba6f51d2
|
1525
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "65761dcc-bbb3-4c58-8dca-9e3cb8dbcae6"], ["descendant_id", "65761dcc-bbb3-4c58-8dca-9e3cb8dbcae6"], ["generations", 0]]
|
1463
1526
|
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
1464
1527
|
SET "sort_order" = t.seq + -1
|
1465
1528
|
FROM (
|
@@ -1469,16 +1532,25 @@ FROM (
|
|
1469
1532
|
) AS t
|
1470
1533
|
WHERE "push_type_nodes"."id" = t.id
|
1471
1534
|
|
1472
|
-
[1m[
|
1473
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
1474
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
1475
|
-
[1m[35m (
|
1535
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "65761dcc-bbb3-4c58-8dca-9e3cb8dbcae6"]]
|
1536
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "65761dcc-bbb3-4c58-8dca-9e3cb8dbcae6"]]
|
1537
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t4fb21726ee9dcd7124858bd176a99959[0m
|
1538
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1539
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1540
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1476
1541
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
[1m[
|
1481
|
-
[1m[
|
1542
|
+
----------------------------
|
1543
|
+
#status: test_0010_anonymous
|
1544
|
+
----------------------------
|
1545
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1546
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1547
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1548
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1549
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-35' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1550
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-35"], ["published_at", "2015-02-10 20:43:41.184929"], ["created_at", "2015-02-09 20:43:41.186484"], ["updated_at", "2015-02-09 20:43:41.186484"]]
|
1551
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS tf771cb4d734f35abcaf41e661d0a86cb
|
1552
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "2e37c643-f920-4ab9-9905-c294f100e12e"], ["descendant_id", "2e37c643-f920-4ab9-9905-c294f100e12e"], ["generations", 0]]
|
1553
|
+
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
1482
1554
|
SET "sort_order" = t.seq + -1
|
1483
1555
|
FROM (
|
1484
1556
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -1487,16 +1559,25 @@ FROM (
|
|
1487
1559
|
) AS t
|
1488
1560
|
WHERE "push_type_nodes"."id" = t.id
|
1489
1561
|
|
1490
|
-
[1m[
|
1491
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
1492
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
1493
|
-
[1m[35m (0.
|
1562
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "2e37c643-f920-4ab9-9905-c294f100e12e"]]
|
1563
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2e37c643-f920-4ab9-9905-c294f100e12e"]]
|
1564
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t462f36b5dd55abc277c15745108cfef9[0m
|
1565
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1566
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1567
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1494
1568
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
[1m[
|
1499
|
-
[1m[
|
1569
|
+
----------------------------
|
1570
|
+
#status: test_0016_anonymous
|
1571
|
+
----------------------------
|
1572
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1573
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1574
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1575
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1576
|
+
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-36' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1577
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-36"], ["published_at", "2015-02-07 20:43:41.192500"], ["published_to", "2015-02-08 20:43:41.192554"], ["created_at", "2015-02-09 20:43:41.194231"], ["updated_at", "2015-02-09 20:43:41.194231"]]
|
1578
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS te4601672892d945d5b48a1d9a9a730d5
|
1579
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "18ee9802-2643-4508-8bff-a29b5fb38f53"], ["descendant_id", "18ee9802-2643-4508-8bff-a29b5fb38f53"], ["generations", 0]]
|
1580
|
+
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
1500
1581
|
SET "sort_order" = t.seq + -1
|
1501
1582
|
FROM (
|
1502
1583
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -1505,17 +1586,25 @@ FROM (
|
|
1505
1586
|
) AS t
|
1506
1587
|
WHERE "push_type_nodes"."id" = t.id
|
1507
1588
|
|
1508
|
-
[1m[
|
1509
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
1510
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
1511
|
-
[1m[35m (0.
|
1512
|
-
[1m[36m (0.
|
1513
|
-
[1m[35m (0.1ms)[0m
|
1514
|
-
[1m[
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
[1m[
|
1589
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "18ee9802-2643-4508-8bff-a29b5fb38f53"]]
|
1590
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "18ee9802-2643-4508-8bff-a29b5fb38f53"]]
|
1591
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t2a99502cc7deb353556bd176e8c87b7b[0m
|
1592
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1593
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1594
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1595
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1596
|
+
----------------------------
|
1597
|
+
#status: test_0013_anonymous
|
1598
|
+
----------------------------
|
1599
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1600
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1601
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1602
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1603
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-37' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1604
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-37"], ["published_at", "2015-02-07 20:43:41.199932"], ["published_to", "2015-02-08 20:43:41.199978"], ["created_at", "2015-02-09 20:43:41.201599"], ["updated_at", "2015-02-09 20:43:41.201599"]]
|
1605
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t38cd28a34e30d6dd6e4234cba9f2ffd6
|
1606
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "61af661c-daf7-4c07-a033-b349f36b9507"], ["descendant_id", "61af661c-daf7-4c07-a033-b349f36b9507"], ["generations", 0]]
|
1607
|
+
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
1519
1608
|
SET "sort_order" = t.seq + -1
|
1520
1609
|
FROM (
|
1521
1610
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -1523,17 +1612,26 @@ FROM (
|
|
1523
1612
|
WHERE "parent_id" IS NULL
|
1524
1613
|
) AS t
|
1525
1614
|
WHERE "push_type_nodes"."id" = t.id
|
1526
|
-
|
1527
|
-
[1m[
|
1528
|
-
[1m[
|
1529
|
-
[1m[
|
1530
|
-
[1m[
|
1531
|
-
[1m[
|
1532
|
-
[1m[
|
1533
|
-
[1m[
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1615
|
+
|
1616
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "61af661c-daf7-4c07-a033-b349f36b9507"]]
|
1617
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "61af661c-daf7-4c07-a033-b349f36b9507"]]
|
1618
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t8815d57eda9ff7cd13bda376449c6c23[0m
|
1619
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1620
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1621
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1622
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1623
|
+
----------------------------
|
1624
|
+
#status: test_0008_anonymous
|
1625
|
+
----------------------------
|
1626
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1627
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1628
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1629
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1630
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-38' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1631
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-38"], ["published_at", "2015-02-09 20:43:41.209411"], ["created_at", "2015-02-09 20:43:41.209570"], ["updated_at", "2015-02-09 20:43:41.209570"]]
|
1632
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t040170438de0098d4e9f7c3de7c0004f
|
1633
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "2bfc5fa1-8f62-4a85-98ff-532f0fc3214b"], ["descendant_id", "2bfc5fa1-8f62-4a85-98ff-532f0fc3214b"], ["generations", 0]]
|
1634
|
+
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
1537
1635
|
SET "sort_order" = t.seq + -1
|
1538
1636
|
FROM (
|
1539
1637
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -1541,17 +1639,26 @@ FROM (
|
|
1541
1639
|
WHERE "parent_id" IS NULL
|
1542
1640
|
) AS t
|
1543
1641
|
WHERE "push_type_nodes"."id" = t.id
|
1544
|
-
|
1545
|
-
[1m[
|
1546
|
-
[1m[
|
1547
|
-
[1m[
|
1548
|
-
[1m[
|
1549
|
-
[1m[
|
1550
|
-
[1m[
|
1551
|
-
[1m[
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1642
|
+
|
1643
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "2bfc5fa1-8f62-4a85-98ff-532f0fc3214b"]]
|
1644
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2bfc5fa1-8f62-4a85-98ff-532f0fc3214b"]]
|
1645
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t6666ded9f11f38cd0b21d0d520241249[0m
|
1646
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1647
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1648
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1649
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
1650
|
+
----------------------------
|
1651
|
+
#status: test_0007_anonymous
|
1652
|
+
----------------------------
|
1653
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1654
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1655
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1656
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1657
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-39' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1658
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-39"], ["published_at", "2015-02-09 20:43:41.216804"], ["created_at", "2015-02-09 20:43:41.216970"], ["updated_at", "2015-02-09 20:43:41.216970"]]
|
1659
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t380151b64585a2b80232313d8a13514d
|
1660
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "7c2ca787-9d51-4665-9486-7096c8c6eb2d"], ["descendant_id", "7c2ca787-9d51-4665-9486-7096c8c6eb2d"], ["generations", 0]]
|
1661
|
+
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
1555
1662
|
SET "sort_order" = t.seq + -1
|
1556
1663
|
FROM (
|
1557
1664
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -1559,17 +1666,25 @@ FROM (
|
|
1559
1666
|
WHERE "parent_id" IS NULL
|
1560
1667
|
) AS t
|
1561
1668
|
WHERE "push_type_nodes"."id" = t.id
|
1562
|
-
|
1563
|
-
[1m[
|
1564
|
-
[1m[
|
1565
|
-
[1m[
|
1566
|
-
[1m[
|
1567
|
-
[1m[
|
1669
|
+
|
1670
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "7c2ca787-9d51-4665-9486-7096c8c6eb2d"]]
|
1671
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "7c2ca787-9d51-4665-9486-7096c8c6eb2d"]]
|
1672
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t3c1a6f00c5fb90c523b4fc083d6eb1b7[0m
|
1673
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1674
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1675
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
1568
1676
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
[1m[
|
1677
|
+
----------------------------
|
1678
|
+
#status: test_0003_anonymous
|
1679
|
+
----------------------------
|
1680
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1681
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1682
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1683
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1684
|
+
[1m[35mPushType::Node Exists (0.2ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-40' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1685
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-40"], ["created_at", "2015-02-09 20:43:41.224439"], ["updated_at", "2015-02-09 20:43:41.224439"]]
|
1686
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t5f607a2ea298fb504e26db59fd2d83ac
|
1687
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "af7236db-2a2c-4323-9819-6d39fa9be00b"], ["descendant_id", "af7236db-2a2c-4323-9819-6d39fa9be00b"], ["generations", 0]]
|
1573
1688
|
[1m[35m (0.3ms)[0m UPDATE "push_type_nodes"
|
1574
1689
|
SET "sort_order" = t.seq + -1
|
1575
1690
|
FROM (
|
@@ -1579,16 +1694,25 @@ FROM (
|
|
1579
1694
|
) AS t
|
1580
1695
|
WHERE "push_type_nodes"."id" = t.id
|
1581
1696
|
|
1582
|
-
[1m[
|
1583
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
1584
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
1585
|
-
[1m[35m (0.
|
1697
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "af7236db-2a2c-4323-9819-6d39fa9be00b"]]
|
1698
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "af7236db-2a2c-4323-9819-6d39fa9be00b"]]
|
1699
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t117722d3415eeb386f3aab6cd9ce9154[0m
|
1700
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1701
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1702
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1586
1703
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
[1m[
|
1591
|
-
[1m[
|
1704
|
+
----------------------------
|
1705
|
+
#status: test_0002_anonymous
|
1706
|
+
----------------------------
|
1707
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1708
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1709
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1710
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1711
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-41' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1712
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-41"], ["created_at", "2015-02-09 20:43:41.231806"], ["updated_at", "2015-02-09 20:43:41.231806"]]
|
1713
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS td1ac5107e22cf4d958636f7ee74c0879
|
1714
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "e59fdaa0-09ef-4f8d-8113-fe7fd3fa7f77"], ["descendant_id", "e59fdaa0-09ef-4f8d-8113-fe7fd3fa7f77"], ["generations", 0]]
|
1715
|
+
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
1592
1716
|
SET "sort_order" = t.seq + -1
|
1593
1717
|
FROM (
|
1594
1718
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -1597,16 +1721,25 @@ FROM (
|
|
1597
1721
|
) AS t
|
1598
1722
|
WHERE "push_type_nodes"."id" = t.id
|
1599
1723
|
|
1600
|
-
[1m[
|
1601
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
1602
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
1603
|
-
[1m[35m (0.
|
1724
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "e59fdaa0-09ef-4f8d-8113-fe7fd3fa7f77"]]
|
1725
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "e59fdaa0-09ef-4f8d-8113-fe7fd3fa7f77"]]
|
1726
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t5e2d826b5e4c7cb8e7e8450884aea74e[0m
|
1727
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1728
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1729
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1604
1730
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1608
|
-
[1m[
|
1609
|
-
[1m[
|
1731
|
+
----------------------------
|
1732
|
+
#status: test_0009_anonymous
|
1733
|
+
----------------------------
|
1734
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1735
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1736
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1737
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1738
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-42' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1739
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-42"], ["published_at", "2015-02-10 20:43:41.237375"], ["created_at", "2015-02-09 20:43:41.238925"], ["updated_at", "2015-02-09 20:43:41.238925"]]
|
1740
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t56e6576b90dd83d63f2c1e1eff9074da
|
1741
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "3908a36f-72d3-409e-95ac-97aada397521"], ["descendant_id", "3908a36f-72d3-409e-95ac-97aada397521"], ["generations", 0]]
|
1742
|
+
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
1610
1743
|
SET "sort_order" = t.seq + -1
|
1611
1744
|
FROM (
|
1612
1745
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -1615,49 +1748,25 @@ FROM (
|
|
1615
1748
|
) AS t
|
1616
1749
|
WHERE "push_type_nodes"."id" = t.id
|
1617
1750
|
|
1618
|
-
[1m[
|
1619
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
1620
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
1621
|
-
[1m[35m (0.4ms)[0m COMMIT
|
1622
|
-
[1m[36m (0.2ms)[0m [1mSELECT DISTINCT jsonb_array_elements_text(field_store->'tags') AS _tag FROM push_type_nodes ORDER BY _tag[0m
|
1623
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1624
|
-
--------------------------------------------------------------------------------------------
|
1625
|
-
PushType::Asset::#description_or_file_name: test_0002_should return description when present
|
1626
|
-
--------------------------------------------------------------------------------------------
|
1627
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1628
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1629
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1630
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1631
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "31"], ["created_at", "2015-02-08 15:03:10.185595"], ["updated_at", "2015-02-08 15:03:10.185595"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
1751
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "3908a36f-72d3-409e-95ac-97aada397521"]]
|
1752
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3908a36f-72d3-409e-95ac-97aada397521"]]
|
1753
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t3b619b71a355f3e32fbd4a15fe429246[0m
|
1632
1754
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1633
1755
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1634
1756
|
[1m[35m (0.1ms)[0m ROLLBACK
|
1635
1757
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
[1m[35m (0.
|
1640
|
-
[1m[36m (0.
|
1758
|
+
----------------------------
|
1759
|
+
#status: test_0015_anonymous
|
1760
|
+
----------------------------
|
1761
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1762
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1641
1763
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1642
1764
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1643
|
-
[1m[
|
1644
|
-
[1m[
|
1645
|
-
[1m[35m (0.1ms)[0m
|
1646
|
-
[1m[
|
1647
|
-
[1m[35m (0.
|
1648
|
-
--------------------------------------------------------------------
|
1649
|
-
.published::with published_to dates in the past: test_0001_anonymous
|
1650
|
-
--------------------------------------------------------------------
|
1651
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1652
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1653
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1654
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-08 15:03:10.193222') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-08 15:03:10.198034')
|
1655
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1656
|
-
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-41' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1657
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-41"], ["published_at", "2015-02-06 15:03:10.198826"], ["published_to", "2015-02-07 15:03:10.198889"], ["created_at", "2015-02-08 15:03:10.201046"], ["updated_at", "2015-02-08 15:03:10.201046"]]
|
1658
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t1740fd0f73e87d43a236897c075146b9
|
1659
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "1e1cccd5-9dec-4941-8ba0-68db243cc6cd"], ["descendant_id", "1e1cccd5-9dec-4941-8ba0-68db243cc6cd"], ["generations", 0]]
|
1660
|
-
[1m[35m (0.5ms)[0m UPDATE "push_type_nodes"
|
1765
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-43' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1766
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["status", 1], ["title", "Foo bar"], ["slug", "foo-bar-43"], ["published_at", "2015-02-07 20:43:41.244505"], ["published_to", "2015-02-08 20:43:41.244568"], ["created_at", "2015-02-09 20:43:41.246170"], ["updated_at", "2015-02-09 20:43:41.246170"]]
|
1767
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS t7dacf5847852b23551202fa5f9d0a06b
|
1768
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "d62b7805-3ad3-4e0c-890d-12d21167e4a8"], ["descendant_id", "d62b7805-3ad3-4e0c-890d-12d21167e4a8"], ["generations", 0]]
|
1769
|
+
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
1661
1770
|
SET "sort_order" = t.seq + -1
|
1662
1771
|
FROM (
|
1663
1772
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -1666,27 +1775,25 @@ FROM (
|
|
1666
1775
|
) AS t
|
1667
1776
|
WHERE "push_type_nodes"."id" = t.id
|
1668
1777
|
|
1669
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "
|
1670
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
1671
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS
|
1778
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "d62b7805-3ad3-4e0c-890d-12d21167e4a8"]]
|
1779
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "d62b7805-3ad3-4e0c-890d-12d21167e4a8"]]
|
1780
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t6696373c558d7c11c844f675661c63bb[0m
|
1672
1781
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1673
|
-
[1m[36m (0.
|
1674
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1675
|
-
[1m[36m (0.1ms)[0m [
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
[1m[36m (0.
|
1681
|
-
[1m[35m (0.
|
1682
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1683
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-08 15:03:10.210190') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-08 15:03:10.210285')
|
1782
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1783
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1784
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1785
|
+
----------------------------
|
1786
|
+
#status: test_0001_anonymous
|
1787
|
+
----------------------------
|
1788
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1789
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1790
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1684
1791
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1685
|
-
[1m[35mPushType::Node Exists (0.
|
1686
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-
|
1687
|
-
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS
|
1688
|
-
[1m[36mSQL (0.
|
1689
|
-
[1m[35m (0.
|
1792
|
+
[1m[35mPushType::Node Exists (0.1ms)[0m SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-44' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
|
1793
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-44"], ["created_at", "2015-02-09 20:43:41.253520"], ["updated_at", "2015-02-09 20:43:41.253520"]]
|
1794
|
+
[1m[35m (0.1ms)[0m SELECT pg_try_advisory_lock(1213021721,0) AS td863f7ac4f815649603f230467bfbb51
|
1795
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3)[0m [["ancestor_id", "39014386-2ed1-4baa-9d8c-0d3cf6724278"], ["descendant_id", "39014386-2ed1-4baa-9d8c-0d3cf6724278"], ["generations", 0]]
|
1796
|
+
[1m[35m (0.2ms)[0m UPDATE "push_type_nodes"
|
1690
1797
|
SET "sort_order" = t.seq + -1
|
1691
1798
|
FROM (
|
1692
1799
|
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
@@ -1695,178 +1802,73 @@ FROM (
|
|
1695
1802
|
) AS t
|
1696
1803
|
WHERE "push_type_nodes"."id" = t.id
|
1697
1804
|
|
1698
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "
|
1699
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "
|
1700
|
-
[1m[36m (0.
|
1805
|
+
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1[0m [["id", "39014386-2ed1-4baa-9d8c-0d3cf6724278"]]
|
1806
|
+
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "39014386-2ed1-4baa-9d8c-0d3cf6724278"]]
|
1807
|
+
[1m[36m (0.1ms)[0m [1mSELECT pg_advisory_unlock(1213021721,0) AS t7ae3232f6303406b9d975d7bc11f1fae[0m
|
1701
1808
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1702
|
-
[1m[36m (0.
|
1703
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1704
|
-
[1m[36m (0.1ms)[0m [
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
[1m[36m (0.
|
1710
|
-
[1m[35m (0.
|
1711
|
-
[1m[36m (0.
|
1712
|
-
[1m[
|
1713
|
-
[1m[36m (0.1ms)[0m [
|
1714
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1715
|
-
--------------------------------------------
|
1716
|
-
PushType::NodeGenerator: test_0002_anonymous
|
1717
|
-
--------------------------------------------
|
1718
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1719
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1720
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1721
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1722
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1723
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1724
|
-
----------------------------------------
|
1725
|
-
#set_default_status: test_0001_anonymous
|
1726
|
-
----------------------------------------
|
1727
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1728
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1729
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1730
|
-
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1731
|
-
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
1732
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1733
|
-
---------------------------------------------
|
1734
|
-
exposed?::when unexposed: test_0001_anonymous
|
1735
|
-
---------------------------------------------
|
1736
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1737
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1738
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1739
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1740
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1741
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1742
|
-
---------------------------------------------
|
1743
|
-
exposed?::when unexposed: test_0002_anonymous
|
1744
|
-
---------------------------------------------
|
1745
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1746
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1747
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1809
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1810
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1811
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1812
|
+
--------------------------------------------------------------------
|
1813
|
+
PushType::Asset::#media::with a geometry string: test_0005_anonymous
|
1814
|
+
--------------------------------------------------------------------
|
1815
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1816
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1817
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1818
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1819
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "30"], ["created_at", "2015-02-09 20:43:41.262170"], ["updated_at", "2015-02-09 20:43:41.262170"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
|
1820
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1748
1821
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1749
1822
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1750
1823
|
[1m[35m (0.1ms)[0m BEGIN
|
1751
|
-
|
1752
|
-
PushType::
|
1753
|
-
|
1754
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1755
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1824
|
+
--------------------------------------------------------------------
|
1825
|
+
PushType::Asset::#media::with a geometry string: test_0002_anonymous
|
1826
|
+
--------------------------------------------------------------------
|
1756
1827
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1757
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1758
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1759
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1760
|
-
-----------------------------------------------
|
1761
|
-
PushType::InstallGenerator: test_0002_anonymous
|
1762
|
-
-----------------------------------------------
|
1763
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1764
1828
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1765
1829
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1830
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1831
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "31"], ["created_at", "2015-02-09 20:43:41.266072"], ["updated_at", "2015-02-09 20:43:41.266072"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
1832
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1833
|
+
DRAGONFLY: shell command: 'convert' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150209-10796-1sc11dx' '-resize' '48x56^^' '-gravity' 'Center' '-crop' '48x56+0+0' '+repage' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20150209-10796-enqhsn.png'
|
1834
|
+
DRAGONFLY: shell command: 'identify' '-ping' '-format' '%m %w %h' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20150209-10796-enqhsn.png'
|
1835
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1836
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1837
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1838
|
+
--------------------------------------------------------------------
|
1839
|
+
PushType::Asset::#media::with a geometry string: test_0003_anonymous
|
1840
|
+
--------------------------------------------------------------------
|
1841
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1842
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1843
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1844
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1845
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "32"], ["created_at", "2015-02-09 20:43:41.289758"], ["updated_at", "2015-02-09 20:43:41.289758"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
1846
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1847
|
+
DRAGONFLY: shell command: 'convert' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150209-10796-1dsqxk6' '-resize' '48x56^^' '-gravity' 'Center' '-crop' '48x56+0+0' '+repage' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20150209-10796-1mdb5gb.png'
|
1848
|
+
DRAGONFLY: shell command: 'identify' '-ping' '-format' '%m %w %h' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20150209-10796-1mdb5gb.png'
|
1766
1849
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1767
1850
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1768
1851
|
[1m[35m (0.1ms)[0m BEGIN
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1773
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1774
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1775
|
-
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1776
|
-
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
1777
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1778
|
-
-------------------------------------------
|
1779
|
-
exposed?::when exposed: test_0002_anonymous
|
1780
|
-
-------------------------------------------
|
1781
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1782
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1783
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1784
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1785
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1786
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1787
|
-
----------------------------------------------------
|
1788
|
-
PushType::Asset::#preview_thumb: test_0001_anonymous
|
1789
|
-
----------------------------------------------------
|
1852
|
+
--------------------------------------------------------------------
|
1853
|
+
PushType::Asset::#media::with a geometry string: test_0004_anonymous
|
1854
|
+
--------------------------------------------------------------------
|
1790
1855
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1791
1856
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1792
1857
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1793
1858
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1794
|
-
[1m[36mSQL (0.
|
1859
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "33"], ["created_at", "2015-02-09 20:43:41.313421"], ["updated_at", "2015-02-09 20:43:41.313421"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
1795
1860
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1796
|
-
DRAGONFLY: shell command: 'identify' '-ping' '-format' '%m %w %h' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150208-6151-8mengl'
|
1797
1861
|
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1798
1862
|
[1m[35m (0.1ms)[0m ROLLBACK
|
1799
|
-
[1m[36m (0.
|
1800
|
-
|
1801
|
-
PushType::Asset::#
|
1802
|
-
|
1863
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1864
|
+
--------------------------------------------------------------------
|
1865
|
+
PushType::Asset::#media::with a geometry string: test_0001_anonymous
|
1866
|
+
--------------------------------------------------------------------
|
1803
1867
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1804
1868
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1805
1869
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1806
1870
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
1807
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "
|
1808
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1809
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1810
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1811
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1812
|
-
---------------------------------------------------------------------------
|
1813
|
-
FrontEndController::GET #node::when node not published: test_0001_anonymous
|
1814
|
-
---------------------------------------------------------------------------
|
1815
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1816
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1817
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1818
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1819
|
-
[1m[36mPushType::Node Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-43' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1820
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-43"], ["status", 0], ["created_at", "2015-02-08 15:03:12.217069"], ["updated_at", "2015-02-08 15:03:12.217069"]]
|
1821
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS t3339e2f7fb035f9ad35bedc503bf81fb[0m
|
1822
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5f996467-ad22-4f11-872d-40f584a1ccea"], ["descendant_id", "5f996467-ad22-4f11-872d-40f584a1ccea"], ["generations", 0]]
|
1823
|
-
[1m[36m (0.3ms)[0m [1mUPDATE "push_type_nodes"
|
1824
|
-
SET "sort_order" = t.seq + -1
|
1825
|
-
FROM (
|
1826
|
-
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1827
|
-
FROM "push_type_nodes"
|
1828
|
-
WHERE "parent_id" IS NULL
|
1829
|
-
) AS t
|
1830
|
-
WHERE "push_type_nodes"."id" = t.id
|
1831
|
-
[0m
|
1832
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5f996467-ad22-4f11-872d-40f584a1ccea"]]
|
1833
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "5f996467-ad22-4f11-872d-40f584a1ccea"]]
|
1834
|
-
[1m[35m (0.1ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t3718ec9b004a686c7e954ad886dc0448
|
1871
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "34"], ["created_at", "2015-02-09 20:43:41.318351"], ["updated_at", "2015-02-09 20:43:41.318351"], ["file_ext", "png"], ["mime_type", "image/png"]]
|
1835
1872
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1836
|
-
[1m[35mPushType::Node Load (0.2ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "5f996467-ad22-4f11-872d-40f584a1ccea"]]
|
1837
|
-
Processing by FrontEndController#node as HTML
|
1838
|
-
Parameters: {"permalink"=>"foo-bar-43"}
|
1839
|
-
[1m[36mPushType::Node Load (0.2ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-02-08 15:03:12.226147') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-02-08 15:03:12.226246') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1[0m [["slug", "foo-bar-43"]]
|
1840
|
-
Completed 404 Not Found in 1ms
|
1841
1873
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1842
1874
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1843
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1844
|
-
-------------------------------------------------------
|
1845
|
-
#set_published_at::when publishing: test_0001_anonymous
|
1846
|
-
-------------------------------------------------------
|
1847
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1848
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1849
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1850
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1851
|
-
[1m[36mPushType::Node Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-44' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1[0m
|
1852
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-44"], ["created_at", "2015-02-08 15:03:12.230718"], ["updated_at", "2015-02-08 15:03:12.230718"]]
|
1853
|
-
[1m[36m (0.1ms)[0m [1mSELECT pg_try_advisory_lock(1213021721,0) AS tbd4e1b792fb2c150f0fd0626d876b5b6[0m
|
1854
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8ef8701e-7445-4a43-9bf4-7c9f9bd149c7"], ["descendant_id", "8ef8701e-7445-4a43-9bf4-7c9f9bd149c7"], ["generations", 0]]
|
1855
|
-
[1m[36m (0.3ms)[0m [1mUPDATE "push_type_nodes"
|
1856
|
-
SET "sort_order" = t.seq + -1
|
1857
|
-
FROM (
|
1858
|
-
SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
|
1859
|
-
FROM "push_type_nodes"
|
1860
|
-
WHERE "parent_id" IS NULL
|
1861
|
-
) AS t
|
1862
|
-
WHERE "push_type_nodes"."id" = t.id
|
1863
|
-
[0m
|
1864
|
-
[1m[35mPushType::Node Load (0.1ms)[0m SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8ef8701e-7445-4a43-9bf4-7c9f9bd149c7"]]
|
1865
|
-
[1m[36mPushType::Node Load (0.1ms)[0m [1mSELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order[0m [["parent_id", "8ef8701e-7445-4a43-9bf4-7c9f9bd149c7"]]
|
1866
|
-
[1m[35m (0.2ms)[0m SELECT pg_advisory_unlock(1213021721,0) AS t590ef7c44c0d280ac80e15f0da7624ed
|
1867
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
1868
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
1869
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "push_type_nodes" SET "status" = $1, "published_at" = $2, "updated_at" = $3 WHERE "push_type_nodes"."id" = $4[0m [["status", 1], ["published_at", "2015-02-08 15:03:12.236326"], ["updated_at", "2015-02-08 15:03:12.236548"], ["id", "8ef8701e-7445-4a43-9bf4-7c9f9bd149c7"]]
|
1870
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
1871
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1872
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|