gooddata 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (285) hide show
  1. checksums.yaml +4 -4
  2. data/.document +0 -0
  3. data/.flayignore +2 -0
  4. data/.travis.yml +24 -7
  5. data/.yardopts +0 -0
  6. data/CHANGELOG.md +125 -1
  7. data/CLI.md +0 -0
  8. data/Dockerfile.jruby +7 -2
  9. data/Dockerfile.ruby +1 -1
  10. data/Gemfile +0 -0
  11. data/Guardfile +0 -0
  12. data/Rakefile +23 -9
  13. data/TODO.md +0 -0
  14. data/bin/gitflow-init.sh +8 -0
  15. data/ci.rake +3 -3
  16. data/data/2008.crt +39 -0
  17. data/data/new_ca.cer +22 -0
  18. data/dependency_decisions.yml +0 -0
  19. data/docker-compose.lcm.yml +31 -0
  20. data/docker-compose.yml +4 -2
  21. data/gooddata.gemspec +3 -3
  22. data/lcm.rake +288 -0
  23. data/lib/gooddata.rb +1 -0
  24. data/lib/gooddata/bricks/base_downloader.rb +1 -1
  25. data/lib/gooddata/bricks/brick.rb +0 -1
  26. data/lib/gooddata/bricks/middleware/aws_middleware.rb +1 -1
  27. data/lib/gooddata/bricks/middleware/logger_middleware.rb +1 -1
  28. data/lib/gooddata/bricks/pipeline.rb +67 -0
  29. data/lib/gooddata/bricks/provisioning_brick.rb +18 -0
  30. data/lib/gooddata/bricks/release_brick.rb +18 -0
  31. data/lib/gooddata/bricks/rollout_brick.rb +14 -0
  32. data/lib/gooddata/bricks/user_filters_brick.rb +13 -0
  33. data/lib/gooddata/bricks/users_brick.rb +13 -0
  34. data/lib/gooddata/core/logging.rb +1 -1
  35. data/lib/gooddata/exceptions/maql_execution.rb +1 -1
  36. data/lib/gooddata/extensions/string.rb +0 -0
  37. data/lib/gooddata/lcm/actions/associate_clients.rb +34 -8
  38. data/lib/gooddata/lcm/actions/collect_data_product.rb +8 -1
  39. data/lib/gooddata/lcm/actions/collect_segment_clients.rb +13 -23
  40. data/lib/gooddata/lcm/actions/collect_segments.rb +10 -0
  41. data/lib/gooddata/lcm/actions/synchronize_clients.rb +3 -1
  42. data/lib/gooddata/lcm/actions/synchronize_ldm.rb +61 -34
  43. data/lib/gooddata/lcm/actions/synchronize_user_filters.rb +6 -4
  44. data/lib/gooddata/lcm/actions/update_release_table.rb +4 -12
  45. data/lib/gooddata/lcm/dsl/params_dsl.rb +0 -4
  46. data/lib/gooddata/lcm/dsl/type_dsl.rb +0 -4
  47. data/lib/gooddata/lcm/helpers/check_helper.rb +1 -1
  48. data/lib/gooddata/lcm/lcm2.rb +0 -2
  49. data/lib/gooddata/lcm/types/special/enum.rb +6 -0
  50. data/lib/gooddata/lcm/types/special/enum/synchronize_ldm.rb +20 -0
  51. data/lib/gooddata/lcm/types/special/types.rb +1 -1
  52. data/lib/gooddata/mixins/is_folder.rb +0 -0
  53. data/lib/gooddata/mixins/to_json.rb +0 -0
  54. data/lib/gooddata/mixins/uri_getter.rb +0 -0
  55. data/lib/gooddata/models/project_creator.rb +38 -30
  56. data/lib/gooddata/models/user_filters/user_filter_builder.rb +1 -0
  57. data/lib/gooddata/rest/README.md +0 -0
  58. data/lib/gooddata/version.rb +1 -1
  59. data/lib/templates/bricks/brick.rb.erb +0 -0
  60. data/lib/templates/bricks/main.rb.erb +0 -0
  61. data/lib/templates/project/Goodfile.erb +0 -0
  62. data/lib/templates/project/data/commits.csv +0 -0
  63. data/lib/templates/project/data/devs.csv +0 -0
  64. data/lib/templates/project/data/repos.csv +0 -0
  65. data/lib/templates/project/model/model.rb.erb +0 -0
  66. metadata +21 -451
  67. data/lib/gooddata/lcm/actions/ensure_data_product.rb +0 -63
  68. data/spec/.rubocop.yml +0 -16
  69. data/spec/bricks/bricks_spec.rb +0 -110
  70. data/spec/bricks/default-config.json +0 -8
  71. data/spec/data/.gooddata +0 -4
  72. data/spec/data/blueprints/additional_dataset_module.json +0 -32
  73. data/spec/data/blueprints/attribute_sort_order_blueprint.json +0 -72
  74. data/spec/data/blueprints/big_blueprint_not_pruned.json +0 -2079
  75. data/spec/data/blueprints/invalid_blueprint.json +0 -103
  76. data/spec/data/blueprints/m_n_model.json +0 -104
  77. data/spec/data/blueprints/model_module.json +0 -25
  78. data/spec/data/blueprints/test_blueprint.json +0 -39
  79. data/spec/data/blueprints/test_project_model_spec.json +0 -106
  80. data/spec/data/cc/data/source/commits.csv +0 -4
  81. data/spec/data/cc/data/source/devs.csv +0 -4
  82. data/spec/data/cc/data/source/repos.csv +0 -3
  83. data/spec/data/cc/devel.prm +0 -0
  84. data/spec/data/cc/graph/graph.grf +0 -11
  85. data/spec/data/cc/workspace.prm +0 -19
  86. data/spec/data/column_based_permissions.csv +0 -7
  87. data/spec/data/column_based_permissions2.csv +0 -6
  88. data/spec/data/dynamic_schedule_params_table.csv +0 -7
  89. data/spec/data/gd_gse_data_blueprint.json +0 -1371
  90. data/spec/data/gd_gse_data_manifest.json +0 -1424
  91. data/spec/data/gd_gse_data_model.json +0 -1772
  92. data/spec/data/gooddata_version_process/gooddata_version.rb +0 -9
  93. data/spec/data/gooddata_version_process/gooddata_version.zip +0 -0
  94. data/spec/data/hello_world_process/hello_world.rb +0 -9
  95. data/spec/data/hello_world_process/hello_world.zip +0 -0
  96. data/spec/data/integration_model.json +0 -252
  97. data/spec/data/integration_policies.csv +0 -9134
  98. data/spec/data/line_based_permissions.csv +0 -3
  99. data/spec/data/manifests/test_blueprint.json +0 -32
  100. data/spec/data/manifests/test_project.json +0 -107
  101. data/spec/data/reports/left_attr_report.json +0 -108
  102. data/spec/data/reports/metric_only_one_line.json +0 -83
  103. data/spec/data/reports/report_1.json +0 -197
  104. data/spec/data/reports/top_attr_report.json +0 -108
  105. data/spec/data/ruby_params_process/ruby_params.rb +0 -9
  106. data/spec/data/ruby_process/deep_files/deep_stuff.txt +0 -1
  107. data/spec/data/ruby_process/process.rb +0 -8
  108. data/spec/data/ruby_process/stuff.txt +0 -1
  109. data/spec/data/superfluous_titles_view.json +0 -81
  110. data/spec/data/test-ci-data.csv +0 -2
  111. data/spec/data/user_filters.csv +0 -2
  112. data/spec/data/users.csv +0 -12
  113. data/spec/data/wire_models/attribute_sort_by_model.json +0 -73
  114. data/spec/data/wire_models/model_view.json +0 -1775
  115. data/spec/data/wire_models/nu_model.json +0 -3046
  116. data/spec/data/wire_models/test_blueprint.json +0 -66
  117. data/spec/data/wire_test_project.json +0 -150
  118. data/spec/data/workspace_table.csv +0 -3
  119. data/spec/environment/default.rb +0 -43
  120. data/spec/environment/development.rb +0 -32
  121. data/spec/environment/environment.rb +0 -38
  122. data/spec/environment/production.rb +0 -27
  123. data/spec/environment/staging.rb +0 -32
  124. data/spec/environment/testing.rb +0 -32
  125. data/spec/helpers/appstore_project_helper.rb +0 -221
  126. data/spec/helpers/blueprint_helper.rb +0 -27
  127. data/spec/helpers/cli_helper.rb +0 -38
  128. data/spec/helpers/connection_helper.rb +0 -43
  129. data/spec/helpers/constants.rb +0 -32
  130. data/spec/helpers/crypto_helper.rb +0 -19
  131. data/spec/helpers/csv_helper.rb +0 -20
  132. data/spec/helpers/process_helper.rb +0 -35
  133. data/spec/helpers/project_helper.rb +0 -74
  134. data/spec/helpers/schedule_helper.rb +0 -33
  135. data/spec/helpers/spec_helper.rb +0 -17
  136. data/spec/integration/ads_output_stage_spec.rb +0 -45
  137. data/spec/integration/blueprint_updates_spec.rb +0 -107
  138. data/spec/integration/blueprint_with_ca_spec.rb +0 -56
  139. data/spec/integration/blueprint_with_grain_spec.rb +0 -74
  140. data/spec/integration/channel_configuration_spec.rb +0 -67
  141. data/spec/integration/clients_spec.rb +0 -164
  142. data/spec/integration/command_datawarehouse_spec.rb +0 -45
  143. data/spec/integration/command_projects_spec.rb +0 -32
  144. data/spec/integration/commands/command_projects_spec.rb +0 -22
  145. data/spec/integration/connection_spec.rb +0 -37
  146. data/spec/integration/core/connection_spec.rb +0 -56
  147. data/spec/integration/core/logging_spec.rb +0 -132
  148. data/spec/integration/core/project_spec.rb +0 -54
  149. data/spec/integration/create_from_template_spec.rb +0 -29
  150. data/spec/integration/create_project_spec.rb +0 -27
  151. data/spec/integration/date_dim_switch_spec.rb +0 -154
  152. data/spec/integration/deprecated_load_spec.rb +0 -60
  153. data/spec/integration/full_process_schedule_spec.rb +0 -367
  154. data/spec/integration/full_project_spec.rb +0 -592
  155. data/spec/integration/helpers_spec.rb +0 -16
  156. data/spec/integration/lcm_spec.rb +0 -54
  157. data/spec/integration/mandatory_user_filter_spec.rb +0 -53
  158. data/spec/integration/mixins/id_to_uri_spec.rb +0 -56
  159. data/spec/integration/models/data_product_spec.rb +0 -71
  160. data/spec/integration/models/domain_spec.rb +0 -162
  161. data/spec/integration/models/invitation_spec.rb +0 -17
  162. data/spec/integration/models/label_spec.rb +0 -49
  163. data/spec/integration/models/membership_spec.rb +0 -127
  164. data/spec/integration/models/metadata/report_spec.rb +0 -54
  165. data/spec/integration/models/metric_spec.rb +0 -24
  166. data/spec/integration/models/params_spec.rb +0 -118
  167. data/spec/integration/models/process_spec.rb +0 -35
  168. data/spec/integration/models/profile_spec.rb +0 -210
  169. data/spec/integration/models/project_role_spec.rb +0 -94
  170. data/spec/integration/models/project_spec.rb +0 -225
  171. data/spec/integration/models/schedule_spec.rb +0 -477
  172. data/spec/integration/models/unit_project_spec.rb +0 -130
  173. data/spec/integration/over_to_user_filters_spec.rb +0 -98
  174. data/spec/integration/partial_md_export_import_spec.rb +0 -41
  175. data/spec/integration/project_spec.rb +0 -381
  176. data/spec/integration/rest_spec.rb +0 -214
  177. data/spec/integration/schedule_spec.rb +0 -611
  178. data/spec/integration/segments_spec.rb +0 -100
  179. data/spec/integration/subscription_spec.rb +0 -88
  180. data/spec/integration/urn_date_dim_spec.rb +0 -53
  181. data/spec/integration/user_filters_spec.rb +0 -310
  182. data/spec/integration/user_group_spec.rb +0 -147
  183. data/spec/integration/variables_spec.rb +0 -189
  184. data/spec/integration/vcr_cassettes/GoodData_-_logging/_logger/can_assign_a_custom_logger.yml +0 -2287
  185. data/spec/integration/vcr_cassettes/GoodData_-_logging/_logger/client_logs_when_given_custom_message.yml +0 -2287
  186. data/spec/integration/vcr_cassettes/GoodData_-_logging/_logger/has_the_request_id_logged_when_I_passed_it.yml +0 -2287
  187. data/spec/integration/vcr_cassettes/GoodData_-_logging/_logging_off/Disables_logging.yml +0 -2287
  188. data/spec/integration/vcr_cassettes/GoodData_-_logging/_logging_on/Enables_logging.yml +0 -2287
  189. data/spec/integration/vcr_cassettes/GoodData_-_project/_project/Returns_project_assigned.yml +0 -354
  190. data/spec/integration/vcr_cassettes/GoodData_-_project/_project_/Assigns_nil.yml +0 -299
  191. data/spec/integration/vcr_cassettes/GoodData_-_project/_project_/Assigns_project_directly.yml +0 -354
  192. data/spec/integration/vcr_cassettes/GoodData_-_project/_project_/Assigns_project_using_project_ID.yml +0 -354
  193. data/spec/integration/vcr_cassettes/GoodData_-_project/_project_/Assigns_project_using_project_URL.yml +0 -354
  194. data/spec/integration/vcr_cassettes/GoodData_-_project/_with_project/Uses_project_specified.yml +0 -354
  195. data/spec/integration/vcr_cassettes/GoodData_Metric/all.yml +0 -2065
  196. data/spec/integration/vcr_cassettes/GoodData_Metric/should_be_able_to_update_folders.yml +0 -119
  197. data/spec/integration/vcr_cassettes/GoodData_Mixin_MdIdToUri/all.yml +0 -9812
  198. data/spec/integration/vcr_cassettes/GoodData_Mixin_MdIdToUri/should_get_json_containing_correct_id.yml +0 -174
  199. data/spec/integration/vcr_cassettes/GoodData_Mixin_MdIdToUri/should_return_nil_for_unknown_id.yml +0 -58
  200. data/spec/integration/vcr_cassettes/GoodData_Mixin_MdIdToUri/should_throw_BadRequest_for_-1.yml +0 -63
  201. data/spec/integration/vcr_cassettes/GoodData_Rest_Connection/_connect/Connects_using_username_and_password.yml +0 -299
  202. data/spec/integration/vcr_cassettes/GoodData_Rest_Connection/_disconnect/Connects_using_username_and_password.yml +0 -299
  203. data/spec/integration/vcr_cassettes/GoodData_Rest_Connection/_generate_request_id/Generates_a_non-empty_string.yml +0 -2287
  204. data/spec/integration/vcr_cassettes/GoodData_UserGroup/_/Should_list_user_groups_as_Array.yml +0 -56
  205. data/spec/integration/vcr_cassettes/GoodData_UserGroup/_add_members/Should_add_member.yml +0 -315
  206. data/spec/integration/vcr_cassettes/GoodData_UserGroup/_members/Should_return_members_as_array.yml +0 -54
  207. data/spec/integration/vcr_cassettes/GoodData_UserGroup/_remove_members/Should_remove_existing_members.yml +0 -258
  208. data/spec/integration/vcr_cassettes/GoodData_UserGroup/_save/updates_existing_group.yml +0 -159
  209. data/spec/integration/vcr_cassettes/GoodData_UserGroup/_set_members/Should_set_new_members.yml +0 -158
  210. data/spec/integration/vcr_cassettes/GoodData_UserGroup/all.yml +0 -809
  211. data/spec/logging_in_logging_out_spec.rb +0 -91
  212. data/spec/spec_helper.rb +0 -110
  213. data/spec/unit/actions/associate_clients_spec.rb +0 -48
  214. data/spec/unit/actions/collect_client_projects_spec.rb +0 -47
  215. data/spec/unit/actions/collect_clients_spec.rb +0 -65
  216. data/spec/unit/actions/collect_data_product_spec.rb +0 -58
  217. data/spec/unit/actions/collect_dynamic_schedule_params_spec.rb +0 -56
  218. data/spec/unit/actions/collect_meta_spec.rb +0 -88
  219. data/spec/unit/actions/collect_segment_clients_spec.rb +0 -82
  220. data/spec/unit/actions/collect_tagged_objects_spec.rb +0 -126
  221. data/spec/unit/actions/collect_users_brick_users_spec.rb +0 -36
  222. data/spec/unit/actions/create_segment_masters_spec.rb +0 -65
  223. data/spec/unit/actions/ensure_data_product_spec.rb +0 -39
  224. data/spec/unit/actions/ensure_technical_users_domain_spec.rb +0 -53
  225. data/spec/unit/actions/ensure_technical_users_project_spec.rb +0 -76
  226. data/spec/unit/actions/execute_schedules_spec.rb +0 -94
  227. data/spec/unit/actions/provision_clients_spec.rb +0 -46
  228. data/spec/unit/actions/purge_clients_spec.rb +0 -47
  229. data/spec/unit/actions/rename_existing_client_projects_spec.rb +0 -54
  230. data/spec/unit/actions/segments_filter_spec.rb +0 -46
  231. data/spec/unit/actions/shared_examples_for_user_actions.rb +0 -43
  232. data/spec/unit/actions/synchronize_cas_spec.rb +0 -58
  233. data/spec/unit/actions/synchronize_clients_spec.rb +0 -71
  234. data/spec/unit/actions/synchronize_etls_in_segment_spec.rb +0 -206
  235. data/spec/unit/actions/synchronize_ldm_spec.rb +0 -70
  236. data/spec/unit/actions/synchronize_user_filters_spec.rb +0 -208
  237. data/spec/unit/actions/synchronize_user_groups_spec.rb +0 -49
  238. data/spec/unit/actions/synchronize_users_spec.rb +0 -180
  239. data/spec/unit/bricks/bricks_spec.rb +0 -34
  240. data/spec/unit/bricks/middleware/aws_middelware_spec.rb +0 -98
  241. data/spec/unit/bricks/middleware/bench_middleware_spec.rb +0 -15
  242. data/spec/unit/bricks/middleware/bulk_salesforce_middleware_spec.rb +0 -15
  243. data/spec/unit/bricks/middleware/gooddata_middleware_spec.rb +0 -15
  244. data/spec/unit/bricks/middleware/logger_middleware_spec.rb +0 -30
  245. data/spec/unit/bricks/middleware/restforce_middleware_spec.rb +0 -15
  246. data/spec/unit/bricks/middleware/stdout_middleware_spec.rb +0 -15
  247. data/spec/unit/bricks/middleware/twitter_middleware_spec.rb +0 -15
  248. data/spec/unit/cli/cli_spec.rb +0 -17
  249. data/spec/unit/cli/commands/cmd_auth_spec.rb +0 -17
  250. data/spec/unit/core/nil_logger_spec.rb +0 -13
  251. data/spec/unit/extensions/hash_spec.rb +0 -22
  252. data/spec/unit/godzilla/goodzilla_spec.rb +0 -74
  253. data/spec/unit/helpers/check_helper_production_spec.rb +0 -34
  254. data/spec/unit/helpers/check_helper_spec.rb +0 -134
  255. data/spec/unit/helpers/csv_helper_spec.rb +0 -22
  256. data/spec/unit/helpers/data_helper_spec.rb +0 -67
  257. data/spec/unit/helpers/global_helpers_spec.rb +0 -264
  258. data/spec/unit/helpers_spec.rb +0 -254
  259. data/spec/unit/lcm/lcm2_spec.rb +0 -100
  260. data/spec/unit/lcm/user_bricks_helper_spec.rb +0 -58
  261. data/spec/unit/models/blueprint/attribute_sort_by_spec.rb +0 -20
  262. data/spec/unit/models/blueprint/attributes_spec.rb +0 -28
  263. data/spec/unit/models/blueprint/dataset_spec.rb +0 -120
  264. data/spec/unit/models/blueprint/label_blueprint_field_spec.rb +0 -43
  265. data/spec/unit/models/blueprint/project_blueprint_spec.rb +0 -642
  266. data/spec/unit/models/blueprint/reference_spec.rb +0 -28
  267. data/spec/unit/models/blueprint/schema_builder_spec.rb +0 -36
  268. data/spec/unit/models/blueprint/to_wire_spec.rb +0 -196
  269. data/spec/unit/models/dataset_blueprint.rb +0 -14
  270. data/spec/unit/models/execution_spec.rb +0 -109
  271. data/spec/unit/models/from_wire_spec.rb +0 -321
  272. data/spec/unit/models/metadata_spec.rb +0 -140
  273. data/spec/unit/models/metric_spec.rb +0 -129
  274. data/spec/unit/models/model_spec.rb +0 -87
  275. data/spec/unit/models/project_creator_spec.rb +0 -90
  276. data/spec/unit/models/project_spec.rb +0 -94
  277. data/spec/unit/models/report_result_data_spec.rb +0 -194
  278. data/spec/unit/models/to_manifest_spec.rb +0 -165
  279. data/spec/unit/models/user_filters/user_filter_builder_spec.rb +0 -149
  280. data/spec/unit/models/user_filters_spec.rb +0 -95
  281. data/spec/unit/models/variable_spec.rb +0 -280
  282. data/spec/unit/rest/phmap_spec.rb +0 -117
  283. data/spec/unit/rest/polling_spec.rb +0 -101
  284. data/spec/unit/rest/resource_spec.rb +0 -10
  285. data/spec/vcr_configurer.rb +0 -63
