zuora_connect 3.0.2.pre.l → 3.0.2.pre.o

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39316ba478576ec6b9a8686b172a335ee14e91780af31761330599f1010df069
4
- data.tar.gz: 8612977375f206da41b17f9f5ca732791cc0e84076613af28a17f1f1ada9a02f
3
+ metadata.gz: 2bd25da8b7bef180f1db3409d96382e2cab6dd22c8aa2d4d26d11c530dee0b28
4
+ data.tar.gz: a82218e2fce83bf45891ef2b0e0ec0ca7afc6370cf472abaf31197ecd2c35538
5
5
  SHA512:
6
- metadata.gz: c53a4986aa08336e6ce4be91b7dd329bf84c6b4eda1aa6b3e2f8c8573cb4a5fc5c205f1d0f3b1d4a3abf2dfe09dad8c02e4ed2a93c5f6b653ac80b81a3e48f86
7
- data.tar.gz: 70094dc8bae6ceaa40a7d1a8e49476d3e80127d9416a224c55e242983d0539d7b76384cf45ad2cf5bf2df631aab40c1a8f20ef3fd377811b3f0bad5edfaa54aa
6
+ metadata.gz: 89bcf569348d946537bf2e1818bfef73fc72397d12e7100e5b6f99edcab64f617d800927daca5a1c3d1734ae6a6a9ee932a329c1f648193eaa79fbfa7ec92b79
7
+ data.tar.gz: d015ddfba7e40c746efcc1d1100195a89e8c2394b26d38bf70144e5080e5fbc46c01051bf0efa9539a42844e25f63f4f822e6c97b689c6866829b4af50583c34
@@ -27,7 +27,7 @@ module ZuoraConnect
27
27
  CATALOG_LOOKUP_CACHE_RESULT_KEY = 'CatalogCache'
28
28
  TIMEZONE_LOG_RATE_LIMIT_KEY = 'TimezoneLoggedAt'
29
29
  TIMEZONE_LOG_PERIOD = 4.hours
30
- IGNORED_LOCALS = ['fr', 'ja', 'es', 'zh', 'de']
30
+ IGNORED_LOCALS = ['fr', 'ja', 'es', 'zh', 'de', 'it', 'sv']
31
31
  INTERNAL_HOSTS = []
32
32
  LOGIN_TENANT_DESTINATION = 'target_login'
33
33
  AWS_AUTH_ERRORS = [
@@ -18,7 +18,7 @@ BEGIN
18
18
 
19
19
  FOR schema IN EXECUTE
20
20
  format(
21
- 'SELECT schema_name FROM information_schema.schemata WHERE schema_name ~ ''^[0-9]+$'''
21
+ 'SELECT nspname FROM pg_catalog.pg_namespace where nspname ~ ''^[0-9]+$'''
22
22
  )
23
23
  LOOP
24
24
  IF NOT created THEN
@@ -26,7 +26,7 @@ BEGIN
26
26
  EXECUTE format(
27
27
  'CREATE TABLE "public".%I (LIKE %I.%I)',
28
28
  aggregate_table_name,
29
- schema.schema_name, table_name
29
+ schema.nspname, table_name
30
30
  );
31
31
  -- Add a special `schema_name` column, which we'll populate with the name of the schema
32
32
  -- each row originated from
@@ -68,17 +68,17 @@ BEGIN
68
68
  -- and insert them into our new aggregate table
69
69
  EXECUTE format(
70
70
  'SELECT string_agg(column_name, '','') from information_schema.columns where table_name = ''%s'' AND table_schema = ''%s''',
71
- table_name, schema.schema_name
71
+ table_name, schema.nspname
72
72
  ) into fields_order;
73
73
 
74
- raise notice 'Importing Schema %', schema.schema_name;
74
+ raise notice 'Importing Schema %', schema.nspname;
75
75
 
76
76
  EXECUTE format(
77
77
  'INSERT INTO "public".%I (schema_name, %s) (SELECT ''%s'' AS schema_name, * FROM %I.%I %s )',
78
78
  aggregate_table_name,
79
79
  fields_order,
80
- schema.schema_name,
81
- schema.schema_name, table_name,
80
+ schema.nspname,
81
+ schema.nspname, table_name,
82
82
  filter
83
83
  );
84
84
  END LOOP;
@@ -462,7 +462,7 @@ module ZuoraConnect
462
462
  appinstances = ZuoraConnect::AppInstance.where("zuora_entity_ids ?& array[:entities] = true AND zuora_domain = :host", entities: [zuora_entity_id], host: zuora_client.rest_domain).pluck(:id, :name)
463
463
 
464
464
  if appinstances.size > 0
465
- redirect_to "https://#{zuora_host}/apps/newlogin.do?retURL=#{request.fullpath}"
465
+ redirect_to "https://#{zuora_host}/apps/newlogin.do?retURL=#{request.fullpath}&pos=0"
466
466
  return
467
467
  end
468
468
  end
@@ -556,7 +556,7 @@ module ZuoraConnect
556
556
  else
557
557
  ZuoraConnect.logger.info("UI Authorization Error", ex, response: { params: final_error })
558
558
  end
559
- redirect_to "https://#{zuora_host}/apps/newlogin.do?retURL=#{request.fullpath}"
559
+ redirect_to "https://#{zuora_host}/apps/newlogin.do?retURL=#{request.fullpath}&pos=1"
560
560
  return
561
561
 
562
562
  rescue ZuoraAPI::Exceptions::ZuoraAPIError, Exception => ex
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZuoraConnect
4
- VERSION = "3.0.2-l"
4
+ VERSION = "3.0.2-o"
5
5
  end
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: 3.0.2.pre.l
4
+ version: 3.0.2.pre.o
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-15 00:00:00.000000000 Z
11
+ date: 2022-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment
@@ -445,7 +445,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
445
445
  - !ruby/object:Gem::Version
446
446
  version: 1.3.1
447
447
  requirements: []
448
- rubygems_version: 3.2.22
448
+ rubygems_version: 3.2.32
449
449
  signing_key:
450
450
  specification_version: 4
451
451
  summary: Summary of Connect.