nulogy_message_bus_producer 3.2.0 → 4.0.0.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +186 -25
- data/Rakefile +2 -4
- data/db/migrate/20200611150212_create_public_subscriptions_and_events_tables.rb +2 -2
- data/db/migrate/20210330204121_add_event_type_to_subscription_events.rb +9 -0
- data/lib/nulogy_message_bus_producer.rb +32 -12
- data/lib/nulogy_message_bus_producer/base_subscription.rb +1 -1
- data/lib/nulogy_message_bus_producer/config.rb +25 -1
- data/lib/nulogy_message_bus_producer/configuration/query_parser.rb +71 -0
- data/lib/nulogy_message_bus_producer/repopulate_replication_slots.rb +7 -5
- data/lib/nulogy_message_bus_producer/self_serve_subscription.rb +18 -0
- data/lib/nulogy_message_bus_producer/subscription_event.rb +3 -0
- data/lib/nulogy_message_bus_producer/subscriptions/configured_subscription.rb +14 -0
- data/lib/nulogy_message_bus_producer/subscriptions/finder.rb +40 -0
- data/lib/nulogy_message_bus_producer/subscriptions/no_variables.rb +43 -0
- data/lib/nulogy_message_bus_producer/subscriptions/postgres_transport.rb +11 -4
- data/lib/nulogy_message_bus_producer/subscriptions/query_validator.rb +47 -0
- data/lib/nulogy_message_bus_producer/subscriptions/risky_subscription_blocker.rb +17 -10
- data/lib/nulogy_message_bus_producer/subscriptions/valid_for_schema_validator.rb +14 -0
- data/lib/nulogy_message_bus_producer/version.rb +1 -1
- data/lib/tasks/engine/message_bus_producer.rake +4 -4
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/app/mailers/application_mailer.rb +2 -2
- data/spec/dummy/bin/bundle +2 -2
- data/spec/dummy/bin/rails +3 -3
- data/spec/dummy/bin/rake +2 -2
- data/spec/dummy/bin/setup +10 -11
- data/spec/dummy/bin/update +10 -10
- data/spec/dummy/bin/yarn +6 -8
- data/spec/dummy/config.ru +1 -1
- data/spec/dummy/config/boot.rb +3 -3
- data/spec/dummy/config/database.yml +2 -2
- data/spec/dummy/config/environment.rb +1 -1
- data/spec/dummy/config/environments/development.rb +2 -2
- data/spec/dummy/config/environments/production.rb +5 -5
- data/spec/dummy/config/environments/test.rb +2 -2
- data/spec/dummy/config/initializers/assets.rb +2 -2
- data/spec/dummy/config/puma.rb +3 -3
- data/spec/dummy/config/spring.rb +2 -2
- data/spec/dummy/db/schema.rb +2 -1
- data/spec/dummy/log/development.log +321 -0
- data/spec/dummy/log/test.log +19061 -0
- data/spec/integration/lib/nulogy_message_bus_producer/config_spec.rb +37 -0
- data/spec/integration/lib/nulogy_message_bus_producer/repopulate_replication_slots_spec.rb +23 -14
- data/spec/integration/lib/nulogy_message_bus_producer/subscription_spec.rb +3 -59
- data/spec/integration/lib/nulogy_message_bus_producer/subscriptions/finder_spec.rb +54 -0
- data/spec/integration/lib/nulogy_message_bus_producer/subscriptions/no_variables_spec.rb +46 -0
- data/spec/integration/lib/nulogy_message_bus_producer/subscriptions/postgres_transport_spec.rb +99 -55
- data/spec/integration/lib/nulogy_message_bus_producer/{subscriber_graphql_schema_validator_spec.rb → subscriptions/query_validator_spec.rb} +5 -5
- data/spec/integration/lib/nulogy_message_bus_producer/subscriptions/risky_subscription_blocker_spec.rb +1 -19
- data/spec/integration/lib/nulogy_message_bus_producer_spec.rb +25 -0
- data/spec/integration_spec_helper.rb +0 -6
- data/spec/nulogy_message_bus_producer/configuration/query_parser_spec.rb +58 -0
- data/spec/nulogy_message_bus_producer/subscriptions/subscription_spec.rb +9 -0
- data/spec/spec_helper.rb +25 -1
- data/spec/support/kafka.rb +15 -9
- data/spec/support/kafka_connect.rb +1 -1
- data/spec/support/shared_examples/subscription_validations.rb +77 -0
- data/spec/support/spec_utils.rb +3 -2
- data/spec/support/sql_helpers.rb +9 -11
- data/spec/support/subscription_helpers.rb +22 -4
- data/spec/support/test_graphql_schema.rb +7 -0
- metadata +58 -38
- data/lib/nulogy_message_bus_producer/subscriber_graphql_schema_validator.rb +0 -45
- data/lib/nulogy_message_bus_producer/subscription.rb +0 -28
data/spec/dummy/bin/rails
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
APP_PATH = File.expand_path(
|
3
|
-
require_relative
|
4
|
-
require
|
2
|
+
APP_PATH = File.expand_path("../config/application", __dir__)
|
3
|
+
require_relative "../config/boot"
|
4
|
+
require "rails/commands"
|
data/spec/dummy/bin/rake
CHANGED
data/spec/dummy/bin/setup
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
require
|
3
|
-
require
|
4
|
-
include FileUtils
|
2
|
+
require "pathname"
|
3
|
+
require "fileutils"
|
4
|
+
include FileUtils # rubocop:disable Style/MixinUsage
|
5
5
|
|
6
6
|
# path to your application root.
|
7
|
-
APP_ROOT = Pathname.new File.expand_path(
|
7
|
+
APP_ROOT = Pathname.new File.expand_path("../../", __FILE__)
|
8
8
|
|
9
9
|
def system!(*args)
|
10
10
|
system(*args) || abort("\n== Command #{args} failed ==")
|
@@ -14,25 +14,24 @@ chdir APP_ROOT do
|
|
14
14
|
# This script is a starting point to setup your application.
|
15
15
|
# Add necessary setup steps to this file.
|
16
16
|
|
17
|
-
puts
|
18
|
-
system!
|
19
|
-
system(
|
17
|
+
puts "== Installing dependencies =="
|
18
|
+
system! "gem install bundler --conservative"
|
19
|
+
system("bundle check") || system!("bundle install")
|
20
20
|
|
21
21
|
# Install JavaScript dependencies if using Yarn
|
22
22
|
# system('bin/yarn')
|
23
23
|
|
24
|
-
|
25
24
|
# puts "\n== Copying sample files =="
|
26
25
|
# unless File.exist?('config/database.yml')
|
27
26
|
# cp 'config/database.yml.sample', 'config/database.yml'
|
28
27
|
# end
|
29
28
|
|
30
29
|
puts "\n== Preparing database =="
|
31
|
-
system!
|
30
|
+
system! "bin/rails db:setup"
|
32
31
|
|
33
32
|
puts "\n== Removing old logs and tempfiles =="
|
34
|
-
system!
|
33
|
+
system! "bin/rails log:clear tmp:clear"
|
35
34
|
|
36
35
|
puts "\n== Restarting application server =="
|
37
|
-
system!
|
36
|
+
system! "bin/rails restart"
|
38
37
|
end
|
data/spec/dummy/bin/update
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
require
|
3
|
-
require
|
4
|
-
include FileUtils
|
2
|
+
require "pathname"
|
3
|
+
require "fileutils"
|
4
|
+
include FileUtils # rubocop:disable Style/MixinUsage# rubocop:disable Style/MixinUsage
|
5
5
|
|
6
6
|
# path to your application root.
|
7
|
-
APP_ROOT = Pathname.new File.expand_path(
|
7
|
+
APP_ROOT = Pathname.new File.expand_path("../../", __FILE__)
|
8
8
|
|
9
9
|
def system!(*args)
|
10
10
|
system(*args) || abort("\n== Command #{args} failed ==")
|
@@ -14,16 +14,16 @@ chdir APP_ROOT do
|
|
14
14
|
# This script is a way to update your development environment automatically.
|
15
15
|
# Add necessary update steps to this file.
|
16
16
|
|
17
|
-
puts
|
18
|
-
system!
|
19
|
-
system(
|
17
|
+
puts "== Installing dependencies =="
|
18
|
+
system! "gem install bundler --conservative"
|
19
|
+
system("bundle check") || system!("bundle install")
|
20
20
|
|
21
21
|
puts "\n== Updating database =="
|
22
|
-
system!
|
22
|
+
system! "bin/rails db:migrate"
|
23
23
|
|
24
24
|
puts "\n== Removing old logs and tempfiles =="
|
25
|
-
system!
|
25
|
+
system! "bin/rails log:clear tmp:clear"
|
26
26
|
|
27
27
|
puts "\n== Restarting application server =="
|
28
|
-
system!
|
28
|
+
system! "bin/rails restart"
|
29
29
|
end
|
data/spec/dummy/bin/yarn
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
VENDOR_PATH = File.expand_path(
|
2
|
+
VENDOR_PATH = File.expand_path("..", __dir__)
|
3
3
|
Dir.chdir(VENDOR_PATH) do
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
exit 1
|
10
|
-
end
|
4
|
+
exec "yarnpkg #{ARGV.join(" ")}"
|
5
|
+
rescue Errno::ENOENT
|
6
|
+
warn "Yarn executable was not detected in the system."
|
7
|
+
warn "Download Yarn at https://yarnpkg.com/en/docs/install"
|
8
|
+
exit 1
|
11
9
|
end
|
data/spec/dummy/config.ru
CHANGED
data/spec/dummy/config/boot.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Set up gems listed in the Gemfile.
|
2
|
-
ENV[
|
2
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __dir__)
|
3
3
|
|
4
|
-
require
|
5
|
-
$LOAD_PATH.unshift File.expand_path(
|
4
|
+
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
|
5
|
+
$LOAD_PATH.unshift File.expand_path("../../../lib", __dir__)
|
@@ -5,8 +5,8 @@ defaults: &defaults
|
|
5
5
|
adapter: postgresql
|
6
6
|
username: <%= ENV['NULOGY_MESSAGE_BUS_PRODUCER_DATABASE_USER'] || "nulogy" %>
|
7
7
|
password: <%= ENV['NULOGY_MESSAGE_BUS_PRODUCER_DATABASE_PASS'] || "Nulogy4Ever" %>
|
8
|
-
host: <%= ENV['
|
9
|
-
port:
|
8
|
+
host: <%= ENV['DATABASE_HOST'] || "localhost" %>
|
9
|
+
port: 5438
|
10
10
|
min_messages: warning
|
11
11
|
schema_search_path: "\"$user\", public"
|
12
12
|
|
@@ -13,12 +13,12 @@ Rails.application.configure do
|
|
13
13
|
config.consider_all_requests_local = true
|
14
14
|
|
15
15
|
# Enable/disable caching. By default caching is disabled.
|
16
|
-
if Rails.root.join(
|
16
|
+
if Rails.root.join("tmp/caching-dev.txt").exist?
|
17
17
|
config.action_controller.perform_caching = true
|
18
18
|
|
19
19
|
config.cache_store = :memory_store
|
20
20
|
config.public_file_server.headers = {
|
21
|
-
|
21
|
+
"Cache-Control" => "public, max-age=#{2.days.seconds.to_i}"
|
22
22
|
}
|
23
23
|
else
|
24
24
|
config.action_controller.perform_caching = false
|
@@ -11,7 +11,7 @@ Rails.application.configure do
|
|
11
11
|
config.eager_load = true
|
12
12
|
|
13
13
|
# Full error reports are disabled and caching is turned on.
|
14
|
-
config.consider_all_requests_local
|
14
|
+
config.consider_all_requests_local = false
|
15
15
|
config.action_controller.perform_caching = true
|
16
16
|
|
17
17
|
# Attempt to read encrypted secrets from `config/secrets.yml.enc`.
|
@@ -21,7 +21,7 @@ Rails.application.configure do
|
|
21
21
|
|
22
22
|
# Disable serving static files from the `/public` folder by default since
|
23
23
|
# Apache or NGINX already handles this.
|
24
|
-
config.public_file_server.enabled = ENV[
|
24
|
+
config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
|
25
25
|
|
26
26
|
# Compress JavaScripts and CSS.
|
27
27
|
config.assets.js_compressor = :uglifier
|
@@ -52,7 +52,7 @@ Rails.application.configure do
|
|
52
52
|
config.log_level = :debug
|
53
53
|
|
54
54
|
# Prepend all log lines with the following tags.
|
55
|
-
config.log_tags = [
|
55
|
+
config.log_tags = [:request_id]
|
56
56
|
|
57
57
|
# Use a different cache store in production.
|
58
58
|
# config.cache_store = :mem_cache_store
|
@@ -81,9 +81,9 @@ Rails.application.configure do
|
|
81
81
|
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
82
82
|
|
83
83
|
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
84
|
-
logger
|
84
|
+
logger = ActiveSupport::Logger.new($stdout)
|
85
85
|
logger.formatter = config.log_formatter
|
86
|
-
config.logger
|
86
|
+
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
87
87
|
end
|
88
88
|
|
89
89
|
# Do not dump schema after migrations.
|
@@ -15,11 +15,11 @@ Rails.application.configure do
|
|
15
15
|
# Configure public file server for tests with Cache-Control for performance.
|
16
16
|
config.public_file_server.enabled = true
|
17
17
|
config.public_file_server.headers = {
|
18
|
-
|
18
|
+
"Cache-Control" => "public, max-age=#{1.hour.seconds.to_i}"
|
19
19
|
}
|
20
20
|
|
21
21
|
# Show full error reports and disable caching.
|
22
|
-
config.consider_all_requests_local
|
22
|
+
config.consider_all_requests_local = true
|
23
23
|
config.action_controller.perform_caching = false
|
24
24
|
|
25
25
|
# Raise exceptions instead of rendering exception templates.
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
3
|
# Version of your assets, change this if you want to expire all your assets.
|
4
|
-
Rails.application.config.assets.version =
|
4
|
+
Rails.application.config.assets.version = "1.0"
|
5
5
|
|
6
6
|
# Add additional assets to the asset load path.
|
7
7
|
# Rails.application.config.assets.paths << Emoji.images_path
|
8
8
|
# Add Yarn node_modules folder to the asset load path.
|
9
|
-
Rails.application.config.assets.paths << Rails.root.join(
|
9
|
+
Rails.application.config.assets.paths << Rails.root.join("node_modules")
|
10
10
|
|
11
11
|
# Precompile additional assets.
|
12
12
|
# application.js, application.css, and all non-JS/CSS in the app/assets
|
data/spec/dummy/config/puma.rb
CHANGED
@@ -4,16 +4,16 @@
|
|
4
4
|
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
5
|
# and maximum; this matches the default thread size of Active Record.
|
6
6
|
#
|
7
|
-
threads_count = ENV.fetch("RAILS_MAX_THREADS"
|
7
|
+
threads_count = ENV.fetch("RAILS_MAX_THREADS", 5)
|
8
8
|
threads threads_count, threads_count
|
9
9
|
|
10
10
|
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
11
11
|
#
|
12
|
-
port
|
12
|
+
port ENV.fetch("PORT", 3000)
|
13
13
|
|
14
14
|
# Specifies the `environment` that Puma will run in.
|
15
15
|
#
|
16
|
-
environment ENV.fetch("RAILS_ENV"
|
16
|
+
environment ENV.fetch("RAILS_ENV", "development")
|
17
17
|
|
18
18
|
# Specifies the number of `workers` to boot in clustered mode.
|
19
19
|
# Workers are forked webserver processes. If using threads and workers together
|
data/spec/dummy/config/spring.rb
CHANGED
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2021_03_30_204121) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
16
|
enable_extension "plpgsql"
|
@@ -23,6 +23,7 @@ ActiveRecord::Schema.define(version: 2020_10_05_164116) do
|
|
23
23
|
t.uuid "company_uuid", null: false
|
24
24
|
t.json "event_json", null: false
|
25
25
|
t.datetime "created_at"
|
26
|
+
t.text "event_type"
|
26
27
|
t.index ["created_at"], name: "index_nulogy_mb_producer_subscription_events_on_created_at"
|
27
28
|
end
|
28
29
|
|
@@ -2230,3 +2230,324 @@ Migrating to CreateActiveStorageTables (20201005164116)
|
|
2230
2230
|
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
2231
2231
|
[1m[35m (2.0ms)[0m [1m[34mSELECT pg_advisory_unlock(3053653019973222135)[0m
|
2232
2232
|
[1m[35m (2.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2233
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
2234
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
2235
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2236
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2237
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2238
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2239
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2240
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2241
|
+
[1m[35mSQL (2.0ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2242
|
+
[1m[35mSQL (1.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2243
|
+
[1m[35m (7.8ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2244
|
+
[1m[35m (17.2ms)[0m [1m[35mCREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)[0m
|
2245
|
+
[1m[35m (3.0ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2246
|
+
[1m[35m (2.4ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2247
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2248
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2249
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2250
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2251
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
2252
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2253
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2254
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
2255
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
2256
|
+
[1m[35mSQL (1.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2257
|
+
[1m[35mSQL (13.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2258
|
+
[1m[35m (2.4ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2259
|
+
[1m[35m (17.5ms)[0m [1m[35mCREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)[0m
|
2260
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2261
|
+
[1m[35m (1.1ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2262
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2263
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2264
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2265
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2266
|
+
[1m[35m (1.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20201005164116)[0m
|
2267
|
+
[1m[35m (1.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
2268
|
+
(20200611150212),
|
2269
|
+
(20201005150212);
|
2270
|
+
|
2271
|
+
[0m
|
2272
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2273
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2274
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
2275
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2020-10-08 19:11:47.210016"], ["updated_at", "2020-10-08 19:11:47.210016"]]
|
2276
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2277
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2278
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
2279
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2020-10-08 19:11:47.218022"], ["key", "environment"]]
|
2280
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2281
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2282
|
+
[1m[35m (176.5ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
2283
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
2284
|
+
[1m[35mSQL (2.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2285
|
+
[1m[35mSQL (34.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2286
|
+
[1m[35m (2.2ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2287
|
+
[1m[35m (12.0ms)[0m [1m[35mCREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)[0m
|
2288
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2289
|
+
[1m[35m (1.5ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2290
|
+
[1m[35m (6.1ms)[0m [1m[35mCREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2291
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2292
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2293
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2294
|
+
[1m[35m (2.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20201005164116)[0m
|
2295
|
+
[1m[35m (1.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
2296
|
+
(20200611150212),
|
2297
|
+
(20201005150212);
|
2298
|
+
|
2299
|
+
[0m
|
2300
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2301
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2302
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
2303
|
+
[1m[36mActiveRecord::InternalMetadata Create (2.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2021-03-09 17:25:53.335828"], ["updated_at", "2021-03-09 17:25:53.335828"]]
|
2304
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2305
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2306
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
2307
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
2308
|
+
[1m[35mSQL (2.8ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2309
|
+
[1m[35mSQL (24.8ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2310
|
+
[1m[35m (2.0ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2311
|
+
[1m[35m (30.7ms)[0m [1m[35mCREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)[0m
|
2312
|
+
[1m[35m (5.5ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2313
|
+
[1m[35m (1.3ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2314
|
+
[1m[35m (6.6ms)[0m [1m[35mCREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2315
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2316
|
+
[1m[35m (6.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2317
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2318
|
+
[1m[35m (2.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20201005164116)[0m
|
2319
|
+
[1m[35m (2.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
2320
|
+
(20200611150212),
|
2321
|
+
(20201005150212);
|
2322
|
+
|
2323
|
+
[0m
|
2324
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2325
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2326
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
2327
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2021-03-09 17:25:53.524890"], ["updated_at", "2021-03-09 17:25:53.524890"]]
|
2328
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2329
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2330
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
2331
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.2ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2021-03-09 17:25:53.533488"], ["key", "environment"]]
|
2332
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2333
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2334
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(3053653019973222135)[0m
|
2335
|
+
[1m[35m (5.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2336
|
+
Migrating to AddEventTypeToSubscriptionEvents (20210330204121)
|
2337
|
+
[1m[35m (2.0ms)[0m [1m[35mBEGIN[0m
|
2338
|
+
[1m[35m (8.7ms)[0m [1m[35mALTER TABLE "message_bus_subscriptions" ADD "event_type" text[0m
|
2339
|
+
[1m[35m (2.0ms)[0m [1m[31mROLLBACK[0m
|
2340
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT pg_advisory_unlock(3053653019973222135)[0m
|
2341
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
2342
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
2343
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2344
|
+
[1m[35m (3.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2345
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2346
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2347
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2348
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2349
|
+
[1m[35mSQL (3.8ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2350
|
+
[1m[35mSQL (1.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2351
|
+
[1m[35m (8.9ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2352
|
+
[1m[35m (21.9ms)[0m [1m[35mCREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)[0m
|
2353
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2354
|
+
[1m[35m (3.0ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2355
|
+
[1m[35m (6.1ms)[0m [1m[35mCREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2356
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2357
|
+
[1m[35m (2.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2358
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2359
|
+
[1m[35m (1.5ms)[0m [1m[35mBEGIN[0m
|
2360
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2361
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2362
|
+
[1m[35m (1.7ms)[0m [1m[35mBEGIN[0m
|
2363
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2364
|
+
[1m[35mSQL (4.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2365
|
+
[1m[35mSQL (2.1ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2366
|
+
[1m[35m (16.8ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2367
|
+
[1m[35m (22.6ms)[0m [1m[35mCREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)[0m
|
2368
|
+
[1m[35m (4.5ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2369
|
+
[1m[35m (4.2ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2370
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2371
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2372
|
+
[1m[35m (3.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2373
|
+
[1m[35m (5.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20201005164116)[0m
|
2374
|
+
[1m[35m (3.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
2375
|
+
(20200611150212),
|
2376
|
+
(20201005150212);
|
2377
|
+
|
2378
|
+
[0m
|
2379
|
+
[1m[36mActiveRecord::InternalMetadata Load (3.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2380
|
+
[1m[35m (2.0ms)[0m [1m[35mBEGIN[0m
|
2381
|
+
[1m[36mActiveRecord::InternalMetadata Create (3.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2021-03-30 20:52:23.588828"], ["updated_at", "2021-03-30 20:52:23.588828"]]
|
2382
|
+
[1m[35m (3.0ms)[0m [1m[35mCOMMIT[0m
|
2383
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2384
|
+
[1m[35m (1.5ms)[0m [1m[35mBEGIN[0m
|
2385
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.8ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2021-03-30 20:52:23.604948"], ["key", "environment"]]
|
2386
|
+
[1m[35m (2.3ms)[0m [1m[35mCOMMIT[0m
|
2387
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2388
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(3053653019973222135)[0m
|
2389
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2390
|
+
Migrating to AddEventTypeToSubscriptionEvents (20210330204121)
|
2391
|
+
[1m[35m (1.5ms)[0m [1m[35mBEGIN[0m
|
2392
|
+
[1m[35m (2.8ms)[0m [1m[35mALTER TABLE "message_bus_subscriptions" ADD "event_type" text[0m
|
2393
|
+
[1m[35m (1.6ms)[0m [1m[31mROLLBACK[0m
|
2394
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT pg_advisory_unlock(3053653019973222135)[0m
|
2395
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT pg_try_advisory_lock(3053653019973222135)[0m
|
2396
|
+
[1m[35m (2.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2397
|
+
Migrating to AddEventTypeToSubscriptionEvents (20210330204121)
|
2398
|
+
[1m[35m (1.6ms)[0m [1m[35mBEGIN[0m
|
2399
|
+
[1m[35m (3.1ms)[0m [1m[35mALTER TABLE "message_bus_subscriptions" ADD "event_type" text[0m
|
2400
|
+
[1m[35m (1.6ms)[0m [1m[31mROLLBACK[0m
|
2401
|
+
[1m[35m (2.4ms)[0m [1m[34mSELECT pg_advisory_unlock(3053653019973222135)[0m
|
2402
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2403
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2404
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2405
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(3053653019973222135)[0m
|
2406
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2407
|
+
Migrating to CreateActiveStorageTables (20201005164116)
|
2408
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
2409
|
+
[1m[36mActiveRecord::SchemaMigration Destroy (2.7ms)[0m [1m[31mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20201005164116"]]
|
2410
|
+
[1m[35m (5.3ms)[0m [1m[35mCOMMIT[0m
|
2411
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT pg_advisory_unlock(3053653019973222135)[0m
|
2412
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2413
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(3053653019973222135)[0m
|
2414
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2415
|
+
Migrating to CreateActiveStorageTables (20201005164116)
|
2416
|
+
[1m[35m (1.5ms)[0m [1m[35mBEGIN[0m
|
2417
|
+
[1m[36mActiveRecord::SchemaMigration Create (1.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201005164116"]]
|
2418
|
+
[1m[35m (2.7ms)[0m [1m[35mCOMMIT[0m
|
2419
|
+
Migrating to AddEventTypeToSubscriptionEvents (20210330204121)
|
2420
|
+
[1m[35m (1.7ms)[0m [1m[35mBEGIN[0m
|
2421
|
+
[1m[35m (3.3ms)[0m [1m[35mALTER TABLE "message_bus_subscriptions" ADD "event_type" text[0m
|
2422
|
+
[1m[35m (1.5ms)[0m [1m[31mROLLBACK[0m
|
2423
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT pg_advisory_unlock(3053653019973222135)[0m
|
2424
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2425
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2426
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2427
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2428
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2429
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2430
|
+
[1m[35m (24.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"[0m
|
2431
|
+
[1m[35m (1.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"[0m
|
2432
|
+
[1m[35m (248.6ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
2433
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
2434
|
+
[1m[35m (16.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2435
|
+
[1m[35m (10.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2436
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(3053653019973222135)[0m
|
2437
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2438
|
+
Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
|
2439
|
+
[1m[35m (1.5ms)[0m [1m[35mBEGIN[0m
|
2440
|
+
[1m[35mSQL (7.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2441
|
+
[1m[35m (6.6ms)[0m [1m[35mCREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2442
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2443
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)[0m
|
2444
|
+
[1m[35m (3.2ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2445
|
+
[1m[36mActiveRecord::SchemaMigration Create (2.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200611150212"]]
|
2446
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
2447
|
+
Migrating to RenameTenantIdAndPublic (20201005150212)
|
2448
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
2449
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "message_bus_subscription_events" RENAME COLUMN "tenant_id" TO "company_uuid"[0m
|
2450
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "message_bus_subscription_events" RENAME COLUMN "public_subscription_id" TO "subscription_id"[0m
|
2451
|
+
[1m[36mActiveRecord::SchemaMigration Create (1.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201005150212"]]
|
2452
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2453
|
+
Migrating to CreateActiveStorageTables (20201005164116)
|
2454
|
+
[1m[35m (1.4ms)[0m [1m[35mBEGIN[0m
|
2455
|
+
[1m[36mActiveRecord::SchemaMigration Create (1.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201005164116"]]
|
2456
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2457
|
+
Migrating to AddEventTypeToSubscriptionEvents (20210330204121)
|
2458
|
+
[1m[35m (1.9ms)[0m [1m[35mBEGIN[0m
|
2459
|
+
[1m[35m (2.2ms)[0m [1m[35mALTER TABLE "message_bus_subscriptions" ADD "event_type" text[0m
|
2460
|
+
[1m[35m (1.3ms)[0m [1m[31mROLLBACK[0m
|
2461
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT pg_advisory_unlock(3053653019973222135)[0m
|
2462
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(3053653019973222135)[0m
|
2463
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2464
|
+
Migrating to AddEventTypeToSubscriptionEvents (20210330204121)
|
2465
|
+
[1m[35m (1.7ms)[0m [1m[35mBEGIN[0m
|
2466
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "message_bus_subscription_events" ADD "event_type" text[0m
|
2467
|
+
[1m[36mActiveRecord::SchemaMigration Create (2.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20210330204121"]]
|
2468
|
+
[1m[35m (2.3ms)[0m [1m[35mCOMMIT[0m
|
2469
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2470
|
+
[1m[35m (1.5ms)[0m [1m[35mBEGIN[0m
|
2471
|
+
[1m[36mActiveRecord::InternalMetadata Create (2.8ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2021-03-31 14:32:42.969683"], ["updated_at", "2021-03-31 14:32:42.969683"]]
|
2472
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2473
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT pg_advisory_unlock(3053653019973222135)[0m
|
2474
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2475
|
+
[1m[35m (4.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2476
|
+
[1m[35m (4.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2477
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2478
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2479
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2480
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2481
|
+
[1m[35m (3.0ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"[0m
|
2482
|
+
[1m[35m (2.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2483
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2484
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2485
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2486
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2487
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2488
|
+
[1m[35m (1.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"[0m
|
2489
|
+
[1m[35m (5.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2490
|
+
[1m[35m (4.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2491
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2492
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2493
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2494
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2495
|
+
[1m[35m (3.0ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"[0m
|
2496
|
+
[1m[35m (4.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2497
|
+
[1m[35m (2.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2498
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2499
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2500
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2501
|
+
[1m[35m (2.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2502
|
+
[1m[35m (23.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"[0m
|
2503
|
+
[1m[35m (223.2ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
2504
|
+
[1m[35mSQL (1.4ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2505
|
+
[1m[35mSQL (7.9ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2506
|
+
[1m[35m (1.6ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2507
|
+
[1m[35m (8.8ms)[0m [1m[35mCREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp, "event_type" text)[0m
|
2508
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2509
|
+
[1m[35m (1.4ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2510
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2511
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2512
|
+
[1m[35m (6.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2513
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2514
|
+
[1m[35m (1.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20210330204121)[0m
|
2515
|
+
[1m[35m (2.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
2516
|
+
(20201005164116),
|
2517
|
+
(20200611150212),
|
2518
|
+
(20201005150212);
|
2519
|
+
|
2520
|
+
[0m
|
2521
|
+
[1m[35m (6.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2522
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2523
|
+
[1m[35m (1.4ms)[0m [1m[35mBEGIN[0m
|
2524
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2021-03-31 17:26:56.186267"], ["updated_at", "2021-03-31 17:26:56.186267"]]
|
2525
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2526
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2527
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
2528
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.5ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2021-03-31 17:26:56.197348"], ["key", "environment"]]
|
2529
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
2530
|
+
[1m[36mNulogyMessageBusProducer::SubscriptionEvent Load (3.6ms)[0m [1m[34mSELECT "message_bus_subscription_events".* FROM "message_bus_subscription_events" WHERE "message_bus_subscription_events"."id" = $1 LIMIT $2[0m [["id", "052ccd7d-fcb8-4779-a431-edcd07c6f9f2"], ["LIMIT", 1]]
|
2531
|
+
[1m[35m (1.5ms)[0m [1m[35mBEGIN[0m
|
2532
|
+
[1m[36mNulogyMessageBusProducer::SubscriptionEvent Create (2.1ms)[0m [1m[32mINSERT INTO "message_bus_subscription_events" ("id", "subscription_id", "partition_key", "topic_name", "company_uuid", "event_json", "created_at", "event_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["id", "052ccd7d-fcb8-4779-a431-edcd07c6f9f2"], ["subscription_id", "b7431c4b-6ba1-48de-9089-0d551a0b2289"], ["partition_key", "d42fd0ff-5f7c-4479-a555-275ad4a3d9ba"], ["topic_name", "some-topic"], ["company_uuid", "d42fd0ff-5f7c-4479-a555-275ad4a3d9ba"], ["event_json", "{\"field\":\"value\"}"], ["created_at", "2021-03-31 18:13:57.002078"], ["event_type", "some-type"]]
|
2533
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
2534
|
+
[1m[36mNulogyMessageBusProducer::SubscriptionEvent Load (2.9ms)[0m [1m[34mSELECT "message_bus_subscription_events".* FROM "message_bus_subscription_events" WHERE "message_bus_subscription_events"."id" = $1 LIMIT $2[0m [["id", "4301a9a9-410d-4906-a308-3f2e2a716481"], ["LIMIT", 1]]
|
2535
|
+
[1m[35m (1.9ms)[0m [1m[35mBEGIN[0m
|
2536
|
+
[1m[36mNulogyMessageBusProducer::SubscriptionEvent Create (1.9ms)[0m [1m[32mINSERT INTO "message_bus_subscription_events" ("id", "subscription_id", "partition_key", "topic_name", "company_uuid", "event_json", "created_at", "event_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["id", "4301a9a9-410d-4906-a308-3f2e2a716481"], ["subscription_id", "af99e3c4-e8da-4650-8429-a093d57e28c5"], ["partition_key", "43c04d27-3b88-4bb8-aa32-6e9cc401a9a1"], ["topic_name", "some-topic"], ["company_uuid", "43c04d27-3b88-4bb8-aa32-6e9cc401a9a1"], ["event_json", "{\"field\":\"value\"}"], ["created_at", "2021-03-31 18:20:17.588245"], ["event_type", "some-type"]]
|
2537
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
2538
|
+
[1m[36mNulogyMessageBusProducer::SubscriptionEvent Load (2.4ms)[0m [1m[34mSELECT "message_bus_subscription_events".* FROM "message_bus_subscription_events" WHERE "message_bus_subscription_events"."id" = $1 LIMIT $2[0m [["id", "0de39387-eb7b-4c82-981e-5440bcb563b0"], ["LIMIT", 1]]
|
2539
|
+
[1m[35m (1.7ms)[0m [1m[35mBEGIN[0m
|
2540
|
+
[1m[36mNulogyMessageBusProducer::SubscriptionEvent Create (2.1ms)[0m [1m[32mINSERT INTO "message_bus_subscription_events" ("id", "subscription_id", "partition_key", "topic_name", "company_uuid", "event_json", "created_at", "event_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["id", "0de39387-eb7b-4c82-981e-5440bcb563b0"], ["subscription_id", "9d1b70b1-7598-4687-a634-d55b17f868cc"], ["partition_key", "c7075533-fd2e-4f63-b964-980f3fa5f4a6"], ["topic_name", "some-topic"], ["company_uuid", "c7075533-fd2e-4f63-b964-980f3fa5f4a6"], ["event_json", "{\"field\":\"value\"}"], ["created_at", "2021-03-31 18:21:19.585687"], ["event_type", "some-type"]]
|
2541
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
2542
|
+
[1m[36mNulogyMessageBusProducer::SubscriptionEvent Load (2.6ms)[0m [1m[34mSELECT "message_bus_subscription_events".* FROM "message_bus_subscription_events" WHERE "message_bus_subscription_events"."id" = $1 LIMIT $2[0m [["id", "afa71c73-ea8c-4c05-ab56-5518923ef09f"], ["LIMIT", 1]]
|
2543
|
+
[1m[35m (1.6ms)[0m [1m[35mBEGIN[0m
|
2544
|
+
[1m[36mNulogyMessageBusProducer::SubscriptionEvent Create (2.1ms)[0m [1m[32mINSERT INTO "message_bus_subscription_events" ("id", "subscription_id", "partition_key", "topic_name", "company_uuid", "event_json", "created_at", "event_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["id", "afa71c73-ea8c-4c05-ab56-5518923ef09f"], ["subscription_id", "a91d295d-d570-49fc-bb50-7bc2317e7635"], ["partition_key", "106bea13-ccdb-49a5-a613-9c3e206267ca"], ["topic_name", "some-topic"], ["company_uuid", "106bea13-ccdb-49a5-a613-9c3e206267ca"], ["event_json", "{\"field\":\"value\"}"], ["created_at", "2021-03-31 18:21:20.593447"], ["event_type", "some-type"]]
|
2545
|
+
[1m[35m (3.1ms)[0m [1m[35mCOMMIT[0m
|
2546
|
+
[1m[36mNulogyMessageBusProducer::SubscriptionEvent Load (2.3ms)[0m [1m[34mSELECT "message_bus_subscription_events".* FROM "message_bus_subscription_events" WHERE "message_bus_subscription_events"."id" = $1 LIMIT $2[0m [["id", "91cc1302-d68e-42e4-8491-d4743289c54a"], ["LIMIT", 1]]
|
2547
|
+
[1m[35m (1.7ms)[0m [1m[35mBEGIN[0m
|
2548
|
+
[1m[36mNulogyMessageBusProducer::SubscriptionEvent Create (1.9ms)[0m [1m[32mINSERT INTO "message_bus_subscription_events" ("id", "subscription_id", "partition_key", "topic_name", "company_uuid", "event_json", "created_at", "event_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["id", "91cc1302-d68e-42e4-8491-d4743289c54a"], ["subscription_id", "d820eb79-29b4-48cb-91d3-aa6deeb7b182"], ["partition_key", "67afaf53-d2b3-47cd-937b-6d4ef9492b39"], ["topic_name", "some-topic"], ["company_uuid", "67afaf53-d2b3-47cd-937b-6d4ef9492b39"], ["event_json", "{\"field\":\"value\"}"], ["created_at", "2021-03-31 18:21:21.425429"], ["event_type", "some-type"]]
|
2549
|
+
[1m[35m (3.0ms)[0m [1m[35mCOMMIT[0m
|
2550
|
+
[1m[36mNulogyMessageBusProducer::SubscriptionEvent Load (2.2ms)[0m [1m[34mSELECT "message_bus_subscription_events".* FROM "message_bus_subscription_events" WHERE "message_bus_subscription_events"."id" = $1 LIMIT $2[0m [["id", "31e9b591-c646-4fcc-bcc6-70afe4aaa05c"], ["LIMIT", 1]]
|
2551
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
2552
|
+
[1m[36mNulogyMessageBusProducer::SubscriptionEvent Create (1.3ms)[0m [1m[32mINSERT INTO "message_bus_subscription_events" ("id", "subscription_id", "partition_key", "topic_name", "company_uuid", "event_json", "created_at", "event_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["id", "31e9b591-c646-4fcc-bcc6-70afe4aaa05c"], ["subscription_id", "8e8b156e-b4e5-47a7-9f86-e6e876ccaf51"], ["partition_key", "c035daf9-1d15-4515-bbe2-7170a1ed7402"], ["topic_name", "some-topic"], ["company_uuid", "c035daf9-1d15-4515-bbe2-7170a1ed7402"], ["event_json", "{\"field\":\"value\"}"], ["created_at", "2021-03-31 18:21:22.409136"], ["event_type", "some-type"]]
|
2553
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|