@@ -1,63 +0,0 @@
1
- # encoding: UTF-8
2
- #
3
- # Copyright (c) 2010-2017 GoodData Corporation. All rights reserved.
4
- # This source code is licensed under the BSD-style license found in the
5
- # LICENSE file in the root directory of this source tree.
6
-
7
- require_relative 'base_action'
8
-
9
- module GoodData
10
- module LCM2
11
- class EnsureDataProduct < BaseAction
12
- DESCRIPTION = 'Creates the DataProduct if it does not exist yet'
13
-
14
- PARAMS = define_params(self) do
15
- description 'client to connect to GD'
16
- param :gdc_gd_client, instance_of(Type::GdClientType), required: true
17
-
18
- description 'DataProduct to ensure'
19
- param :data_product, instance_of(Type::StringType), required: false
20
-
21
- description 'Organization Name'
22
- param :organization, instance_of(Type::StringType), required: false
23
-
24
- description 'Domain'
25
- param :domain, instance_of(Type::StringType), required: false
26
-
27
- description 'Logger'
28
- param :gdc_logger, instance_of(Type::GdLogger), required: true
29
- end
30
-
31
- RESULT_HEADER = [
32
- :data_product
33
- ]
34
-
35
- class << self
36
- def call(params)
37
- params = params.to_hash
38
- client = params.gdc_gd_client
39
- domain_name = params.organization || params.domain
40
- fail "Either organisation or domain has to be specified in params" unless domain_name
41
- domain = client.domain(domain_name) || fail("Invalid domain name specified - #{domain_name}")
42
-
43
- if params.key?(:data_product)
44
- begin
45
- data_product = domain.data_products(params.data_product)
46
- rescue RestClient::BadRequest
47
- params.gdc_logger.info "Can not find DataProduct #{params.data_product}, creating it instead"
48
- data_product = domain.create_data_product(id: params.data_product)
49
- end
50
- end
51
-
52
- {
53
- results: [
54
- {
55
- data_product: data_product
56
- }
57
- ]
58
- }
59
- end
60
- end
61
- end
62
- end
63
- end
@@ -1,16 +0,0 @@
1
- inherit_from: ../.rubocop.yml
2
-
3
- Style/GlobalVars:
4
- Enabled: false
5
-
6
- Style/IndentArray:
7
- Enabled: false
8
-
9
- Style/AlignHash:
10
- Enabled: false
11
-
12
- Style/VariableNumber:
13
- Enabled: false
14
-
15
- Metrics/BlockLength:
16
- Enabled: false
@@ -1,110 +0,0 @@
1
- # encoding: UTF-8
2
- #
3
- # Copyright (c) 2010-2017 GoodData Corporation. All rights reserved.
4
- # This source code is licensed under the BSD-style license found in the
5
- # LICENSE file in the root directory of this source tree.
6
-
7
- require 'gooddata/bricks/brick'
8
- require 'gooddata/bricks/bricks'
9
- require 'gooddata/bricks/middleware/base_middleware'
10
-
11
- describe GoodData::Bricks do
12
- it "Has GoodData::Bricks::Brick class" do
13
- GoodData::Bricks::Brick.should_not be(nil)
14
- end
15
-
16
- it "should be possible to use block as an app in pipeline" do
17
- p = GoodData::Bricks::Pipeline.prepare([
18
- lambda do |_params|
19
- puts "x"
20
- end
21
- ])
22
- p.call({})
23
- end
24
-
25
- describe "#load_defaults" do
26
- context "when you define a middleware with default_loaded_call and give it some defaults file with prefix" do
27
- class TestMiddleWare < GoodData::Bricks::Middleware
28
- def initialize(options = {})
29
- @config = 'spec/bricks/default-config.json'
30
- super(options)
31
- end
32
-
33
- def call(params)
34
- params = super(params)
35
- my_stuff = params['config']['my']['namespace']
36
- puts "Now I have the defaults and runtime parameters merged and loaded: #{my_stuff['key']}"
37
-
38
- # Doing something cool and puting it into params
39
- params['something_cool'] = "#{my_stuff['key']} and also #{my_stuff['default_key']}"
40
-
41
- @app.call(params)
42
- end
43
- end
44
-
45
- class TestBrick
46
- def call(params)
47
- # doing something with params
48
- puts "Brick: #{params['something_cool']}"
49
- params
50
- end
51
- end
52
-
53
- it "puts them into params" do
54
- p = GoodData::Bricks::Pipeline.prepare([
55
- TestMiddleWare,
56
- TestBrick
57
- ])
58
-
59
- res = p.call(
60
- 'config' => {
61
- 'my' => {
62
- 'namespace' => {
63
- 'key' => 'redefined value',
64
- 'new_key' => 'new value'
65
- }
66
- },
67
- 'other_namespace' => {
68
- 'some_key' => 'some value'
69
- }
70
- }
71
- )
72
-
73
- res.should eq(
74
- 'config' => {
75
- 'my' => {
76
- 'namespace' => {
77
- 'key' => 'redefined value',
78
- 'new_key' => 'new value',
79
- 'default_key' => 'default value 2'
80
- }
81
- },
82
- 'other_namespace' => {
83
- 'some_key' => 'some value'
84
- }
85
- },
86
- "something_cool" => "redefined value and also default value 2"
87
- )
88
- end
89
- end
90
- end
91
-
92
- # TODO: Better test pre and post so we are sure it is executed in right order
93
- it "should be possible to use instance both as middleware and app" do
94
- class DummyMiddleware < GoodData::Bricks::Middleware
95
- def call(params)
96
- puts "pre"
97
- app.call(params)
98
- puts "post"
99
- end
100
- end
101
-
102
- p = GoodData::Bricks::Pipeline.prepare([
103
- DummyMiddleware.new,
104
- lambda do |_params|
105
- puts "x"
106
- end
107
- ])
108
- p.call({})
109
- end
110
- end
@@ -1,8 +0,0 @@
1
- {
2
- "my": {
3
- "namespace": {
4
- "key": "default value",
5
- "default_key": "default value 2"
6
- }
7
- }
8
- }
@@ -1,4 +0,0 @@
1
- {
2
- "username": "svarovsky+gem_tester@gooddata.com",
3
- "password": "jindrisska"
4
- }
@@ -1,32 +0,0 @@
1
- {
2
- "title": "RubyGem Dev Week test",
3
- "datasets": [
4
- {
5
- "type": "dataset",
6
- "id": "dataset.sales",
7
- "title": "Commits",
8
- "columns": [
9
- {
10
- "type": "anchor",
11
- "id": "attr.sales.id"
12
- },
13
- {
14
- "type": "fact",
15
- "id" : "some_sales_fact_id",
16
- "title": "Sales fact Title",
17
- "description": "Sales Fact description"
18
- },
19
- {
20
- "type": "reference",
21
- "id": "ref_dev_id",
22
- "dataset": "dataset.devs"
23
- },
24
- {
25
- "type": "reference",
26
- "id": "ref_repo_id",
27
- "dataset": "dataset.repos"
28
- }
29
- ]
30
- }
31
- ]
32
- }
@@ -1,72 +0,0 @@
1
- {
2
- "datasets": [
3
- {
4
- "type": "dataset",
5
- "title": "TEST",
6
- "id": "dataset.id",
7
- "columns": [
8
- {
9
- "type": "anchor",
10
- "id": "attr.id.id",
11
- "title": "ID",
12
- "description": null,
13
- "folder": "TEST"
14
- },
15
- {
16
- "type": "label",
17
- "id": "label.id.id",
18
- "reference": "attr.id.id",
19
- "title": "ID",
20
- "gd_data_type": "VARCHAR(128)",
21
- "gd_type": "GDC.text",
22
- "default_label": true
23
- },
24
- {
25
- "type": "attribute",
26
- "id": "attr.id.name",
27
- "title": "NAME",
28
- "description": null,
29
- "folder": "TEST",
30
- "order_by": "label.id.name.name_label_2 - DESC"
31
- },
32
- {
33
- "type": "label",
34
- "id": "label.id.name.name_label_3",
35
- "reference": "attr.id.name",
36
- "title": "NAME_LABEL_3",
37
- "gd_data_type": "VARCHAR(128)",
38
- "gd_type": "GDC.text",
39
- "default_label": true
40
- },
41
- {
42
- "type": "label",
43
- "id": "label.id.name.name_label_1",
44
- "reference": "attr.id.name",
45
- "title": "NAME_LABEL_1",
46
- "gd_data_type": "VARCHAR(128)",
47
- "gd_type": "GDC.text"
48
- },
49
- {
50
- "type": "label",
51
- "id": "label.id.name.name_label_2",
52
- "reference": "attr.id.name",
53
- "title": "NAME_LABEL_2",
54
- "gd_data_type": "VARCHAR(128)",
55
- "gd_type": "GDC.link"
56
- },
57
- {
58
- "type": "label",
59
- "id": "label.id.name",
60
- "reference": "attr.id.name",
61
- "title": "NAME",
62
- "gd_data_type": "VARCHAR(128)",
63
- "gd_type": "GDC.text"
64
- }
65
- ]
66
- }
67
- ],
68
- "date_dimensions": [
69
-
70
- ],
71
- "title": "Attribute sort order"
72
- }
@@ -1,2079 +0,0 @@
1
- {
2
- "datasets": [
3
- {
4
- "type": "dataset",
5
- "title": "stage_history",
6
- "name": "dataset.stage_history",
7
- "id": "dataset.stage_history",
8
- "columns": [
9
- {
10
- "type": "anchor",
11
- "id": "attr.dataset.stage_history.factsof",
12
- "title": "Records of stage_history"
13
- },
14
- {
15
- "type": "attribute",
16
- "id": "attr.stage_history.currentstatus",
17
- "title": "Current Stage",
18
- "folder": null
19
- },
20
- {
21
- "type": "label",
22
- "id": "label.stage_history.currentstatus",
23
- "reference": "attr.stage_history.currentstatus",
24
- "title": "Current Stage",
25
- "gd_data_type": "VARCHAR(128)",
26
- "gd_type": "GDC.text"
27
- },
28
- {
29
- "type": "fact",
30
- "id": "fact.stage_history.stage_velocity",
31
- "title": "Stage Velocity",
32
- "description": "Velocity description",
33
- "gd_data_type": "DECIMAL(12,2)"
34
- },
35
- {
36
- "type": "fact",
37
- "id": "fact.stage_history.stage_duration",
38
- "title": "Stage Duration",
39
- "gd_data_type": "DECIMAL(12,2)"
40
- },
41
- {
42
- "type": "date_fact",
43
- "id": "dt.stage_history.opp_created_date",
44
- "title": "Opp. Created (Date) for Stage History",
45
- "gd_data_type": "INT"
46
- },
47
- {
48
- "type": "date_fact",
49
- "id": "dt.stage_history.opp_close_date",
50
- "title": "Opp. Close (Date) for Stage History",
51
- "gd_data_type": "INT"
52
- },
53
- {
54
- "type": "reference",
55
- "dataset": "dataset.account"
56
- },
57
- {
58
- "type": "reference",
59
- "dataset": "dataset.product"
60
- },
61
- {
62
- "type": "reference",
63
- "dataset": "dataset.stage"
64
- },
65
- {
66
- "type": "reference",
67
- "dataset": "dataset.opp_owner"
68
- },
69
- {
70
- "type": "reference",
71
- "dataset": "dataset.opportunity"
72
- },
73
- {
74
- "type": "reference",
75
- "dataset": "dataset.bookingtype"
76
- },
77
- {
78
- "type": "date",
79
- "dataset": "oppclose"
80
- },
81
- {
82
- "type": "date",
83
- "dataset": "oppcreated"
84
- }
85
- ]
86
- },
87
- {
88
- "type": "dataset",
89
- "title": "opp_snapshot",
90
- "name": "dataset.opp_snapshot",
91
- "id": "dataset.opp_snapshot",
92
- "columns": [
93
- {
94
- "type": "attribute",
95
- "id": "attr.opp_snapshot.accountstagesnapshot",
96
- "title": "Account Stage (Snapshot)",
97
- "folder": null
98
- },
99
- {
100
- "type": "label",
101
- "id": "label.opp_snapshot.accountstagesnapshot",
102
- "reference": "attr.opp_snapshot.accountstagesnapshot",
103
- "title": "Account Stage (Snapshot)",
104
- "gd_data_type": "VARCHAR(128)",
105
- "gd_type": "GDC.text"
106
- },
107
- {
108
- "type": "fact",
109
- "id": "fact.opp_snapshot.amount",
110
- "title": "Amount Snapshot",
111
- "folder": "Opp. Snapshot",
112
- "gd_data_type": "DECIMAL(12,2)"
113
- },
114
- {
115
- "type": "fact",
116
- "id": "fact.opp_snapshot.probability",
117
- "title": "Probability Snapshot",
118
- "folder": "Opp. Snapshot",
119
- "gd_data_type": "DECIMAL(12,2)"
120
- },
121
- {
122
- "type": "date_fact",
123
- "id": "dt.opp_snapshot.created_date",
124
- "title": "Opp. Created (Date) Snapshot",
125
- "gd_data_type": "INT"
126
- },
127
- {
128
- "type": "date_fact",
129
- "id": "dt.opp_snapshot.close_date",
130
- "title": "Opp. Close (Date) Snapshot",
131
- "gd_data_type": "INT"
132
- },
133
- {
134
- "type": "date_fact",
135
- "id": "dt.opp_snapshot.snapshot_date",
136
- "title": "Opp. Snapshot (Date)",
137
- "gd_data_type": "INT"
138
- },
139
- {
140
- "type": "fact",
141
- "id": "fact.opp_snapshot.mrr",
142
- "title": "Straight Line MRR (Snapshot)",
143
- "gd_data_type": "DECIMAL(12,2)"
144
- },
145
- {
146
- "type": "fact",
147
- "id": "fact.opp_snapshot.distributedmrr",
148
- "title": "Ending MRR (Snapshot)",
149
- "gd_data_type": "DECIMAL(12,2)"
150
- },
151
- {
152
- "type": "date_fact",
153
- "id": "dt.opp_snapshot.effectivecontractstart",
154
- "title": "Opp. Contract Start (Date) Snapshot",
155
- "gd_data_type": "INT"
156
- },
157
- {
158
- "type": "date_fact",
159
- "id": "dt.opp_snapshot.effectivecontractend",
160
- "title": "Opp. Contract End (Date) Snapshot",
161
- "gd_data_type": "INT"
162
- },
163
- {
164
- "type": "reference",
165
- "dataset": "dataset.sdrowner"
166
- },
167
- {
168
- "type": "reference",
169
- "dataset": "dataset.leadsourceoriginal"
170
- },
171
- {
172
- "type": "reference",
173
- "dataset": "dataset.account"
174
- },
175
- {
176
- "type": "reference",
177
- "dataset": "dataset.amounttype"
178
- },
179
- {
180
- "type": "reference",
181
- "dataset": "dataset.product"
182
- },
183
- {
184
- "type": "reference",
185
- "dataset": "dataset.sourcingorigin"
186
- },
187
- {
188
- "type": "reference",
189
- "dataset": "dataset.leadsource"
190
- },
191
- {
192
- "type": "reference",
193
- "dataset": "dataset.productline"
194
- },
195
- {
196
- "type": "reference",
197
- "dataset": "dataset.stage"
198
- },
199
- {
200
- "type": "reference",
201
- "dataset": "dataset.opp_owner"
202
- },
203
- {
204
- "type": "reference",
205
- "dataset": "dataset.opportunity"
206
- },
207
- {
208
- "type": "reference",
209
- "dataset": "dataset.bookingtype"
210
- },
211
- {
212
- "type": "reference",
213
- "dataset": "dataset.forecast"
214
- },
215
- {
216
- "type": "date",
217
- "dataset": "leadcreate"
218
- },
219
- {
220
- "type": "date",
221
- "dataset": "snapshot"
222
- },
223
- {
224
- "type": "date",
225
- "dataset": "oppclose"
226
- },
227
- {
228
- "type": "date",
229
- "dataset": "oppcreated"
230
- },
231
- {
232
- "type": "date",
233
- "dataset": "stage1plus"
234
- },
235
- {
236
- "type": "date",
237
- "dataset": "mqldate"
238
- },
239
- {
240
- "type": "date",
241
- "dataset": "effectivecontractstart"
242
- },
243
- {
244
- "type": "date",
245
- "dataset": "effectivecontractend"
246
- }
247
- ]
248
- },
249
- {
250
- "type": "dataset",
251
- "title": "Opp_changes",
252
- "name": "dataset.opp_changes",
253
- "id": "dataset.opp_changes",
254
- "columns": [
255
- {
256
- "type": "attribute",
257
- "id": "attr.opp_changes.interval_changes",
258
- "title": "Interval_Changes",
259
- "folder": null
260
- },
261
- {
262
- "type": "label",
263
- "id": "label.opp_changes.interval_changes",
264
- "reference": "attr.opp_changes.interval_changes",
265
- "title": "Interval_Changes",
266
- "gd_data_type": "VARCHAR(128)",
267
- "gd_type": "GDC.text"
268
- },
269
- {
270
- "type": "attribute",
271
- "id": "attr.opp_changes.previous_stage",
272
- "title": "Previous_Stage",
273
- "folder": null
274
- },
275
- {
276
- "type": "label",
277
- "id": "label.opp_changes.previous_stage",
278
- "reference": "attr.opp_changes.previous_stage",
279
- "title": "Previous_Stage",
280
- "gd_data_type": "VARCHAR(128)",
281
- "gd_type": "GDC.text"
282
- },
283
- {
284
- "type": "fact",
285
- "id": "fact.opp_changes.amount_changed",
286
- "title": "amount_changed_expected",
287
- "gd_data_type": "DECIMAL(12,2)"
288
- },
289
- {
290
- "type": "fact",
291
- "id": "fact.opp_changes.amount_changed_current_q",
292
- "title": "amount_changed_current_q_expected",
293
- "gd_data_type": "DECIMAL(12,2)"
294
- },
295
- {
296
- "type": "fact",
297
- "id": "fact.opp_changes.previous_amount",
298
- "title": "previous_amount",
299
- "gd_data_type": "DECIMAL(12,2)"
300
- },
301
- {
302
- "type": "fact",
303
- "id": "fact.opp_changes.new_amount",
304
- "title": "new_amount",
305
- "gd_data_type": "DECIMAL(12,2)"
306
- },
307
- {
308
- "type": "fact",
309
- "id": "fact.opp_changes.amount_changed_potential",
310
- "title": "amount_changed_potential",
311
- "gd_data_type": "DECIMAL(12,2)"
312
- },
313
- {
314
- "type": "fact",
315
- "id": "fact.opp_changes.amount_changed_current_q_potential",
316
- "title": "amount_changed_current_q_potential",
317
- "gd_data_type": "DECIMAL(12,2)"
318
- },
319
- {
320
- "type": "reference",
321
- "dataset": "dataset.account"
322
- },
323
- {
324
- "type": "reference",
325
- "dataset": "dataset.amounttype"
326
- },
327
- {
328
- "type": "reference",
329
- "dataset": "dataset.product"
330
- },
331
- {
332
- "type": "reference",
333
- "dataset": "dataset.productline"
334
- },
335
- {
336
- "type": "reference",
337
- "dataset": "dataset.stage"
338
- },
339
- {
340
- "type": "reference",
341
- "dataset": "dataset.opp_owner"
342
- },
343
- {
344
- "type": "reference",
345
- "dataset": "dataset.opportunity"
346
- },
347
- {
348
- "type": "reference",
349
- "dataset": "dataset.bookingtype"
350
- },
351
- {
352
- "type": "date",
353
- "dataset": "oppclose"
354
- },
355
- {
356
- "type": "date",
357
- "dataset": "previous_close_date"
358
- }
359
- ]
360
- },
361
- {
362
- "type": "dataset",
363
- "title": "Opportunity Benchmark",
364
- "name": "dataset.opportunityanalysis",
365
- "id": "dataset.opportunityanalysis",
366
- "columns": [
367
- {
368
- "type": "anchor",
369
- "id": "attr.opportunityanalysis.techoppanalysis",
370
- "title": "Tech Opp. Analysis",
371
- "folder": "Opportunity Benchmark"
372
- },
373
- {
374
- "type": "label",
375
- "id": "label.opportunityanalysis.techoppanalysis",
376
- "reference": "attr.opportunityanalysis.techoppanalysis",
377
- "title": "Tech Opp. Analysis",
378
- "gd_data_type": "VARCHAR(128)",
379
- "gd_type": "GDC.text"
380
- },
381
- {
382
- "type": "attribute",
383
- "id": "attr.opportunityanalysis.month",
384
- "title": "Month",
385
- "folder": "Opportunity Benchmark"
386
- },
387
- {
388
- "type": "label",
389
- "id": "label.opportunityanalysis.month",
390
- "reference": "attr.opportunityanalysis.month",
391
- "title": "Month",
392
- "gd_data_type": "VARCHAR(128)",
393
- "gd_type": "GDC.text"
394
- },
395
- {
396
- "type": "label",
397
- "id": "label.opportunityanalysis.month.monthsortingnew",
398
- "reference": "attr.opportunityanalysis.month",
399
- "title": "MonthSortingNew",
400
- "gd_data_type": "INT",
401
- "gd_type": "GDC.text"
402
- },
403
- {
404
- "type": "attribute",
405
- "id": "attr.opportunityanalysis.cohorttype",
406
- "title": "Cohort Type",
407
- "folder": "Opportunity Benchmark"
408
- },
409
- {
410
- "type": "label",
411
- "id": "label.opportunityanalysis.cohorttype",
412
- "reference": "attr.opportunityanalysis.cohorttype",
413
- "title": "Cohort Type",
414
- "gd_data_type": "VARCHAR(128)",
415
- "gd_type": "GDC.text"
416
- },
417
- {
418
- "type": "fact",
419
- "id": "fact.opportunityanalysis.buckets_to_display",
420
- "title": "buckets_to_display",
421
- "folder": "Opportunity Benchmark",
422
- "gd_data_type": "DECIMAL(12,2)"
423
- },
424
- {
425
- "type": "fact",
426
- "id": "fact.opportunityanalysis.month_fact",
427
- "title": "month_fact",
428
- "folder": "Opportunity Benchmark",
429
- "gd_data_type": "DECIMAL(12,2)"
430
- },
431
- {
432
- "type": "reference",
433
- "dataset": "dataset.opp_records"
434
- },
435
- {
436
- "type": "reference",
437
- "dataset": "dataset.consolidatedmarketingstatus"
438
- }
439
- ]
440
- },
441
- {
442
- "type": "dataset",
443
- "title": "quota",
444
- "name": "dataset.goals",
445
- "id": "dataset.goals",
446
- "columns": [
447
- {
448
- "type": "attribute",
449
- "id": "attr.goals.quotatype",
450
- "title": "Quota Type",
451
- "folder": null
452
- },
453
- {
454
- "type": "label",
455
- "id": "label.goals.quotatype",
456
- "reference": "attr.goals.quotatype",
457
- "title": "Quota Type",
458
- "gd_data_type": "VARCHAR(128)",
459
- "gd_type": "GDC.text"
460
- },
461
- {
462
- "type": "fact",
463
- "id": "fact.goals.amount",
464
- "title": "quota amount",
465
- "gd_data_type": "DECIMAL(12,2)"
466
- },
467
- {
468
- "type": "date_fact",
469
- "id": "dt.goals.mqldate",
470
- "title": "MQL Date (Quota)",
471
- "gd_data_type": "INT"
472
- },
473
- {
474
- "type": "date_fact",
475
- "id": "dt.goals.stage1plus",
476
- "title": "SAO Date (Quota)",
477
- "gd_data_type": "INT"
478
- },
479
- {
480
- "type": "date_fact",
481
- "id": "dt.goals.oppcreated",
482
- "title": "Opp. Create (Quota)",
483
- "gd_data_type": "INT"
484
- },
485
- {
486
- "type": "date_fact",
487
- "id": "dt.goals.oppclose",
488
- "title": "Opp. Close (Quota)",
489
- "gd_data_type": "INT"
490
- },
491
- {
492
- "type": "reference",
493
- "dataset": "dataset.sdrowner"
494
- },
495
- {
496
- "type": "reference",
497
- "dataset": "dataset.amounttype"
498
- },
499
- {
500
- "type": "reference",
501
- "dataset": "dataset.product"
502
- },
503
- {
504
- "type": "reference",
505
- "dataset": "dataset.sourcingorigin"
506
- },
507
- {
508
- "type": "reference",
509
- "dataset": "dataset.activity_owner"
510
- },
511
- {
512
- "type": "reference",
513
- "dataset": "dataset.opp_owner"
514
- },
515
- {
516
- "type": "reference",
517
- "dataset": "dataset.bookingtype"
518
- },
519
- {
520
- "type": "date",
521
- "dataset": "activity"
522
- },
523
- {
524
- "type": "date",
525
- "dataset": "oppclose"
526
- },
527
- {
528
- "type": "date",
529
- "dataset": "oppcreated"
530
- },
531
- {
532
- "type": "date",
533
- "dataset": "stage1plus"
534
- },
535
- {
536
- "type": "date",
537
- "dataset": "mqldate"
538
- },
539
- {
540
- "type": "date",
541
- "dataset": "s2o"
542
- }
543
- ]
544
- },
545
- {
546
- "type": "dataset",
547
- "title": "timeline",
548
- "name": "dataset.timeline",
549
- "id": "dataset.timeline",
550
- "columns": [
551
- {
552
- "type": "date_fact",
553
- "id": "dt.timeline.timeline",
554
- "title": "Timeline (Date)",
555
- "gd_data_type": "INT"
556
- },
557
- {
558
- "type": "date",
559
- "dataset": "timeline"
560
- }
561
- ]
562
- },
563
- {
564
- "type": "dataset",
565
- "title": "activity_monitoring",
566
- "name": "dataset.activity_monitoring",
567
- "id": "dataset.activity_monitoring",
568
- "columns": [
569
- {
570
- "type": "date_fact",
571
- "id": "dt.activity_monitoring.opp_created_date",
572
- "title": "Opp. Created (Date) for Activity",
573
- "gd_data_type": "INT"
574
- },
575
- {
576
- "type": "date_fact",
577
- "id": "dt.activity_monitoring.opp_close_date",
578
- "title": "Opp. Close (Date) for Activity",
579
- "gd_data_type": "INT"
580
- },
581
- {
582
- "type": "date_fact",
583
- "id": "dt.activity_monitoring.activity_date",
584
- "title": "Activity (Date)",
585
- "gd_data_type": "INT"
586
- },
587
- {
588
- "type": "reference",
589
- "dataset": "dataset.account"
590
- },
591
- {
592
- "type": "reference",
593
- "dataset": "dataset.product"
594
- },
595
- {
596
- "type": "reference",
597
- "dataset": "dataset.activity_owner"
598
- },
599
- {
600
- "type": "reference",
601
- "dataset": "dataset.stage"
602
- },
603
- {
604
- "type": "reference",
605
- "dataset": "dataset.opp_owner"
606
- },
607
- {
608
- "type": "reference",
609
- "dataset": "dataset.activity"
610
- },
611
- {
612
- "type": "reference",
613
- "dataset": "dataset.opportunity"
614
- },
615
- {
616
- "type": "reference",
617
- "dataset": "dataset.bookingtype"
618
- },
619
- {
620
- "type": "date",
621
- "dataset": "activity"
622
- },
623
- {
624
- "type": "date",
625
- "dataset": "oppclose"
626
- },
627
- {
628
- "type": "date",
629
- "dataset": "oppcreated"
630
- }
631
- ]
632
- },
633
- {
634
- "type": "dataset",
635
- "title": "opp_records",
636
- "name": "dataset.opp_records",
637
- "id": "dataset.opp_records",
638
- "columns": [
639
- {
640
- "type": "anchor",
641
- "id": "attr.opp_records.factsof",
642
- "title": "Records of opp_records",
643
- "folder": null
644
- },
645
- {
646
- "type": "label",
647
- "id": "label.opp_records.opp_records_conctn_point",
648
- "reference": "attr.opp_records.factsof",
649
- "title": "opp_records_conctn_point",
650
- "gd_data_type": "VARCHAR(128)",
651
- "gd_type": "GDC.text"
652
- },
653
- {
654
- "type": "label",
655
- "id": "label.opp_records.factsof",
656
- "reference": "attr.opp_records.factsof",
657
- "title": "Records of opp_records",
658
- "gd_data_type": "VARCHAR(128)",
659
- "gd_type": "GDC.text"
660
- },
661
- {
662
- "type": "fact",
663
- "id": "fact.opp_records.amount",
664
- "title": "Amount",
665
- "folder": "Opp. Records",
666
- "gd_data_type": "DECIMAL(12,2)"
667
- },
668
- {
669
- "type": "fact",
670
- "id": "fact.opp_records.probability",
671
- "title": "Probability",
672
- "folder": "Opp. Records",
673
- "gd_data_type": "DECIMAL(12,2)"
674
- },
675
- {
676
- "type": "date_fact",
677
- "id": "dt.opp_records.created_date",
678
- "title": "Opp. Created (Date)",
679
- "gd_data_type": "INT"
680
- },
681
- {
682
- "type": "date_fact",
683
- "id": "dt.opp_records.close_date",
684
- "title": "Opp. Close (Date)",
685
- "gd_data_type": "INT"
686
- },
687
- {
688
- "type": "date_fact",
689
- "id": "dt.opp_records.stage1plus",
690
- "title": "SAO (date)",
691
- "gd_data_type": "INT"
692
- },
693
- {
694
- "type": "date_fact",
695
- "id": "dt.opp_records.leadcreate",
696
- "title": "Lead Created (Date)",
697
- "gd_data_type": "INT"
698
- },
699
- {
700
- "type": "date_fact",
701
- "id": "dt.opp_records.mqldate",
702
- "title": "MQL (Date)",
703
- "gd_data_type": "INT"
704
- },
705
- {
706
- "type": "date_fact",
707
- "id": "dt.opp_records.firstcontactdate",
708
- "title": "Contact (Date)",
709
- "gd_data_type": "INT"
710
- },
711
- {
712
- "type": "date_fact",
713
- "id": "dt.opp_records.laststage0plus",
714
- "title": "Last Stage 0 Plus",
715
- "gd_data_type": "INT"
716
- },
717
- {
718
- "type": "fact",
719
- "id": "fact.opp_records.mrr",
720
- "title": "Straight Line MRR",
721
- "gd_data_type": "DECIMAL(12,2)"
722
- },
723
- {
724
- "type": "fact",
725
- "id": "fact.opp_records.distributed_mrr",
726
- "title": "Ending MRR",
727
- "gd_data_type": "DECIMAL(12,2)"
728
- },
729
- {
730
- "type": "fact",
731
- "id": "fact.opp_records.freemonths",
732
- "title": "Free Months",
733
- "gd_data_type": "DECIMAL(12,2)"
734
- },
735
- {
736
- "type": "date_fact",
737
- "id": "dt.opp_records.effectivecontractstart",
738
- "title": "Contract Start (Date)",
739
- "gd_data_type": "INT"
740
- },
741
- {
742
- "type": "date_fact",
743
- "id": "dt.opp_records.effectivecontractend",
744
- "title": "Contract End (Date)",
745
- "gd_data_type": "INT"
746
- },
747
- {
748
- "type": "fact",
749
- "id": "fact.opp_records.upsellcmrr",
750
- "title": "Upsell CMRR",
751
- "gd_data_type": "DECIMAL(12,2)"
752
- },
753
- {
754
- "type": "fact",
755
- "id": "fact.opp_records.downsellcmrr",
756
- "title": "Downsell CMRR",
757
- "gd_data_type": "DECIMAL(12,2)"
758
- },
759
- {
760
- "type": "fact",
761
- "id": "fact.opp_records.upliftcmrr",
762
- "title": "Uplift CMRR",
763
- "gd_data_type": "DECIMAL(12,2)"
764
- },
765
- {
766
- "type": "fact",
767
- "id": "fact.opp_records.churncmrr",
768
- "title": "Churn CMRR",
769
- "gd_data_type": "DECIMAL(12,2)"
770
- },
771
- {
772
- "type": "date_fact",
773
- "id": "dt.opp_records.firstmeeting",
774
- "title": "First Meeting (Date)",
775
- "gd_data_type": "INT"
776
- },
777
- {
778
- "type": "date_fact",
779
- "id": "dt.opp_records.s2o",
780
- "title": "S2O (Date)",
781
- "gd_data_type": "INT"
782
- },
783
- {
784
- "type": "reference",
785
- "dataset": "dataset.sdrowner"
786
- },
787
- {
788
- "type": "reference",
789
- "dataset": "dataset.leadsourceoriginal"
790
- },
791
- {
792
- "type": "reference",
793
- "dataset": "dataset.account"
794
- },
795
- {
796
- "type": "reference",
797
- "dataset": "dataset.amounttype"
798
- },
799
- {
800
- "type": "reference",
801
- "dataset": "dataset.product"
802
- },
803
- {
804
- "type": "reference",
805
- "dataset": "dataset.renewalstatus"
806
- },
807
- {
808
- "type": "reference",
809
- "dataset": "dataset.sourcingorigin"
810
- },
811
- {
812
- "type": "reference",
813
- "dataset": "dataset.sdrperformancestatus"
814
- },
815
- {
816
- "type": "reference",
817
- "dataset": "dataset.leadsource"
818
- },
819
- {
820
- "type": "reference",
821
- "dataset": "dataset.winlossreason"
822
- },
823
- {
824
- "type": "reference",
825
- "dataset": "dataset.productline"
826
- },
827
- {
828
- "type": "reference",
829
- "dataset": "dataset.leadchannel"
830
- },
831
- {
832
- "type": "reference",
833
- "dataset": "dataset.stage"
834
- },
835
- {
836
- "type": "reference",
837
- "dataset": "dataset.opp_owner"
838
- },
839
- {
840
- "type": "reference",
841
- "dataset": "dataset.opportunity"
842
- },
843
- {
844
- "type": "reference",
845
- "dataset": "dataset.bookingtype"
846
- },
847
- {
848
- "type": "reference",
849
- "dataset": "dataset.forecast"
850
- },
851
- {
852
- "type": "date",
853
- "dataset": "leadcreate"
854
- },
855
- {
856
- "type": "date",
857
- "dataset": "oppclose"
858
- },
859
- {
860
- "type": "date",
861
- "dataset": "oppcreated"
862
- },
863
- {
864
- "type": "date",
865
- "dataset": "stage1plus"
866
- },
867
- {
868
- "type": "date",
869
- "dataset": "firstcontactdate"
870
- },
871
- {
872
- "type": "date",
873
- "dataset": "mqldate"
874
- },
875
- {
876
- "type": "date",
877
- "dataset": "s2o"
878
- },
879
- {
880
- "type": "date",
881
- "dataset": "firstmeeting"
882
- },
883
- {
884
- "type": "date",
885
- "dataset": "effectivecontractstart"
886
- },
887
- {
888
- "type": "date",
889
- "dataset": "laststage0plus"
890
- },
891
- {
892
- "type": "date",
893
- "dataset": "effectivecontractend"
894
- }
895
- ]
896
- },
897
- {
898
- "type": "dataset",
899
- "title": "SDR Owner",
900
- "name": "dataset.sdrowner",
901
- "id": "dataset.sdrowner",
902
- "columns": [
903
- {
904
- "type": "anchor",
905
- "id": "attr.sdrowner.sdrowner",
906
- "title": "SDR Owner",
907
- "folder": "SDR"
908
- },
909
- {
910
- "type": "label",
911
- "id": "label.sdrowner.sdrowner",
912
- "reference": "attr.sdrowner.sdrowner",
913
- "title": "SDR Owner",
914
- "gd_data_type": "VARCHAR(128)",
915
- "gd_type": "GDC.text"
916
- },
917
- {
918
- "type": "label",
919
- "id": "label.sdrowner.sdrowner.sdrownername",
920
- "reference": "attr.sdrowner.sdrowner",
921
- "title": "SDR Owner Name",
922
- "gd_data_type": "VARCHAR(128)",
923
- "gd_type": "GDC.text"
924
- },
925
- {
926
- "type": "attribute",
927
- "id": "attr.sdrowner.sdrteam",
928
- "title": "SDR Team",
929
- "folder": "SDR"
930
- },
931
- {
932
- "type": "label",
933
- "id": "label.sdrowner.sdrteam",
934
- "reference": "attr.sdrowner.sdrteam",
935
- "title": "SDR Team",
936
- "gd_data_type": "VARCHAR(128)",
937
- "gd_type": "GDC.text"
938
- }
939
- ]
940
- },
941
- {
942
- "type": "dataset",
943
- "title": "Lead Source Original",
944
- "name": "dataset.leadsourceoriginal",
945
- "id": "dataset.leadsourceoriginal",
946
- "columns": [
947
- {
948
- "type": "anchor",
949
- "id": "attr.leadsourceoriginal.leadsourceoriginal",
950
- "title": "Lead Source Original",
951
- "folder": "Lead Sources"
952
- },
953
- {
954
- "type": "label",
955
- "id": "label.leadsourceoriginal.leadsourceoriginal",
956
- "reference": "attr.leadsourceoriginal.leadsourceoriginal",
957
- "title": "Lead Source Original",
958
- "gd_data_type": "VARCHAR(128)",
959
- "gd_type": "GDC.text"
960
- },
961
- {
962
- "type": "attribute",
963
- "id": "attr.leadsourceoriginal.leadcategory",
964
- "title": "Lead Source Original Category",
965
- "folder": "Lead Sources"
966
- },
967
- {
968
- "type": "label",
969
- "id": "label.leadsourceoriginal.leadcategory",
970
- "reference": "attr.leadsourceoriginal.leadcategory",
971
- "title": "Lead Source Original Category",
972
- "gd_data_type": "VARCHAR(128)",
973
- "gd_type": "GDC.text"
974
- }
975
- ]
976
- },
977
- {
978
- "type": "dataset",
979
- "title": "account",
980
- "name": "dataset.account",
981
- "id": "dataset.account",
982
- "columns": [
983
- {
984
- "type": "anchor",
985
- "id": "attr.account.id",
986
- "title": "Account",
987
- "folder": "Account"
988
- },
989
- {
990
- "type": "label",
991
- "id": "label.account.id.name",
992
- "reference": "attr.account.id",
993
- "title": "Account Name",
994
- "gd_data_type": "VARCHAR(128)",
995
- "gd_type": "GDC.text"
996
- },
997
- {
998
- "type": "label",
999
- "id": "label.account.id",
1000
- "reference": "attr.account.id",
1001
- "title": "Account",
1002
- "gd_data_type": "VARCHAR(128)",
1003
- "gd_type": "GDC.text"
1004
- },
1005
- {
1006
- "type": "label",
1007
- "id": "label.account.id.url",
1008
- "reference": "attr.account.id",
1009
- "title": "Account Url",
1010
- "gd_data_type": "VARCHAR(128)",
1011
- "gd_type": "GDC.link"
1012
- },
1013
- {
1014
- "type": "attribute",
1015
- "id": "attr.account.region",
1016
- "title": "Account Region",
1017
- "folder": "Account"
1018
- },
1019
- {
1020
- "type": "label",
1021
- "id": "label.account.region",
1022
- "reference": "attr.account.region",
1023
- "title": "Account Region",
1024
- "gd_data_type": "VARCHAR(128)",
1025
- "gd_type": "GDC.text"
1026
- },
1027
- {
1028
- "type": "attribute",
1029
- "id": "attr.account.accountstage",
1030
- "title": "Account Stage",
1031
- "folder": "Account"
1032
- },
1033
- {
1034
- "type": "label",
1035
- "id": "label.account.accountstage",
1036
- "reference": "attr.account.accountstage",
1037
- "title": "Account Stage",
1038
- "gd_data_type": "VARCHAR(128)",
1039
- "gd_type": "GDC.text"
1040
- },
1041
- {
1042
- "type": "attribute",
1043
- "id": "attr.account.accountownername",
1044
- "title": "Account Owner Name",
1045
- "folder": "Account"
1046
- },
1047
- {
1048
- "type": "label",
1049
- "id": "label.account.accountownername",
1050
- "reference": "attr.account.accountownername",
1051
- "title": "Account Owner Name",
1052
- "gd_data_type": "VARCHAR(128)",
1053
- "gd_type": "GDC.text"
1054
- },
1055
- {
1056
- "type": "attribute",
1057
- "id": "attr.account.accountindustry",
1058
- "title": "Account Industry",
1059
- "folder": "Account"
1060
- },
1061
- {
1062
- "type": "label",
1063
- "id": "label.account.accountindustry",
1064
- "reference": "label.account.accountindustry",
1065
- "title": "Account Industry",
1066
- "gd_data_type": "VARCHAR(128)",
1067
- "gd_type": "GDC.text"
1068
- },
1069
- {
1070
- "type": "attribute",
1071
- "id": "attr.account.accountemployeecount",
1072
- "title": "Account Employee Count",
1073
- "folder": "Account"
1074
- },
1075
- {
1076
- "type": "label",
1077
- "id": "label.account.accountemployeecount.employeecountsort",
1078
- "reference": "label.account.accountindustry",
1079
- "title": "Employee Count Sort",
1080
- "gd_data_type": "INT",
1081
- "gd_type": "GDC.text"
1082
- },
1083
- {
1084
- "type": "label",
1085
- "id": "label.account.accountemployeecount",
1086
- "reference": "attr.account.accountemployeecount",
1087
- "title": "Account Employee Count",
1088
- "gd_data_type": "VARCHAR(128)",
1089
- "gd_type": "GDC.text"
1090
- },
1091
- {
1092
- "type": "attribute",
1093
- "id": "attr.account.accountannualrevenue",
1094
- "title": "Account Annual Revenue",
1095
- "folder": "Account"
1096
- },
1097
- {
1098
- "type": "label",
1099
- "id": "label.account.accountannualrevenue",
1100
- "reference": "attr.account.accountannualrevenue",
1101
- "title": "Account Annual Revenue",
1102
- "gd_data_type": "VARCHAR(128)",
1103
- "gd_type": "GDC.text"
1104
- }
1105
- ]
1106
- },
1107
- {
1108
- "type": "dataset",
1109
- "title": "Revenue Type",
1110
- "name": "dataset.amounttype",
1111
- "id": "dataset.amounttype",
1112
- "columns": [
1113
- {
1114
- "type": "anchor",
1115
- "id": "attr.amounttype.amounttype",
1116
- "title": "Revenue Type",
1117
- "folder": "Revenue Type"
1118
- },
1119
- {
1120
- "type": "label",
1121
- "id": "label.amounttype.amounttype",
1122
- "reference": "attr.amounttype.amounttype",
1123
- "title": "Revenue Type",
1124
- "gd_data_type": "VARCHAR(128)",
1125
- "gd_type": "GDC.text"
1126
- }
1127
- ]
1128
- },
1129
- {
1130
- "type": "dataset",
1131
- "title": "product",
1132
- "name": "dataset.product",
1133
- "id": "dataset.product",
1134
- "columns": [
1135
- {
1136
- "type": "anchor",
1137
- "id": "attr.product.id",
1138
- "title": "Product",
1139
- "folder": "Product"
1140
- },
1141
- {
1142
- "type": "label",
1143
- "id": "label.product.id.name",
1144
- "reference": "attr.product.id",
1145
- "title": "Product Name",
1146
- "gd_data_type": "VARCHAR(128)",
1147
- "gd_type": "GDC.text"
1148
- },
1149
- {
1150
- "type": "label",
1151
- "id": "label.product.id",
1152
- "reference": "attr.product.id",
1153
- "title": "Product",
1154
- "gd_data_type": "VARCHAR(128)",
1155
- "gd_type": "GDC.text"
1156
- },
1157
- {
1158
- "type": "attribute",
1159
- "id": "attr.product.product_type",
1160
- "title": "Product Type",
1161
- "folder": "Product"
1162
- },
1163
- {
1164
- "type": "label",
1165
- "id": "label.product.product_type",
1166
- "reference": "attr.product.product_type",
1167
- "title": "Product Type",
1168
- "gd_data_type": "VARCHAR(128)",
1169
- "gd_type": "GDC.text"
1170
- }
1171
- ]
1172
- },
1173
- {
1174
- "type": "dataset",
1175
- "title": "Renewal Status",
1176
- "name": "dataset.renewalstatus",
1177
- "id": "dataset.renewalstatus",
1178
- "columns": [
1179
- {
1180
- "type": "anchor",
1181
- "id": "attr.renewalstatus.renewalstatus",
1182
- "title": "Renewal Status",
1183
- "folder": null
1184
- },
1185
- {
1186
- "type": "label",
1187
- "id": "label.renewalstatus.renewalstatus",
1188
- "reference": "attr.renewalstatus.renewalstatus",
1189
- "title": "Renewal Status",
1190
- "gd_data_type": "VARCHAR(128)",
1191
- "gd_type": "GDC.text"
1192
- }
1193
- ]
1194
- },
1195
- {
1196
- "type": "dataset",
1197
- "title": "Sourcing Type",
1198
- "name": "dataset.sourcingorigin",
1199
- "id": "dataset.sourcingorigin",
1200
- "columns": [
1201
- {
1202
- "type": "anchor",
1203
- "id": "attr.sourcingorigin.techsourcingtype",
1204
- "title": "_Tech Sourcing Type",
1205
- "folder": "Lead Sources"
1206
- },
1207
- {
1208
- "type": "label",
1209
- "id": "label.sourcingorigin.techsourcingtype",
1210
- "reference": "attr.sourcingorigin.techsourcingtype",
1211
- "title": "_Tech Sourcing Type",
1212
- "gd_data_type": "VARCHAR(128)",
1213
- "gd_type": "GDC.text"
1214
- },
1215
- {
1216
- "type": "attribute",
1217
- "id": "attr.sourcingorigin.sourcingtype",
1218
- "title": "Sourcing Type",
1219
- "folder": "Lead Sources"
1220
- },
1221
- {
1222
- "type": "label",
1223
- "id": "label.sourcingorigin.sourcingtype",
1224
- "reference": "attr.sourcingorigin.sourcingtype",
1225
- "title": "Sourcing Type",
1226
- "gd_data_type": "VARCHAR(128)",
1227
- "gd_type": "GDC.text"
1228
- },
1229
- {
1230
- "type": "attribute",
1231
- "id": "attr.sourcingorigin.sourcingtypechannel",
1232
- "title": "Sourcing Type Channel",
1233
- "folder": "Lead Sources"
1234
- },
1235
- {
1236
- "type": "label",
1237
- "id": "label.sourcingorigin.sourcingtypechannel",
1238
- "reference": "attr.sourcingorigin.sourcingtypechannel",
1239
- "title": "Sourcing Type Channel",
1240
- "gd_data_type": "VARCHAR(128)",
1241
- "gd_type": "GDC.text"
1242
- },
1243
- {
1244
- "type": "attribute",
1245
- "id": "attr.sourcingorigin.sourcingtypeteam",
1246
- "title": "Sourcing Type Team",
1247
- "folder": "Lead Sources"
1248
- },
1249
- {
1250
- "type": "label",
1251
- "id": "label.sourcingorigin.sourcingtypeteam.sourcingtypeteamname",
1252
- "reference": "attr.sourcingorigin.sourcingtypeteam",
1253
- "title": "Sourcing Type Team Name",
1254
- "gd_data_type": "VARCHAR(128)",
1255
- "gd_type": "GDC.text"
1256
- },
1257
- {
1258
- "type": "label",
1259
- "id": "label.sourcingorigin.sourcingtypeteam",
1260
- "reference": "attr.sourcingorigin.sourcingtypeteam",
1261
- "title": "Sourcing Type Team",
1262
- "gd_data_type": "VARCHAR(128)",
1263
- "gd_type": "GDC.text"
1264
- }
1265
- ]
1266
- },
1267
- {
1268
- "type": "dataset",
1269
- "title": "SDR Performance Status",
1270
- "name": "dataset.sdrperformancestatus",
1271
- "id": "dataset.sdrperformancestatus",
1272
- "columns": [
1273
- {
1274
- "type": "anchor",
1275
- "id": "attr.sdrperformancestatus.sdrperformancestatus",
1276
- "title": "SDR Performance Status",
1277
- "folder": null
1278
- },
1279
- {
1280
- "type": "label",
1281
- "id": "label.sdrperformancestatus.sdrperformancestatus",
1282
- "reference": "attr.sdrperformancestatus.sdrperformancestatus",
1283
- "title": "SDR Performance Status",
1284
- "gd_data_type": "VARCHAR(128)",
1285
- "gd_type": "GDC.text"
1286
- }
1287
- ]
1288
- },
1289
- {
1290
- "type": "dataset",
1291
- "title": "Consolidated Marketing Status",
1292
- "name": "dataset.consolidatedmarketingstatus",
1293
- "id": "dataset.consolidatedmarketingstatus",
1294
- "columns": [
1295
- {
1296
- "type": "anchor",
1297
- "id": "attr.consolidatedmarketingstatus.consolidatedmarketingstatus",
1298
- "title": "_TECH Consolidated Marketing Status (Conctn_Point)",
1299
- "folder": "Consolidated Marketing Status"
1300
- },
1301
- {
1302
- "type": "label",
1303
- "id": "label.consolidatedmarketingstatus.consolidatedmarketingstatus",
1304
- "reference": "attr.consolidatedmarketingstatus.consolidatedmarketingstatus",
1305
- "title": "_TECH Consolidated Marketing Status (Conctn_Point)",
1306
- "gd_data_type": "VARCHAR(128)",
1307
- "gd_type": "GDC.text"
1308
- },
1309
- {
1310
- "type": "label",
1311
- "id": "label.consolidatedmarketingstatus.consolidatedmarketingstatus.mktgstatussorting",
1312
- "reference": "attr.consolidatedmarketingstatus.consolidatedmarketingstatus",
1313
- "title": "_Mktg Status Sorting",
1314
- "gd_data_type": "INT",
1315
- "gd_type": "GDC.text"
1316
- },
1317
- {
1318
- "type": "attribute",
1319
- "id": "attr.consolidatedmarketingstatus.detailedmarketingstatuslvl1",
1320
- "title": "Detailed Marketing Status (Lvl1)",
1321
- "folder": "Consolidated Marketing Status"
1322
- },
1323
- {
1324
- "type": "label",
1325
- "id": "label.consolidatedmarketingstatus.detailedmarketingstatuslvl1",
1326
- "reference": "attr.consolidatedmarketingstatus.detailedmarketingstatuslvl1",
1327
- "title": "Detailed Marketing Status (Lvl1)",
1328
- "gd_data_type": "VARCHAR(128)",
1329
- "gd_type": "GDC.text"
1330
- },
1331
- {
1332
- "type": "label",
1333
- "id": "label.consolidatedmarketingstatus.consolidatedmarketingstatus1.ordersort1",
1334
- "reference": "attr.consolidatedmarketingstatus.detailedmarketingstatuslvl1",
1335
- "title": "_Order Sort",
1336
- "gd_data_type": "INT",
1337
- "gd_type": "GDC.text"
1338
- },
1339
- {
1340
- "type": "attribute",
1341
- "id": "attr.consolidatedmarketingstatus.consolidatedmarketingstatus1",
1342
- "title": "Consolidated Marketing Status",
1343
- "folder": "Consolidated Marketing Status"
1344
- },
1345
- {
1346
- "type": "label",
1347
- "id": "label.consolidatedmarketingstatus.consolidatedmarketingstatus1",
1348
- "reference": "attr.consolidatedmarketingstatus.consolidatedmarketingstatus1",
1349
- "title": "Consolidated Marketing Status",
1350
- "gd_data_type": "VARCHAR(128)",
1351
- "gd_type": "GDC.text"
1352
- },
1353
- {
1354
- "type": "label",
1355
- "id": "label.consolidatedmarketingstatus.consolidatedmarketingstatus1.ordersort2",
1356
- "reference": "attr.consolidatedmarketingstatus.consolidatedmarketingstatus1",
1357
- "title": "Order Sort 2",
1358
- "gd_data_type": "INT",
1359
- "gd_type": "GDC.text"
1360
- },
1361
- {
1362
- "type": "attribute",
1363
- "id": "attr.consolidatedmarketingstatus.consolidatedsqltos2o",
1364
- "title": "Consolidated Status SQL to S2O",
1365
- "folder": "Consolidated Marketing Status"
1366
- },
1367
- {
1368
- "type": "label",
1369
- "id": "label.consolidatedmarketingstatus.consolidatedsqltos2o",
1370
- "reference": "attr.consolidatedmarketingstatus.consolidatedsqltos2o",
1371
- "title": "Consolidated Status SQL to S2O",
1372
- "gd_data_type": "VARCHAR(128)",
1373
- "gd_type": "GDC.text"
1374
- },
1375
- {
1376
- "type": "label",
1377
- "id": "label.consolidatedmarketingstatus.consolidatedsqltos2o.ordersortsqltos2o",
1378
- "reference": "attr.consolidatedmarketingstatus.consolidatedsqltos2o",
1379
- "title": "Order Sort SQL to S2O",
1380
- "gd_data_type": "VARCHAR(128)",
1381
- "gd_type": "GDC.text"
1382
- }
1383
- ]
1384
- },
1385
- {
1386
- "type": "dataset",
1387
- "title": "activity_owner",
1388
- "name": "dataset.activity_owner",
1389
- "id": "dataset.activity_owner",
1390
- "columns": [
1391
- {
1392
- "type": "anchor",
1393
- "id": "attr.activity_owner.id",
1394
- "title": "Act. Owner",
1395
- "folder": "Act. Owner"
1396
- },
1397
- {
1398
- "type": "label",
1399
- "id": "label.activity_owner.id.name",
1400
- "reference": "attr.activity_owner.id",
1401
- "title": "Act. Owner Name",
1402
- "gd_data_type": "VARCHAR(128)",
1403
- "gd_type": "GDC.text"
1404
- },
1405
- {
1406
- "type": "label",
1407
- "id": "label.activity_owner.id",
1408
- "reference": "attr.activity_owner.id",
1409
- "title": "Act. Owner",
1410
- "gd_data_type": "VARCHAR(128)",
1411
- "gd_type": "GDC.text"
1412
- },
1413
- {
1414
- "type": "label",
1415
- "id": "label.activity_owner.id.url",
1416
- "reference": "attr.activity_owner.id",
1417
- "title": "Act. Owner Url",
1418
- "gd_data_type": "VARCHAR(128)",
1419
- "gd_type": "GDC.link"
1420
- },
1421
- {
1422
- "type": "attribute",
1423
- "id": "attr.activity_owner.region",
1424
- "title": "Act. Owner Region",
1425
- "folder": "Act. Owner"
1426
- },
1427
- {
1428
- "type": "label",
1429
- "id": "label.activity_owner.region",
1430
- "reference": "attr.activity_owner.region",
1431
- "title": "Act. Owner Region",
1432
- "gd_data_type": "VARCHAR(128)",
1433
- "gd_type": "GDC.text"
1434
- },
1435
- {
1436
- "type": "attribute",
1437
- "id": "attr.activity_owner.department",
1438
- "title": "Act. Owner Department",
1439
- "folder": "Act. Owner"
1440
- },
1441
- {
1442
- "type": "label",
1443
- "id": "label.activity_owner.department",
1444
- "reference": "attr.activity_owner.department",
1445
- "title": "Act. Owner Department",
1446
- "gd_data_type": "VARCHAR(128)",
1447
- "gd_type": "GDC.text"
1448
- },
1449
- {
1450
- "type": "attribute",
1451
- "id": "attr.activity_owner.is_sdr",
1452
- "title": "is_sdr",
1453
- "folder": "Act. Owner"
1454
- },
1455
- {
1456
- "type": "label",
1457
- "id": "label.activity_owner.is_sdr",
1458
- "reference": "attr.activity_owner.is_sdr",
1459
- "title": "is_sdr",
1460
- "gd_data_type": "VARCHAR(128)",
1461
- "gd_type": "GDC.text"
1462
- }
1463
- ]
1464
- },
1465
- {
1466
- "type": "dataset",
1467
- "title": "Lead Source",
1468
- "name": "dataset.leadsource",
1469
- "id": "dataset.leadsource",
1470
- "columns": [
1471
- {
1472
- "type": "anchor",
1473
- "id": "attr.leadsource.leadsource",
1474
- "title": "Lead Source",
1475
- "folder": "Lead Sources"
1476
- },
1477
- {
1478
- "type": "label",
1479
- "id": "label.leadsource.leadsource",
1480
- "attribute": "attr.leadsource.leadsource",
1481
- "title": "Lead Source",
1482
- "gd_data_type": "VARCHAR(128)",
1483
- "gd_type": "GDC.text"
1484
- }
1485
- ]
1486
- },
1487
- {
1488
- "type": "dataset",
1489
- "title": "Win/Loss Reason",
1490
- "name": "dataset.winlossreason",
1491
- "id": "dataset.winlossreason",
1492
- "columns": [
1493
- {
1494
- "type": "anchor",
1495
- "id": "attr.winlossreason.winlossreason",
1496
- "title": "_Tech Win/Loss Reason",
1497
- "folder": "Win/Loss Reason"
1498
- },
1499
- {
1500
- "type": "label",
1501
- "id": "label.winlossreason.winlossreason",
1502
- "reference": "attr.winlossreason.winlossreason",
1503
- "title": "_Tech Win/Loss Reason",
1504
- "gd_data_type": "VARCHAR(128)",
1505
- "gd_type": "GDC.text"
1506
- },
1507
- {
1508
- "type": "attribute",
1509
- "id": "attr.winlossreason.winlossreason1",
1510
- "title": "Win/Loss Reason",
1511
- "folder": "Win/Loss Reason"
1512
- },
1513
- {
1514
- "type": "label",
1515
- "id": "label.winlossreason.winlossreason1",
1516
- "reference": "attr.winlossreason.winlossreason1",
1517
- "title": "Win/Loss Reason",
1518
- "gd_data_type": "VARCHAR(128)",
1519
- "gd_type": "GDC.text"
1520
- },
1521
- {
1522
- "type": "attribute",
1523
- "id": "attr.winlossreason.secondarywinlossreason",
1524
- "title": "Secondary Win/Loss Reason",
1525
- "folder": "Win/Loss Reason"
1526
- },
1527
- {
1528
- "type": "label",
1529
- "id": "label.winlossreason.secondarywinlossreason",
1530
- "reference": "attr.winlossreason.secondarywinlossreason",
1531
- "title": "Secondary Win/Loss Reason",
1532
- "gd_data_type": "VARCHAR(128)",
1533
- "gd_type": "GDC.text"
1534
- }
1535
- ]
1536
- },
1537
- {
1538
- "type": "dataset",
1539
- "title": "Product Line",
1540
- "name": "dataset.productline",
1541
- "id": "dataset.productline",
1542
- "columns": [
1543
- {
1544
- "type": "anchor",
1545
- "id": "attr.productline.productline",
1546
- "title": "_Product Line (ID)",
1547
- "folder": null
1548
- },
1549
- {
1550
- "type": "label",
1551
- "id": "label.productline.productline",
1552
- "reference": "attr.productline.productline",
1553
- "title": "_Product Line (ID)",
1554
- "gd_data_type": "VARCHAR(128)",
1555
- "gd_type": "GDC.text"
1556
- },
1557
- {
1558
- "type": "attribute",
1559
- "id": "attr.productline.productline1",
1560
- "title": "Product Line",
1561
- "folder": "Product"
1562
- },
1563
- {
1564
- "type": "label",
1565
- "id": "label.productline.productline1",
1566
- "reference": "attr.productline.productline1",
1567
- "title": "Product Line",
1568
- "gd_data_type": "VARCHAR(128)",
1569
- "gd_type": "GDC.text"
1570
- },
1571
- {
1572
- "type": "attribute",
1573
- "id": "attr.productline.prod",
1574
- "title": "Primary PL Solution",
1575
- "folder": "Product"
1576
- },
1577
- {
1578
- "type": "label",
1579
- "id": "label.productline.prod",
1580
- "reference": "attr.productline.prod",
1581
- "title": "Primary PL Solution",
1582
- "gd_data_type": "VARCHAR(128)",
1583
- "gd_type": "GDC.text"
1584
- },
1585
- {
1586
- "type": "attribute",
1587
- "id": "attr.productline.productorspecificsolution",
1588
- "title": "Product or Specific Solution",
1589
- "folder": "Product"
1590
- },
1591
- {
1592
- "type": "label",
1593
- "id": "label.productline.productorspecificsolution",
1594
- "reference": "attr.productline.productorspecificsolution",
1595
- "title": "Product or Specific Solution",
1596
- "gd_data_type": "VARCHAR(128)",
1597
- "gd_type": "GDC.text"
1598
- }
1599
- ]
1600
- },
1601
- {
1602
- "type": "dataset",
1603
- "title": "Lead Channel",
1604
- "name": "dataset.leadchannel",
1605
- "id": "dataset.leadchannel",
1606
- "columns": [
1607
- {
1608
- "type": "anchor",
1609
- "id": "attr.leadchannel.leadchannel",
1610
- "title": "Lead Channel",
1611
- "folder": null
1612
- },
1613
- {
1614
- "type": "label",
1615
- "id": "label.leadchannel.leadchannel",
1616
- "reference": "attr.leadchannel.leadchannel",
1617
- "title": "Lead Channel",
1618
- "gd_data_type": "VARCHAR(128)",
1619
- "gd_type": "GDC.text"
1620
- }
1621
- ]
1622
- },
1623
- {
1624
- "type": "dataset",
1625
- "title": "stage",
1626
- "name": "dataset.stage",
1627
- "id": "dataset.stage",
1628
- "columns": [
1629
- {
1630
- "type": "anchor",
1631
- "id": "attr.stage.id",
1632
- "title": "Stage",
1633
- "folder": "Stage"
1634
- },
1635
- {
1636
- "type": "label",
1637
- "id": "label.stage.id.name",
1638
- "reference": "attr.stage.id",
1639
- "title": "Stage Name",
1640
- "gd_data_type": "VARCHAR(128)",
1641
- "gd_type": "GDC.text"
1642
- },
1643
- {
1644
- "type": "label",
1645
- "id": "label.stage.id.order",
1646
- "reference": "attr.stage.id",
1647
- "title": "Order",
1648
- "gd_data_type": "INT",
1649
- "gd_type": "GDC.text"
1650
- },
1651
- {
1652
- "type": "label",
1653
- "id": "label.stage.id",
1654
- "reference": "attr.stage.id",
1655
- "title": "Stage",
1656
- "gd_data_type": "VARCHAR(128)",
1657
- "gd_type": "GDC.text"
1658
- },
1659
- {
1660
- "type": "attribute",
1661
- "id": "attr.stage.is_won",
1662
- "title": "Is Won?",
1663
- "folder": "Stage"
1664
- },
1665
- {
1666
- "type": "label",
1667
- "id": "label.stage.is_won",
1668
- "reference": "attr.stage.is_won",
1669
- "title": "Is Won?",
1670
- "gd_data_type": "VARCHAR(128)",
1671
- "gd_type": "GDC.text"
1672
- },
1673
- {
1674
- "type": "attribute",
1675
- "id": "attr.stage.status",
1676
- "title": "Status",
1677
- "folder": "Stage"
1678
- },
1679
- {
1680
- "type": "label",
1681
- "id": "label.stage.status",
1682
- "reference": "attr.stage.status",
1683
- "title": "Status",
1684
- "gd_data_type": "VARCHAR(128)",
1685
- "gd_type": "GDC.text"
1686
- },
1687
- {
1688
- "type": "attribute",
1689
- "id": "attr.stage.is_active",
1690
- "title": "Is Active?",
1691
- "folder": "Stage"
1692
- },
1693
- {
1694
- "type": "label",
1695
- "id": "label.stage.is_active",
1696
- "reference": "attr.stage.is_active",
1697
- "title": "Is Active?",
1698
- "gd_data_type": "VARCHAR(128)",
1699
- "gd_type": "GDC.text"
1700
- },
1701
- {
1702
- "type": "attribute",
1703
- "id": "attr.stage.is_closed",
1704
- "title": "Is Closed?",
1705
- "folder": "Stage"
1706
- },
1707
- {
1708
- "type": "label",
1709
- "id": "label.stage.is_closed",
1710
- "reference": "attr.stage.is_closed",
1711
- "title": "Is Closed?",
1712
- "gd_data_type": "VARCHAR(128)",
1713
- "gd_type": "GDC.text"
1714
- },
1715
- {
1716
- "type": "attribute",
1717
- "id": "attr.stage.issao",
1718
- "title": "Is SAO?",
1719
- "folder": "Stage",
1720
- "id": "label.stage.issao"
1721
- },
1722
- {
1723
- "type": "label",
1724
- "id": "label.stage.issao",
1725
- "reference": "attr.stage.issao",
1726
- "title": "Is SAO?",
1727
- "gd_data_type": "VARCHAR(128)",
1728
- "gd_type": "GDC.text"
1729
- },
1730
- {
1731
- "type": "attribute",
1732
- "id": "attr.stage.amconsolidatedstage",
1733
- "title": "AM Consolidated Stage",
1734
- "folder": "Stage"
1735
- },
1736
- {
1737
- "type": "label",
1738
- "id": "label.stage.amconsolidatedstage",
1739
- "reference": "attr.stage.amconsolidatedstage",
1740
- "title": "AM Consolidated Stage",
1741
- "gd_data_type": "VARCHAR(128)",
1742
- "gd_type": "GDC.text"
1743
- },
1744
- {
1745
- "type": "label",
1746
- "id": "label.stage.amconsolidatedstage.amstageorder",
1747
- "reference": "attr.stage.amconsolidatedstage",
1748
- "title": "_AM Stage Order",
1749
- "gd_data_type": "VARCHAR(128)",
1750
- "gd_type": "GDC.text"
1751
- }
1752
- ]
1753
- },
1754
- {
1755
- "type": "dataset",
1756
- "title": "opp_owner",
1757
- "name": "dataset.opp_owner",
1758
- "id": "dataset.opp_owner",
1759
- "columns": [
1760
- {
1761
- "type": "anchor",
1762
- "id": "attr.opp_owner.id",
1763
- "title": "Opp. Owner",
1764
- "folder": "Opp. Owner"
1765
- },
1766
- {
1767
- "type": "label",
1768
- "id": "label.opp_owner.id.name",
1769
- "reference": "attr.opp_owner.id",
1770
- "title": "Opp. Owner Name",
1771
- "gd_data_type": "VARCHAR(128)",
1772
- "gd_type": "GDC.text"
1773
- },
1774
- {
1775
- "type": "label",
1776
- "id": "label.opp_owner.id",
1777
- "reference": "attr.opp_owner.id",
1778
- "title": "Opp. Owner",
1779
- "gd_data_type": "VARCHAR(128)",
1780
- "gd_type": "GDC.text"
1781
- },
1782
- {
1783
- "type": "label",
1784
- "id": "label.opp_owner.id.oppownerpicture",
1785
- "reference": "attr.opp_owner.id",
1786
- "title": "Opp. Owner Picture",
1787
- "gd_data_type": "VARCHAR(128)",
1788
- "gd_type": "GDC.text"
1789
- },
1790
- {
1791
- "type": "label",
1792
- "id": "label.opp_owner.id.url",
1793
- "reference": "attr.opp_owner.id",
1794
- "title": "Opp. Owner Url",
1795
- "gd_data_type": "VARCHAR(128)",
1796
- "gd_type": "GDC.link"
1797
- },
1798
- {
1799
- "type": "attribute",
1800
- "id": "attr.opp_owner.region",
1801
- "title": "Opp. Owner Region",
1802
- "folder": "Opp. Owner"
1803
- },
1804
- {
1805
- "type": "label",
1806
- "id": "label.opp_owner.region",
1807
- "reference": "attr.opp_owner.region",
1808
- "title": "Opp. Owner Region",
1809
- "gd_data_type": "VARCHAR(128)",
1810
- "gd_type": "GDC.text"
1811
- },
1812
- {
1813
- "type": "attribute",
1814
- "id": "attr.opp_owner.department",
1815
- "title": "Opp. Owner Department",
1816
- "folder": "Opp. Owner"
1817
- },
1818
- {
1819
- "type": "label",
1820
- "id": "label.opp_owner.department",
1821
- "reference": "attr.opp_owner.department",
1822
- "title": "Opp. Owner Department",
1823
- "gd_data_type": "VARCHAR(128)",
1824
- "gd_type": "GDC.text"
1825
- },
1826
- {
1827
- "type": "date",
1828
- "dataset": "oppownerstart"
1829
- }
1830
- ]
1831
- },
1832
- {
1833
- "type": "dataset",
1834
- "title": "activity",
1835
- "name": "dataset.activity",
1836
- "id": "dataset.activity",
1837
- "columns": [
1838
- {
1839
- "type": "anchor",
1840
- "id": "attr.activity.id",
1841
- "title": "Activity",
1842
- "folder": "Activity"
1843
- },
1844
- {
1845
- "type": "label",
1846
- "id": "label.activity.id.subject",
1847
- "reference": "attr.activity.id",
1848
- "title": "Activity Subject",
1849
- "gd_data_type": "VARCHAR(128)",
1850
- "gd_type": "GDC.text"
1851
- },
1852
- {
1853
- "type": "label",
1854
- "id": "label.activity.id",
1855
- "reference": "attr.activity.id",
1856
- "title": "Activity",
1857
- "gd_data_type": "VARCHAR(128)",
1858
- "gd_type": "GDC.text"
1859
- },
1860
- {
1861
- "type": "label",
1862
- "id": "label.activity.id.url",
1863
- "reference": "attr.activity.id",
1864
- "title": "url",
1865
- "gd_data_type": "VARCHAR(128)",
1866
- "gd_type": "GDC.link"
1867
- },
1868
- {
1869
- "type": "attribute",
1870
- "id": "attr.activity.status",
1871
- "title": "Activity Status",
1872
- "folder": "Activity"
1873
- },
1874
- {
1875
- "type": "label",
1876
- "id": "label.activity.status",
1877
- "reference": "attr.activity.status",
1878
- "title": "Activity Status",
1879
- "gd_data_type": "VARCHAR(128)",
1880
- "gd_type": "GDC.text"
1881
- },
1882
- {
1883
- "type": "attribute",
1884
- "id": "attr.activity.type",
1885
- "title": "Activity Type",
1886
- "folder": "Activity"
1887
- },
1888
- {
1889
- "type": "label",
1890
- "id": "label.activity.type",
1891
- "reference": "attr.activity.type",
1892
- "title": "Activity Type",
1893
- "gd_data_type": "VARCHAR(128)",
1894
- "gd_type": "GDC.text"
1895
- }
1896
- ]
1897
- },
1898
- {
1899
- "type": "dataset",
1900
- "title": "opportunity",
1901
- "name": "dataset.opportunity",
1902
- "id": "dataset.opportunity",
1903
- "columns": [
1904
- {
1905
- "type": "anchor",
1906
- "id": "attr.opportunity.id",
1907
- "title": "Opportunity",
1908
- "folder": "Opportunity"
1909
- },
1910
- {
1911
- "type": "label",
1912
- "id": "label.opportunity.id.name",
1913
- "reference": "attr.opportunity.id",
1914
- "title": "Opp. Name",
1915
- "gd_data_type": "VARCHAR(128)",
1916
- "gd_type": "GDC.text"
1917
- },
1918
- {
1919
- "type": "label",
1920
- "id": "label.opportunity.id",
1921
- "reference": "attr.opportunity.id",
1922
- "title": "Opportunity",
1923
- "gd_data_type": "VARCHAR(128)",
1924
- "gd_type": "GDC.text"
1925
- },
1926
- {
1927
- "type": "label",
1928
- "id": "label.opportunity.id.url",
1929
- "reference": "attr.opportunity.id",
1930
- "title": "Opp. Url",
1931
- "gd_data_type": "VARCHAR(128)",
1932
- "gd_type": "GDC.link"
1933
- }
1934
- ]
1935
- },
1936
- {
1937
- "type": "dataset",
1938
- "title": "Booking Type",
1939
- "name": "dataset.bookingtype",
1940
- "id": "dataset.bookingtype",
1941
- "columns": [
1942
- {
1943
- "type": "anchor",
1944
- "id": "attr.bookingtype.booking_type_id",
1945
- "title": "Booking Type",
1946
- "folder": "Booking Type"
1947
- },
1948
- {
1949
- "type": "label",
1950
- "id": "label.bookingtype.booking_type_id",
1951
- "reference": "attr.bookingtype.booking_type_id",
1952
- "title": "Booking Type",
1953
- "gd_data_type": "VARCHAR(128)",
1954
- "gd_type": "GDC.text"
1955
- },
1956
- {
1957
- "type": "label",
1958
- "id": "label.bookingtype.booking_type_id.booking_type_nm",
1959
- "reference": "attr.bookingtype.booking_type_id",
1960
- "title": "Booking Type Nm",
1961
- "gd_data_type": "VARCHAR(128)",
1962
- "gd_type": "GDC.text"
1963
- }
1964
- ]
1965
- },
1966
- {
1967
- "type": "dataset",
1968
- "title": "forecast",
1969
- "name": "dataset.forecast",
1970
- "id": "dataset.forecast",
1971
- "columns": [
1972
- {
1973
- "type": "anchor",
1974
- "id": "attr.forecast.id",
1975
- "title": "Forecast Category",
1976
- "folder": "forecast"
1977
- },
1978
- {
1979
- "type": "label",
1980
- "id": "label.forecast.id.forecastcategoryordered",
1981
- "reference": "attr.forecast.id",
1982
- "title": "Forecast Category Ordered",
1983
- "gd_data_type": "VARCHAR(128)",
1984
- "gd_type": "GDC.text"
1985
- },
1986
- {
1987
- "type": "label",
1988
- "id": "label.forecast.id",
1989
- "reference": "attr.forecast.id",
1990
- "title": "Forecast Category",
1991
- "gd_data_type": "VARCHAR(128)",
1992
- "gd_type": "GDC.text"
1993
- }
1994
- ]
1995
- }
1996
- ],
1997
- "date_dimensions": [
1998
- {
1999
- "type": "date_dimension",
2000
- "id": "activity",
2001
- "title": "Activity"
2002
- },
2003
- {
2004
- "type": "date_dimension",
2005
- "id": "leadcreate",
2006
- "title": "Lead Created"
2007
- },
2008
- {
2009
- "type": "date_dimension",
2010
- "id": "snapshot",
2011
- "title": "Snapshot"
2012
- },
2013
- {
2014
- "type": "date_dimension",
2015
- "id": "oppownerstart",
2016
- "title": "Opp. Owner Start"
2017
- },
2018
- {
2019
- "type": "date_dimension",
2020
- "id": "oppclose",
2021
- "title": "Opp. Close"
2022
- },
2023
- {
2024
- "type": "date_dimension",
2025
- "id": "oppcreated",
2026
- "title": "Opp. Created"
2027
- },
2028
- {
2029
- "type": "date_dimension",
2030
- "id": "stage1plus",
2031
- "title": "SAO"
2032
- },
2033
- {
2034
- "type": "date_dimension",
2035
- "id": "firstcontactdate",
2036
- "title": "Contacted Date"
2037
- },
2038
- {
2039
- "type": "date_dimension",
2040
- "id": "previous_close_date",
2041
- "title": "Previous Opp. Close"
2042
- },
2043
- {
2044
- "type": "date_dimension",
2045
- "id": "mqldate",
2046
- "title": "MQL"
2047
- },
2048
- {
2049
- "type": "date_dimension",
2050
- "id": "s2o",
2051
- "title": "S2O"
2052
- },
2053
- {
2054
- "type": "date_dimension",
2055
- "id": "firstmeeting",
2056
- "title": "First Meeting"
2057
- },
2058
- {
2059
- "type": "date_dimension",
2060
- "id": "effectivecontractstart",
2061
- "title": "Effective Contract Start"
2062
- },
2063
- {
2064
- "type": "date_dimension",
2065
- "id": "laststage0plus",
2066
- "title": "Last Stage0Plus"
2067
- },
2068
- {
2069
- "type": "date_dimension",
2070
- "id": "effectivecontractend",
2071
- "title": "Effective Contract End"
2072
- },
2073
- {
2074
- "type": "date_dimension",
2075
- "id": "timeline",
2076
- "title": "Timeline"
2077
- }
2078
- ]
2079
- }