zuora_connect 1.7.67 → 1.7.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11ee07af5083ddbc125e9f5b8adbec906bbf92eb
|
4
|
+
data.tar.gz: 91b6a1a9c48a198b9f3ee317649a7762e5a235be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 032aba96cd8542758941c9459d8f5fc5f6a174dd1499118fa3dc011327d68fd62b0a5ce30b397ec700f3f4284072d639b5852087fcf058627cd9033ba54d9d68
|
7
|
+
data.tar.gz: 55249966a8aeb707ac725a19344fcfbda33de02ea06110d1ab9869459c631a57a7a23ba9c818ebafb8775c2c1805a570afdfde8ce18c9dd22ae9e719380ac4b0
|
@@ -156,7 +156,13 @@ module ZuoraConnect
|
|
156
156
|
Rails.logger.debug("Invalid Locale: #{ex.message}")
|
157
157
|
end
|
158
158
|
Time.zone = self.timezone
|
159
|
-
|
159
|
+
tenants = self.task_data.dig('tenant_ids') || []
|
160
|
+
organizations = self.task_data.dig('organizations') || []
|
161
|
+
if defined?(ElasticAPM)
|
162
|
+
ElasticAPM.set_tag(:tenant_id, tenants.first)
|
163
|
+
ElasticAPM.set_tag(:organization, organizations.first)
|
164
|
+
end
|
165
|
+
self.logitem(item: {tenant_ids: tenants, organization: organizations})
|
160
166
|
self.update_column(:name, self.task_data.dig('name')) if ZuoraConnect::AppInstance.column_names.include?('name') && self.task_data.dig('name') != self.name
|
161
167
|
end
|
162
168
|
|
@@ -8,6 +8,8 @@ module ZuoraConnect
|
|
8
8
|
#Skip session for api requests
|
9
9
|
Thread.current[:appinstance] = nil
|
10
10
|
request.session_options[:skip] = true
|
11
|
+
ElasticAPM.set_tag(:trace_id, request.uuid) if defined?(ElasticAPM)
|
12
|
+
|
11
13
|
start_time = Time.now
|
12
14
|
if request.headers["API-Token"].present?
|
13
15
|
@appinstance = ZuoraConnect::AppInstance.where(:api_token => request.headers["API-Token"]).first
|
@@ -70,6 +72,7 @@ module ZuoraConnect
|
|
70
72
|
end
|
71
73
|
|
72
74
|
def authenticate_connect_app_request
|
75
|
+
ElasticAPM.set_tag(:trace_id, request.uuid) if defined?(ElasticAPM)
|
73
76
|
Thread.current[:appinstance] = nil
|
74
77
|
if params[:app_instance_ids].present? && !params[:app_instance_id].present?
|
75
78
|
begin
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zuora_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.68
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|
@@ -372,43 +372,43 @@ specification_version: 4
|
|
372
372
|
summary: Summary of Connect.
|
373
373
|
test_files:
|
374
374
|
- test/test_helper.rb
|
375
|
+
- test/fixtures/zuora_connect/app_instances.yml
|
376
|
+
- test/controllers/zuora_connect/api/v1/app_instance_controller_test.rb
|
375
377
|
- test/models/zuora_connect/app_instance_test.rb
|
376
378
|
- test/zuora_connect_test.rb
|
377
|
-
- test/integration/navigation_test.rb
|
378
379
|
- test/lib/generators/zuora_connect/datatable_generator_test.rb
|
379
|
-
- test/
|
380
|
-
- test/dummy/
|
380
|
+
- test/integration/navigation_test.rb
|
381
|
+
- test/dummy/README.rdoc
|
382
|
+
- test/dummy/bin/bundle
|
381
383
|
- test/dummy/bin/rails
|
382
384
|
- test/dummy/bin/rake
|
383
|
-
- test/dummy/bin/
|
384
|
-
- test/dummy/
|
385
|
+
- test/dummy/bin/setup
|
386
|
+
- test/dummy/app/helpers/application_helper.rb
|
387
|
+
- test/dummy/app/views/layouts/application.html.erb
|
388
|
+
- test/dummy/app/assets/stylesheets/application.css
|
389
|
+
- test/dummy/app/assets/javascripts/application.js
|
390
|
+
- test/dummy/app/controllers/application_controller.rb
|
391
|
+
- test/dummy/public/favicon.ico
|
385
392
|
- test/dummy/public/422.html
|
393
|
+
- test/dummy/public/500.html
|
386
394
|
- test/dummy/public/404.html
|
387
|
-
- test/dummy/public/favicon.ico
|
388
|
-
- test/dummy/config/environment.rb
|
389
|
-
- test/dummy/config/application.rb
|
390
|
-
- test/dummy/config/routes.rb
|
391
|
-
- test/dummy/config/environments/development.rb
|
392
|
-
- test/dummy/config/environments/test.rb
|
393
|
-
- test/dummy/config/environments/production.rb
|
394
|
-
- test/dummy/config/database.yml
|
395
395
|
- test/dummy/config/locales/en.yml
|
396
|
-
- test/dummy/config/boot.rb
|
397
396
|
- test/dummy/config/secrets.yml
|
398
|
-
- test/dummy/config/
|
399
|
-
- test/dummy/config/
|
397
|
+
- test/dummy/config/routes.rb
|
398
|
+
- test/dummy/config/environment.rb
|
400
399
|
- test/dummy/config/initializers/cookies_serializer.rb
|
400
|
+
- test/dummy/config/initializers/session_store.rb
|
401
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
401
402
|
- test/dummy/config/initializers/inflections.rb
|
402
|
-
- test/dummy/config/initializers/
|
403
|
+
- test/dummy/config/initializers/mime_types.rb
|
403
404
|
- test/dummy/config/initializers/assets.rb
|
404
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
405
405
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
406
|
-
- test/dummy/
|
406
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
407
|
+
- test/dummy/config/boot.rb
|
408
|
+
- test/dummy/config/database.yml
|
409
|
+
- test/dummy/config/environments/development.rb
|
410
|
+
- test/dummy/config/environments/production.rb
|
411
|
+
- test/dummy/config/environments/test.rb
|
412
|
+
- test/dummy/config/application.rb
|
407
413
|
- test/dummy/config.ru
|
408
414
|
- test/dummy/Rakefile
|
409
|
-
- test/dummy/app/views/layouts/application.html.erb
|
410
|
-
- test/dummy/app/helpers/application_helper.rb
|
411
|
-
- test/dummy/app/assets/stylesheets/application.css
|
412
|
-
- test/dummy/app/assets/javascripts/application.js
|
413
|
-
- test/dummy/app/controllers/application_controller.rb
|
414
|
-
- test/controllers/zuora_connect/api/v1/app_instance_controller_test.rb
|