nulogy_message_bus_producer 3.2.1 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +82 -22
- data/Rakefile +2 -4
- data/db/migrate/20200611150212_create_public_subscriptions_and_events_tables.rb +2 -2
- data/lib/nulogy_message_bus_producer.rb +15 -8
- 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/self_serve_subscription.rb +18 -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/postgres_transport.rb +13 -6
- data/lib/nulogy_message_bus_producer/subscriptions/query_validator.rb +47 -0
- data/lib/nulogy_message_bus_producer/subscriptions/risky_subscription_blocker.rb +0 -5
- 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/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 +14 -16
- data/spec/dummy/bin/update +10 -10
- data/spec/dummy/bin/yarn +13 -7
- data/spec/dummy/config.ru +2 -1
- data/spec/dummy/config/application.rb +11 -6
- data/spec/dummy/config/boot.rb +2 -4
- data/spec/dummy/config/cable.yml +2 -2
- data/spec/dummy/config/database.yml +2 -2
- data/spec/dummy/config/environment.rb +1 -1
- data/spec/dummy/config/environments/development.rb +29 -7
- data/spec/dummy/config/environments/production.rb +50 -20
- data/spec/dummy/config/environments/test.rb +25 -8
- data/spec/dummy/config/initializers/assets.rb +2 -2
- data/spec/dummy/config/initializers/backtrace_silencers.rb +4 -3
- data/spec/dummy/config/initializers/content_security_policy.rb +30 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +3 -1
- data/spec/dummy/config/initializers/new_framework_defaults_6_1.rb +67 -0
- data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
- data/spec/dummy/config/locales/en.yml +1 -1
- data/spec/dummy/config/puma.rb +3 -3
- data/spec/dummy/config/spring.rb +2 -2
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/db/schema.rb +0 -2
- data/spec/dummy/log/development.log +317 -0
- data/spec/dummy/log/test.log +13164 -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 +6 -7
- data/spec/integration/lib/nulogy_message_bus_producer/subscription_spec.rb +3 -57
- 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 +1 -1
- data/spec/integration/lib/nulogy_message_bus_producer/subscriptions/postgres_transport_spec.rb +100 -54
- data/spec/integration/lib/nulogy_message_bus_producer/{subscriber_graphql_schema_validator_spec.rb → subscriptions/query_validator_spec.rb} +3 -3
- data/spec/integration/lib/nulogy_message_bus_producer/subscriptions/risky_subscription_blocker_spec.rb +0 -16
- 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 +26 -1
- data/spec/support/kafka.rb +9 -10
- data/spec/support/kafka_connect.rb +1 -1
- data/spec/support/shared_examples/subscription_validations.rb +77 -0
- data/spec/support/skip.rb +9 -0
- data/spec/support/sql_helpers.rb +1 -1
- data/spec/support/subscription_helpers.rb +22 -4
- data/spec/support/test_graphql_schema.rb +6 -2
- metadata +131 -79
- data/lib/nulogy_message_bus_producer/subscriber_graphql_schema_validator.rb +0 -45
- data/lib/nulogy_message_bus_producer/subscription.rb +0 -28
@@ -1,3 +1,5 @@
|
|
1
|
+
require "active_support/core_ext/integer/time"
|
2
|
+
|
1
3
|
Rails.application.configure do
|
2
4
|
# Settings specified here will take precedence over those in config/application.rb.
|
3
5
|
|
@@ -11,35 +13,35 @@ Rails.application.configure do
|
|
11
13
|
config.eager_load = true
|
12
14
|
|
13
15
|
# Full error reports are disabled and caching is turned on.
|
14
|
-
config.consider_all_requests_local
|
16
|
+
config.consider_all_requests_local = false
|
15
17
|
config.action_controller.perform_caching = true
|
16
18
|
|
17
|
-
#
|
18
|
-
#
|
19
|
-
#
|
19
|
+
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
|
20
|
+
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
|
21
|
+
# config.require_master_key = true
|
20
22
|
config.read_encrypted_secrets = false
|
21
23
|
|
22
24
|
# Disable serving static files from the `/public` folder by default since
|
23
25
|
# Apache or NGINX already handles this.
|
24
|
-
config.public_file_server.enabled = ENV[
|
26
|
+
config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
|
25
27
|
|
26
|
-
# Compress
|
27
|
-
config.assets.js_compressor = :uglifier
|
28
|
+
# Compress CSS using a preprocessor.
|
28
29
|
# config.assets.css_compressor = :sass
|
29
30
|
|
30
31
|
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
31
32
|
config.assets.compile = false
|
32
33
|
|
33
|
-
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
34
|
-
|
35
34
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
36
|
-
# config.
|
35
|
+
# config.asset_host = 'http://assets.example.com'
|
37
36
|
|
38
37
|
# Specifies the header that your server uses for sending files.
|
39
38
|
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
40
39
|
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
41
40
|
|
42
|
-
#
|
41
|
+
# Store uploaded files on the local file system (see config/storage.yml for options).
|
42
|
+
config.active_storage.service = :local
|
43
|
+
|
44
|
+
# Mount Action Cable outside main process or domain.
|
43
45
|
# config.action_cable.mount_path = nil
|
44
46
|
# config.action_cable.url = 'wss://example.com/cable'
|
45
47
|
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
|
@@ -47,19 +49,20 @@ Rails.application.configure do
|
|
47
49
|
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
48
50
|
# config.force_ssl = true
|
49
51
|
|
50
|
-
#
|
51
|
-
#
|
52
|
-
config.log_level = :
|
52
|
+
# Include generic and useful information about system operation, but avoid logging too much
|
53
|
+
# information to avoid inadvertent exposure of personally identifiable information (PII).
|
54
|
+
config.log_level = :info
|
53
55
|
|
54
56
|
# Prepend all log lines with the following tags.
|
55
|
-
config.log_tags = [
|
57
|
+
config.log_tags = [:request_id]
|
56
58
|
|
57
59
|
# Use a different cache store in production.
|
58
60
|
# config.cache_store = :mem_cache_store
|
59
61
|
|
60
|
-
# Use a real queuing backend for Active Job (and separate queues per environment)
|
62
|
+
# Use a real queuing backend for Active Job (and separate queues per environment).
|
61
63
|
# config.active_job.queue_adapter = :resque
|
62
|
-
# config.active_job.queue_name_prefix = "
|
64
|
+
# config.active_job.queue_name_prefix = "dummy_production"
|
65
|
+
|
63
66
|
config.action_mailer.perform_caching = false
|
64
67
|
|
65
68
|
# Ignore bad email addresses and do not raise email delivery errors.
|
@@ -73,19 +76,46 @@ Rails.application.configure do
|
|
73
76
|
# Send deprecation notices to registered listeners.
|
74
77
|
config.active_support.deprecation = :notify
|
75
78
|
|
79
|
+
# Log disallowed deprecations.
|
80
|
+
config.active_support.disallowed_deprecation = :log
|
81
|
+
|
82
|
+
# Tell Active Support which deprecation messages to disallow.
|
83
|
+
config.active_support.disallowed_deprecation_warnings = []
|
84
|
+
|
76
85
|
# Use default logging formatter so that PID and timestamp are not suppressed.
|
77
86
|
config.log_formatter = ::Logger::Formatter.new
|
78
87
|
|
79
88
|
# Use a different logger for distributed setups.
|
80
|
-
# require
|
89
|
+
# require "syslog/logger"
|
81
90
|
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
82
91
|
|
83
92
|
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
84
|
-
logger
|
93
|
+
logger = ActiveSupport::Logger.new($stdout)
|
85
94
|
logger.formatter = config.log_formatter
|
86
|
-
config.logger
|
95
|
+
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
87
96
|
end
|
88
97
|
|
89
98
|
# Do not dump schema after migrations.
|
90
99
|
config.active_record.dump_schema_after_migration = false
|
100
|
+
|
101
|
+
# Inserts middleware to perform automatic connection switching.
|
102
|
+
# The `database_selector` hash is used to pass options to the DatabaseSelector
|
103
|
+
# middleware. The `delay` is used to determine how long to wait after a write
|
104
|
+
# to send a subsequent read to the primary.
|
105
|
+
#
|
106
|
+
# The `database_resolver` class is used by the middleware to determine which
|
107
|
+
# database is appropriate to use based on the time delay.
|
108
|
+
#
|
109
|
+
# The `database_resolver_context` class is used by the middleware to set
|
110
|
+
# timestamps for the last write to the primary. The resolver uses the context
|
111
|
+
# class timestamps to determine how long to wait before reading from the
|
112
|
+
# replica.
|
113
|
+
#
|
114
|
+
# By default Rails will store a last write timestamp in the session. The
|
115
|
+
# DatabaseSelector middleware is designed as such you can define your own
|
116
|
+
# strategy for connection switching and pass that into the middleware through
|
117
|
+
# these configuration options.
|
118
|
+
# config.active_record.database_selector = { delay: 2.seconds }
|
119
|
+
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
|
120
|
+
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
|
91
121
|
end
|
@@ -1,10 +1,13 @@
|
|
1
|
+
require "active_support/core_ext/integer/time"
|
2
|
+
|
3
|
+
# The test environment is used exclusively to run your application's
|
4
|
+
# test suite. You never need to work with it otherwise. Remember that
|
5
|
+
# your test database is "scratch space" for the test suite and is wiped
|
6
|
+
# and recreated between test runs. Don't rely on the data there!
|
7
|
+
|
1
8
|
Rails.application.configure do
|
2
9
|
# Settings specified here will take precedence over those in config/application.rb.
|
3
10
|
|
4
|
-
# The test environment is used exclusively to run your application's
|
5
|
-
# test suite. You never need to work with it otherwise. Remember that
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
8
11
|
config.cache_classes = true
|
9
12
|
|
10
13
|
# Do not eager load code on boot. This avoids loading your whole application
|
@@ -15,18 +18,23 @@ Rails.application.configure do
|
|
15
18
|
# Configure public file server for tests with Cache-Control for performance.
|
16
19
|
config.public_file_server.enabled = true
|
17
20
|
config.public_file_server.headers = {
|
18
|
-
|
21
|
+
"Cache-Control" => "public, max-age=#{1.hour.to_i}"
|
19
22
|
}
|
20
23
|
|
21
24
|
# Show full error reports and disable caching.
|
22
|
-
config.consider_all_requests_local
|
25
|
+
config.consider_all_requests_local = true
|
23
26
|
config.action_controller.perform_caching = false
|
27
|
+
config.cache_store = :null_store
|
24
28
|
|
25
29
|
# Raise exceptions instead of rendering exception templates.
|
26
30
|
config.action_dispatch.show_exceptions = false
|
27
31
|
|
28
32
|
# Disable request forgery protection in test environment.
|
29
33
|
config.action_controller.allow_forgery_protection = false
|
34
|
+
|
35
|
+
# Store uploaded files on the local file system in a temporary directory.
|
36
|
+
config.active_storage.service = :test
|
37
|
+
|
30
38
|
config.action_mailer.perform_caching = false
|
31
39
|
|
32
40
|
# Tell Action Mailer not to deliver emails to the real world.
|
@@ -37,6 +45,15 @@ Rails.application.configure do
|
|
37
45
|
# Print deprecation notices to the stderr.
|
38
46
|
config.active_support.deprecation = :stderr
|
39
47
|
|
40
|
-
#
|
41
|
-
|
48
|
+
# Raise exceptions for disallowed deprecations.
|
49
|
+
config.active_support.disallowed_deprecation = :raise
|
50
|
+
|
51
|
+
# Tell Active Support which deprecation messages to disallow.
|
52
|
+
config.active_support.disallowed_deprecation_warnings = []
|
53
|
+
|
54
|
+
# Raises error for missing translations.
|
55
|
+
# config.i18n.raise_on_missing_translations = true
|
56
|
+
|
57
|
+
# Annotate rendered view with file names.
|
58
|
+
# config.action_view.annotate_rendered_view_with_filenames = true
|
42
59
|
end
|
@@ -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
|
@@ -1,7 +1,8 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
3
|
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
-
# Rails.backtrace_cleaner.add_silencer { |line|
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| /my_noisy_library/.match?(line) }
|
5
5
|
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code
|
7
|
-
#
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code
|
7
|
+
# by setting BACKTRACE=1 before calling your invocation, like "BACKTRACE=1 ./bin/rails runner 'MyClass.perform'".
|
8
|
+
Rails.backtrace_cleaner.remove_silencers! if ENV["BACKTRACE"]
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Define an application-wide content security policy
|
4
|
+
# For further information see the following documentation
|
5
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
6
|
+
|
7
|
+
# Rails.application.config.content_security_policy do |policy|
|
8
|
+
# policy.default_src :self, :https
|
9
|
+
# policy.font_src :self, :https, :data
|
10
|
+
# policy.img_src :self, :https, :data
|
11
|
+
# policy.object_src :none
|
12
|
+
# policy.script_src :self, :https
|
13
|
+
# policy.style_src :self, :https
|
14
|
+
# # If you are using webpack-dev-server then specify webpack-dev-server host
|
15
|
+
# policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?
|
16
|
+
|
17
|
+
# # Specify URI for violation reports
|
18
|
+
# # policy.report_uri "/csp-violation-report-endpoint"
|
19
|
+
# end
|
20
|
+
|
21
|
+
# If you are using UJS then enable automatic nonce generation
|
22
|
+
# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
|
23
|
+
|
24
|
+
# Set the nonce only to specific directives
|
25
|
+
# Rails.application.config.content_security_policy_nonce_directives = %w(script-src)
|
26
|
+
|
27
|
+
# Report CSP violations to a specified URI
|
28
|
+
# For further information see the following documentation:
|
29
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
|
30
|
+
# Rails.application.config.content_security_policy_report_only = true
|
@@ -1,4 +1,6 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
3
|
# Configure sensitive parameters which will be filtered from the log file.
|
4
|
-
Rails.application.config.filter_parameters += [
|
4
|
+
Rails.application.config.filter_parameters += [
|
5
|
+
:password, :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
|
6
|
+
]
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains migration options to ease your Rails 6.1 upgrade.
|
4
|
+
#
|
5
|
+
# Once upgraded flip defaults one by one to migrate to the new default.
|
6
|
+
#
|
7
|
+
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
8
|
+
|
9
|
+
# Support for inversing belongs_to -> has_many Active Record associations.
|
10
|
+
# Rails.application.config.active_record.has_many_inversing = true
|
11
|
+
|
12
|
+
# Track Active Storage variants in the database.
|
13
|
+
# Rails.application.config.active_storage.track_variants = true
|
14
|
+
|
15
|
+
# Apply random variation to the delay when retrying failed jobs.
|
16
|
+
# Rails.application.config.active_job.retry_jitter = 0.15
|
17
|
+
|
18
|
+
# Stop executing `after_enqueue`/`after_perform` callbacks if
|
19
|
+
# `before_enqueue`/`before_perform` respectively halts with `throw :abort`.
|
20
|
+
# Rails.application.config.active_job.skip_after_callbacks_if_terminated = true
|
21
|
+
|
22
|
+
# Specify cookies SameSite protection level: either :none, :lax, or :strict.
|
23
|
+
#
|
24
|
+
# This change is not backwards compatible with earlier Rails versions.
|
25
|
+
# It's best enabled when your entire app is migrated and stable on 6.1.
|
26
|
+
# Rails.application.config.action_dispatch.cookies_same_site_protection = :lax
|
27
|
+
|
28
|
+
# Generate CSRF tokens that are encoded in URL-safe Base64.
|
29
|
+
#
|
30
|
+
# This change is not backwards compatible with earlier Rails versions.
|
31
|
+
# It's best enabled when your entire app is migrated and stable on 6.1.
|
32
|
+
# Rails.application.config.action_controller.urlsafe_csrf_tokens = true
|
33
|
+
|
34
|
+
# Specify whether `ActiveSupport::TimeZone.utc_to_local` returns a time with an
|
35
|
+
# UTC offset or a UTC time.
|
36
|
+
# ActiveSupport.utc_to_local_returns_utc_offset_times = true
|
37
|
+
|
38
|
+
# Change the default HTTP status code to `308` when redirecting non-GET/HEAD
|
39
|
+
# requests to HTTPS in `ActionDispatch::SSL` middleware.
|
40
|
+
# Rails.application.config.action_dispatch.ssl_default_redirect_status = 308
|
41
|
+
|
42
|
+
# Use new connection handling API. For most applications this won't have any
|
43
|
+
# effect. For applications using multiple databases, this new API provides
|
44
|
+
# support for granular connection swapping.
|
45
|
+
# Rails.application.config.active_record.legacy_connection_handling = false
|
46
|
+
|
47
|
+
# Make `form_with` generate non-remote forms by default.
|
48
|
+
# Rails.application.config.action_view.form_with_generates_remote_forms = false
|
49
|
+
|
50
|
+
# Set the default queue name for the analysis job to the queue adapter default.
|
51
|
+
# Rails.application.config.active_storage.queues.analysis = nil
|
52
|
+
|
53
|
+
# Set the default queue name for the purge job to the queue adapter default.
|
54
|
+
# Rails.application.config.active_storage.queues.purge = nil
|
55
|
+
|
56
|
+
# Set the default queue name for the incineration job to the queue adapter default.
|
57
|
+
# Rails.application.config.action_mailbox.queues.incineration = nil
|
58
|
+
|
59
|
+
# Set the default queue name for the routing job to the queue adapter default.
|
60
|
+
# Rails.application.config.action_mailbox.queues.routing = nil
|
61
|
+
|
62
|
+
# Set the default queue name for the mail deliver job to the queue adapter default.
|
63
|
+
# Rails.application.config.action_mailer.deliver_later_queue_name = nil
|
64
|
+
|
65
|
+
# Generate a `Link` header that gives a hint to modern browsers about
|
66
|
+
# preloading assets when using `javascript_include_tag` and `stylesheet_link_tag`.
|
67
|
+
# Rails.application.config.action_view.preload_links_header = true
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Define an application-wide HTTP permissions policy. For further
|
2
|
+
# information see https://developers.google.com/web/updates/2018/06/feature-policy
|
3
|
+
#
|
4
|
+
# Rails.application.config.permissions_policy do |f|
|
5
|
+
# f.camera :none
|
6
|
+
# f.gyroscope :none
|
7
|
+
# f.microphone :none
|
8
|
+
# f.usb :none
|
9
|
+
# f.fullscreen :self
|
10
|
+
# f.payment :self, "https://secure.example.com"
|
11
|
+
# end
|
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
@@ -0,0 +1,34 @@
|
|
1
|
+
test:
|
2
|
+
service: Disk
|
3
|
+
root: <%= Rails.root.join("tmp/storage") %>
|
4
|
+
|
5
|
+
local:
|
6
|
+
service: Disk
|
7
|
+
root: <%= Rails.root.join("storage") %>
|
8
|
+
|
9
|
+
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
|
10
|
+
# amazon:
|
11
|
+
# service: S3
|
12
|
+
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
|
13
|
+
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
|
14
|
+
# region: us-east-1
|
15
|
+
# bucket: your_own_bucket
|
16
|
+
|
17
|
+
# Remember not to checkin your GCS keyfile to a repository
|
18
|
+
# google:
|
19
|
+
# service: GCS
|
20
|
+
# project: your_project
|
21
|
+
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
|
22
|
+
# bucket: your_own_bucket
|
23
|
+
|
24
|
+
# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
|
25
|
+
# microsoft:
|
26
|
+
# service: AzureStorage
|
27
|
+
# storage_account_name: your_account_name
|
28
|
+
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
|
29
|
+
# container: your_container_name
|
30
|
+
|
31
|
+
# mirror:
|
32
|
+
# service: Mirror
|
33
|
+
# primary: local
|
34
|
+
# mirrors: [ amazon, google, microsoft ]
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,6 @@
|
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
13
|
ActiveRecord::Schema.define(version: 2020_10_05_164116) do
|
14
|
-
|
15
14
|
# These are extensions that must be enabled in order to support this database
|
16
15
|
enable_extension "plpgsql"
|
17
16
|
enable_extension "uuid-ossp"
|
@@ -36,5 +35,4 @@ ActiveRecord::Schema.define(version: 2020_10_05_164116) do
|
|
36
35
|
t.datetime "updated_at", null: false
|
37
36
|
t.index ["event_type"], name: "index_nulogy_mb_producer_subscriptions_on_event_type"
|
38
37
|
end
|
39
|
-
|
40
38
|
end
|
@@ -2279,3 +2279,320 @@ Migrating to CreateActiveStorageTables (20201005164116)
|
|
2279
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
2280
|
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2281
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
|
2554
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
2555
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
2556
|
+
[1m[35m (4.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2557
|
+
[1m[35m (2.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2558
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2559
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2560
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2561
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2562
|
+
[1m[35mSQL (3.1ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2563
|
+
[1m[35mSQL (1.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2564
|
+
[1m[35m (11.4ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2565
|
+
[1m[35m (22.1ms)[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
|
2566
|
+
[1m[35m (3.1ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2567
|
+
[1m[35m (3.3ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2568
|
+
[1m[35m (5.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
|
2569
|
+
[1m[35m (3.0ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2570
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2571
|
+
[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]]
|
2572
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2573
|
+
[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", "schema_sha1"], ["LIMIT", 1]]
|
2574
|
+
[1m[36mTRANSACTION (1.6ms)[0m [1m[35mBEGIN[0m
|
2575
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "schema_sha1"], ["value", "2d5bee88577a387c3beb2618b50260b1d5b2a437"], ["created_at", "2021-04-20 19:55:36.994839"], ["updated_at", "2021-04-20 19:55:36.994839"]]
|
2576
|
+
[1m[36mTRANSACTION (1.8ms)[0m [1m[35mCOMMIT[0m
|
2577
|
+
[1m[35mSQL (2.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2578
|
+
[1m[35mSQL (1.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2579
|
+
[1m[35m (11.1ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2580
|
+
[1m[35m (18.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
|
2581
|
+
[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
|
2582
|
+
[1m[35m (3.6ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2583
|
+
[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
|
2584
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2585
|
+
[1m[35m (2.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2586
|
+
[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]]
|
2587
|
+
[1m[36mTRANSACTION (1.2ms)[0m [1m[35mBEGIN[0m
|
2588
|
+
[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", "development"], ["updated_at", "2021-04-20 19:55:37.116933"], ["key", "environment"]]
|
2589
|
+
[1m[36mTRANSACTION (1.7ms)[0m [1m[35mCOMMIT[0m
|
2590
|
+
[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]]
|
2591
|
+
[1m[36mTRANSACTION (1.0ms)[0m [1m[35mBEGIN[0m
|
2592
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.4ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2021-04-20 19:55:37.129052"], ["key", "environment"]]
|
2593
|
+
[1m[36mTRANSACTION (1.8ms)[0m [1m[35mCOMMIT[0m
|
2594
|
+
[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", "schema_sha1"], ["LIMIT", 1]]
|
2595
|
+
[1m[36mTRANSACTION (1.2ms)[0m [1m[35mBEGIN[0m
|
2596
|
+
[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", "schema_sha1"], ["value", "2d5bee88577a387c3beb2618b50260b1d5b2a437"], ["created_at", "2021-04-20 19:55:37.139478"], ["updated_at", "2021-04-20 19:55:37.139478"]]
|
2597
|
+
[1m[36mTRANSACTION (1.6ms)[0m [1m[35mCOMMIT[0m
|
2598
|
+
[1m[35m (3.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|