workarea-core 3.4.45 → 3.5.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (427) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +52 -0
  3. data/app/assets/javascripts/workarea/core/modules/duplicate_id.js +1 -5
  4. data/app/assets/javascripts/workarea/core/modules/style_guide_autocomplete_fields.js +9 -42
  5. data/app/assets/javascripts/workarea/core/modules/url.js +14 -0
  6. data/app/controllers/workarea/application_controller.rb +5 -1
  7. data/app/controllers/workarea/authentication.rb +15 -26
  8. data/app/controllers/workarea/authorization.rb +3 -3
  9. data/app/controllers/workarea/current_referrer.rb +1 -2
  10. data/app/controllers/workarea/current_release.rb +1 -1
  11. data/app/controllers/workarea/current_segments.rb +52 -0
  12. data/app/controllers/workarea/current_tracking.rb +45 -0
  13. data/app/controllers/workarea/http_caching.rb +30 -0
  14. data/app/controllers/workarea/impersonation.rb +18 -44
  15. data/app/helpers/workarea/schema_org_helper.rb +21 -0
  16. data/app/mailers/workarea/application_mailer.rb +2 -4
  17. data/app/middleware/workarea/application_middleware.rb +44 -0
  18. data/app/middleware/workarea/query_cache_middleware.rb +55 -0
  19. data/app/middleware/workarea/release_server_middleware.rb +1 -1
  20. data/app/models/workarea/application_document.rb +1 -1
  21. data/app/models/workarea/bulk_action/product_edit.rb +6 -6
  22. data/app/models/workarea/calculate_percent_change.rb +1 -1
  23. data/app/models/workarea/catalog/category.rb +0 -2
  24. data/app/models/workarea/catalog/product.rb +19 -2
  25. data/app/models/workarea/checkout/collect_payment.rb +10 -1
  26. data/app/models/workarea/checkout/fraud/analyzer.rb +44 -0
  27. data/app/models/workarea/checkout/fraud/no_decision_analyzer.rb +14 -0
  28. data/app/models/workarea/checkout/fraud/test_analyzer.rb +26 -0
  29. data/app/models/workarea/checkout.rb +18 -6
  30. data/app/models/workarea/configuration/admin.rb +25 -0
  31. data/app/models/workarea/configuration/params.rb +45 -0
  32. data/app/models/workarea/content/asset.rb +5 -18
  33. data/app/models/workarea/content/block.rb +8 -2
  34. data/app/models/workarea/content/block_draft.rb +7 -2
  35. data/app/models/workarea/content/block_type.rb +2 -2
  36. data/app/models/workarea/content/block_type_definition.rb +4 -0
  37. data/app/models/workarea/content/preset.rb +1 -1
  38. data/app/models/workarea/content.rb +12 -82
  39. data/app/models/workarea/data_file/csv.rb +6 -8
  40. data/app/models/workarea/data_file/import.rb +9 -1
  41. data/app/models/workarea/data_file/json.rb +1 -20
  42. data/app/models/workarea/data_file/operation.rb +0 -4
  43. data/app/models/workarea/data_file/tax_rates.rb +3 -0
  44. data/app/models/workarea/featured_products.rb +8 -0
  45. data/app/models/workarea/fulfillment/policies/base.rb +21 -0
  46. data/app/models/workarea/fulfillment/policies/download.rb +21 -0
  47. data/app/models/workarea/fulfillment/policies/ignore.rb +11 -0
  48. data/app/models/workarea/fulfillment/policies/ship.rb +15 -0
  49. data/app/models/workarea/fulfillment/sku.rb +72 -0
  50. data/app/models/workarea/fulfillment/token.rb +36 -0
  51. data/app/models/workarea/inquiry.rb +1 -2
  52. data/app/models/workarea/insights/customer_acquisition.rb +5 -9
  53. data/app/models/workarea/insights/trending_products.rb +2 -2
  54. data/app/models/workarea/insights/trending_searches.rb +2 -2
  55. data/app/models/workarea/inventory/collection.rb +30 -0
  56. data/app/models/workarea/inventory/collection_status.rb +40 -0
  57. data/app/models/workarea/metrics/affinity.rb +33 -0
  58. data/app/models/workarea/metrics/country_by_day.rb +4 -0
  59. data/app/models/workarea/metrics/product_by_day.rb +3 -0
  60. data/app/models/workarea/metrics/product_by_week.rb +2 -0
  61. data/app/models/workarea/metrics/product_for_last_week.rb +8 -12
  62. data/app/models/workarea/metrics/sales_by_day.rb +5 -0
  63. data/app/models/workarea/metrics/search_by_day.rb +1 -3
  64. data/app/models/workarea/metrics/search_for_last_week.rb +5 -11
  65. data/app/models/workarea/metrics/segment_by_day.rb +31 -0
  66. data/app/models/workarea/metrics/sku_by_day.rb +3 -0
  67. data/app/models/workarea/metrics/tender_by_day.rb +11 -0
  68. data/app/models/workarea/metrics/update_user_aggregations.rb +77 -0
  69. data/app/models/workarea/metrics/user.rb +73 -87
  70. data/app/models/workarea/navigation/breadcrumbs.rb +10 -1
  71. data/app/models/workarea/order/fraud_decision.rb +18 -0
  72. data/app/models/workarea/order/item.rb +5 -0
  73. data/app/models/workarea/order/queries.rb +1 -0
  74. data/app/models/workarea/order/status.rb +10 -1
  75. data/app/models/workarea/order.rb +47 -4
  76. data/app/models/workarea/payment/credit_card.rb +12 -0
  77. data/app/models/workarea/payment.rb +7 -2
  78. data/app/models/workarea/pricing/cache_key.rb +9 -3
  79. data/app/models/workarea/pricing/calculator.rb +5 -1
  80. data/app/models/workarea/pricing/calculators/tax_calculator.rb +32 -5
  81. data/app/models/workarea/pricing/discount/application_group.rb +8 -3
  82. data/app/models/workarea/pricing/discount/free_gift.rb +2 -1
  83. data/app/models/workarea/pricing/discount/redemption.rb +1 -1
  84. data/app/models/workarea/pricing/discount.rb +2 -3
  85. data/app/models/workarea/pricing/item_tax_applier.rb +41 -0
  86. data/app/models/workarea/pricing/price.rb +1 -0
  87. data/app/models/workarea/pricing/request.rb +11 -0
  88. data/app/models/workarea/pricing/sku.rb +1 -0
  89. data/app/models/workarea/pricing/tax_application.rb +21 -0
  90. data/app/models/workarea/pricing/tax_applier.rb +12 -15
  91. data/app/models/workarea/pricing/unsupported_segmentation.rb +22 -0
  92. data/app/models/workarea/product_rule.rb +5 -0
  93. data/app/models/workarea/releasable.rb +83 -89
  94. data/app/models/workarea/release/activation.rb +45 -0
  95. data/app/models/workarea/release/changes.rb +45 -0
  96. data/app/models/workarea/release/changeset.rb +42 -52
  97. data/app/models/workarea/release/preview.rb +28 -0
  98. data/app/models/workarea/release/status.rb +2 -24
  99. data/app/models/workarea/release.rb +72 -99
  100. data/app/models/workarea/release_session.rb +11 -11
  101. data/app/models/workarea/search/admin/catalog_product.rb +1 -2
  102. data/app/models/workarea/search/admin/fulfillment_sku.rb +27 -0
  103. data/app/models/workarea/search/admin/order.rb +1 -1
  104. data/app/models/workarea/search/admin/pricing_discount.rb +1 -1
  105. data/app/models/workarea/search/admin/release.rb +1 -4
  106. data/app/models/workarea/search/admin/segment.rb +19 -0
  107. data/app/models/workarea/search/admin.rb +17 -39
  108. data/app/models/workarea/search/order_text.rb +23 -6
  109. data/app/models/workarea/search/storefront/category_query.rb +152 -0
  110. data/app/models/workarea/search/storefront/product/categories.rb +11 -45
  111. data/app/models/workarea/search/storefront.rb +33 -29
  112. data/app/models/workarea/segment/first_time_customer.rb +8 -0
  113. data/app/models/workarea/segment/first_time_visitor.rb +12 -0
  114. data/app/models/workarea/segment/life_cycle.rb +44 -0
  115. data/app/models/workarea/segment/loyal_customer.rb +12 -0
  116. data/app/models/workarea/segment/returning_customer.rb +14 -0
  117. data/app/models/workarea/segment/returning_visitor.rb +12 -0
  118. data/app/models/workarea/segment/rules/base.rb +16 -0
  119. data/app/models/workarea/segment/rules/browser_info.rb +29 -0
  120. data/app/models/workarea/segment/rules/geolocation.rb +29 -0
  121. data/app/models/workarea/segment/rules/geolocation_option.rb +53 -0
  122. data/app/models/workarea/segment/rules/last_order.rb +14 -0
  123. data/app/models/workarea/segment/rules/logged_in.rb +13 -0
  124. data/app/models/workarea/segment/rules/orders.rb +17 -0
  125. data/app/models/workarea/segment/rules/revenue.rb +17 -0
  126. data/app/models/workarea/segment/rules/sessions.rb +17 -0
  127. data/app/models/workarea/segment/rules/tags.rb +14 -0
  128. data/app/models/workarea/segment/rules/traffic_referrer.rb +18 -0
  129. data/app/models/workarea/segment.rb +54 -0
  130. data/app/models/workarea/segmentable.rb +66 -0
  131. data/app/models/workarea/sort.rb +14 -2
  132. data/app/models/workarea/tax/rate.rb +35 -1
  133. data/app/models/workarea/user/authorization.rb +19 -13
  134. data/app/models/workarea/user/login.rb +4 -0
  135. data/app/models/workarea/user/password_reset.rb +1 -3
  136. data/app/queries/workarea/categorization.rb +3 -3
  137. data/app/queries/workarea/featured_categorization.rb +53 -0
  138. data/app/queries/workarea/order_cancellation_metrics.rb +155 -0
  139. data/app/queries/workarea/order_item_details.rb +16 -3
  140. data/app/queries/workarea/order_metrics.rb +32 -3
  141. data/app/queries/workarea/product_primary_navigation.rb +13 -2
  142. data/app/queries/workarea/product_releases.rb +38 -0
  143. data/app/queries/workarea/recommendation/user_activity_based.rb +14 -6
  144. data/app/queries/workarea/reports/average_order_value.rb +1 -1
  145. data/app/queries/workarea/reports/customers.rb +14 -11
  146. data/app/queries/workarea/reports/first_time_vs_returning_sales.rb +1 -1
  147. data/app/queries/workarea/reports/group_by_time.rb +13 -17
  148. data/app/queries/workarea/reports/sales_by_category.rb +1 -1
  149. data/app/queries/workarea/reports/sales_by_country.rb +10 -3
  150. data/app/queries/workarea/reports/sales_by_discount.rb +1 -1
  151. data/app/queries/workarea/reports/sales_by_menu.rb +1 -1
  152. data/app/queries/workarea/reports/sales_by_product.rb +39 -4
  153. data/app/queries/workarea/reports/sales_by_sku.rb +39 -4
  154. data/app/queries/workarea/reports/sales_by_tender.rb +42 -0
  155. data/app/queries/workarea/reports/sales_by_traffic_referrer.rb +1 -1
  156. data/app/queries/workarea/reports/sales_over_time.rb +10 -3
  157. data/app/queries/workarea/reports/searches.rb +1 -1
  158. data/app/queries/workarea/reports/searches_over_time.rb +1 -1
  159. data/app/queries/workarea/reports/searches_without_results_over_time.rb +1 -1
  160. data/app/queries/workarea/search/admin_fulfillment_skus.rb +20 -0
  161. data/app/queries/workarea/search/admin_releases.rb +1 -4
  162. data/app/queries/workarea/search/admin_search.rb +0 -4
  163. data/app/queries/workarea/search/admin_segments.rb +16 -0
  164. data/app/queries/workarea/search/admin_sorting.rb +1 -1
  165. data/app/queries/workarea/search/pagination.rb +1 -4
  166. data/app/queries/workarea/search/product_display_rules.rb +40 -8
  167. data/app/queries/workarea/search/product_entries.rb +15 -1
  168. data/app/queries/workarea/search/product_search.rb +4 -1
  169. data/app/queries/workarea/search/storefront_search/exact_matches.rb +1 -1
  170. data/app/queries/workarea/search/storefront_search/response.rb +6 -4
  171. data/app/queries/workarea/search/storefront_search.rb +5 -4
  172. data/app/seeds/workarea/assets_seeds.rb +2 -1
  173. data/app/seeds/workarea/insights_seeds.rb +0 -23
  174. data/app/seeds/workarea/orders_seeds.rb +7 -6
  175. data/app/seeds/workarea/products_seeds.rb +2 -0
  176. data/app/seeds/workarea/segments_seeds.rb +8 -0
  177. data/app/seeds/workarea/tax_seeds.rb +3 -3
  178. data/app/services/workarea/cancel_order.rb +8 -3
  179. data/app/services/workarea/copy_order.rb +6 -0
  180. data/app/services/workarea/create_fulfillment.rb +5 -3
  181. data/app/services/workarea/direct_upload.rb +11 -19
  182. data/app/services/workarea/hash_update.rb +1 -18
  183. data/app/services/workarea/packaging.rb +1 -1
  184. data/app/services/workarea/save_publishing.rb +5 -1
  185. data/app/workers/sidekiq/callbacks.rb +4 -52
  186. data/app/workers/sidekiq/callbacks_worker.rb +4 -6
  187. data/app/workers/workarea/bulk_index_admin.rb +2 -2
  188. data/app/workers/workarea/bulk_index_products.rb +6 -5
  189. data/app/workers/workarea/bulk_index_searches.rb +5 -5
  190. data/app/workers/workarea/deactivate_stale_discounts.rb +3 -3
  191. data/app/workers/workarea/generate_insights.rb +1 -1
  192. data/app/workers/workarea/index_admin_search.rb +1 -0
  193. data/app/workers/workarea/index_categorization.rb +4 -7
  194. data/app/workers/workarea/index_category.rb +2 -1
  195. data/app/workers/workarea/index_category_changes.rb +11 -6
  196. data/app/workers/workarea/index_fulfillment_changes.rb +2 -1
  197. data/app/workers/workarea/index_help.rb +2 -1
  198. data/app/workers/workarea/index_page.rb +2 -1
  199. data/app/workers/workarea/index_payment_transactions.rb +2 -1
  200. data/app/workers/workarea/index_product.rb +4 -4
  201. data/app/workers/workarea/index_product_children.rb +4 -3
  202. data/app/workers/workarea/index_product_rule.rb +3 -2
  203. data/app/workers/workarea/index_search_customizations.rb +3 -2
  204. data/app/workers/workarea/index_skus.rb +5 -6
  205. data/app/workers/workarea/keep_product_index_fresh.rb +3 -5
  206. data/app/workers/workarea/process_import.rb +3 -3
  207. data/app/workers/workarea/process_search_recommendations.rb +5 -9
  208. data/app/workers/workarea/publish_release.rb +1 -0
  209. data/app/workers/workarea/save_metrics.rb +116 -0
  210. data/app/workers/workarea/save_order_cancellation_metrics.rb +35 -0
  211. data/app/workers/workarea/save_order_metrics.rb +10 -74
  212. data/app/workers/workarea/status_reporter.rb +2 -4
  213. data/app/workers/workarea/synchronize_user_metrics.rb +17 -0
  214. data/app/workers/workarea/update_payment_profile_email.rb +22 -0
  215. data/app/workers/workarea/verify_scheduled_releases.rb +4 -11
  216. data/config/initializers/00_configuration.rb +185 -0
  217. data/config/initializers/02_assets.rb +1 -0
  218. data/config/initializers/05_scheduled_jobs.rb +0 -7
  219. data/config/initializers/10_rack_middleware.rb +2 -5
  220. data/config/initializers/11_payment.rb +4 -0
  221. data/config/initializers/13_rack_attack.rb +2 -4
  222. data/config/initializers/14_content_block_types.rb +16 -16
  223. data/config/initializers/15_endpoint_monitoring.rb +3 -6
  224. data/config/initializers/{21_premailer.rb → 24_premailer.rb} +1 -0
  225. data/config/initializers/{20_i18n_js.rb → 25_i18n_js.rb} +0 -0
  226. data/config/locales/en.yml +13 -24
  227. data/lib/generators/workarea/content_block_type/templates/initializer.rb +1 -1
  228. data/lib/generators/workarea/install/USAGE +0 -1
  229. data/lib/generators/workarea/install/install_generator.rb +0 -21
  230. data/lib/generators/workarea/install/templates/initializer.rb.erb +1 -1
  231. data/lib/tasks/insights.rake +1 -0
  232. data/lib/tasks/migrate.rake +106 -0
  233. data/lib/tasks/search.rake +17 -19
  234. data/lib/tasks/tests.rake +1 -1
  235. data/lib/workarea/cache.rb +6 -35
  236. data/lib/workarea/changelog.rake +2 -2
  237. data/lib/workarea/configuration/administrable/definition.rb +42 -0
  238. data/lib/workarea/configuration/administrable/field.rb +79 -0
  239. data/lib/workarea/configuration/administrable/fieldset.rb +44 -0
  240. data/lib/workarea/configuration/administrable_options.rb +24 -0
  241. data/lib/workarea/configuration/cache_store.rb +3 -1
  242. data/lib/workarea/configuration/content_blocks.rb +17 -0
  243. data/lib/workarea/configuration/mongoid.rb +1 -4
  244. data/lib/workarea/configuration/session.rb +36 -0
  245. data/lib/workarea/configuration/sidekiq.rb +3 -1
  246. data/lib/workarea/configuration.rb +121 -148
  247. data/lib/workarea/core/engine.rb +3 -58
  248. data/lib/workarea/core.rb +15 -11
  249. data/lib/workarea/elasticsearch/document.rb +8 -15
  250. data/lib/workarea/ext/freedom_patches/action_view_cache_helper.rb +4 -6
  251. data/lib/workarea/ext/freedom_patches/active_support_duration.rb +14 -0
  252. data/lib/workarea/ext/freedom_patches/money.rb +11 -0
  253. data/lib/workarea/ext/freedom_patches/premailer.rb +6 -0
  254. data/lib/workarea/ext/freedom_patches/string.rb +19 -4
  255. data/lib/workarea/ext/mongoid/find_ordered.rb +2 -2
  256. data/lib/workarea/ext/mongoid/lookup_hash.rb +30 -0
  257. data/lib/workarea/geolocation.rb +24 -6
  258. data/lib/workarea/routes_constraints/super_admin.rb +1 -1
  259. data/lib/workarea/version.rb +3 -4
  260. data/lib/workarea/visit.rb +92 -0
  261. data/lib/workarea/warnings.rb +95 -0
  262. data/lib/workarea.rb +102 -3
  263. data/test/dummy/config/initializers/session_store.rb +1 -1
  264. data/test/fixtures/tax_rates.csv +3 -3
  265. data/test/generators/workarea/content_block_type_generator_test.rb +1 -1
  266. data/test/generators/workarea/install_generator_test.rb +0 -13
  267. data/test/integration/workarea/authentication_test.rb +27 -4
  268. data/test/integration/workarea/authorization_test.rb +5 -0
  269. data/test/integration/workarea/cache_varies_integration_test.rb +21 -23
  270. data/test/integration/workarea/monitoring_integration_test.rb +5 -10
  271. data/test/javascripts/duplicate_id_spec.js +1 -7
  272. data/test/javascripts/fixtures/{duplicate_id_fail.html.haml → duplicate_id.html.haml} +0 -1
  273. data/test/javascripts/form_submitting_controls_spec.js +0 -1
  274. data/test/lib/workarea/asset_endpoints/favicons_test.rb +11 -13
  275. data/test/lib/workarea/configuration/administrable/definition_test.rb +71 -0
  276. data/test/lib/workarea/configuration/administrable/field_test.rb +128 -0
  277. data/test/lib/workarea/configuration/administrable/fieldset_test.rb +78 -0
  278. data/test/lib/workarea/configuration/configuration_test.rb +20 -0
  279. data/test/lib/workarea/elasticsearch/document_test.rb +0 -20
  280. data/test/lib/workarea/elasticsearch/query_cache_test.rb +7 -7
  281. data/test/lib/workarea/ext/freedom_patches/money_test.rb +11 -0
  282. data/test/lib/workarea/ext/mongoid/lookup_hash_test.rb +86 -0
  283. data/test/lib/workarea/geolocation_test.rb +20 -0
  284. data/test/mailers/workarea/application_mailer_test.rb +1 -11
  285. data/test/middleware/workarea/query_cache_middleware_test.rb +55 -0
  286. data/test/models/workarea/checkout/collect_payment_test.rb +14 -6
  287. data/test/models/workarea/checkout_test.rb +31 -57
  288. data/test/models/workarea/configuration/params_test.rb +37 -0
  289. data/test/models/workarea/data_file/csv_test.rb +8 -73
  290. data/test/models/workarea/data_file/import_test.rb +31 -0
  291. data/test/models/workarea/data_file/json_test.rb +6 -48
  292. data/test/models/workarea/data_file/tax_test.rb +3 -0
  293. data/test/models/workarea/fulfillment/policies/download_test.rb +39 -0
  294. data/test/models/workarea/fulfillment/sku_test.rb +54 -0
  295. data/test/models/workarea/insights/best_customers_test.rb +5 -2
  296. data/test/models/workarea/insights/best_full_price_customers_test.rb +5 -2
  297. data/test/models/workarea/insights/customer_acquisition_test.rb +1 -1
  298. data/test/models/workarea/insights/customers_at_risk_test.rb +1 -1
  299. data/test/models/workarea/insights/low_aov_customers_test.rb +1 -1
  300. data/test/models/workarea/inventory/collection_test.rb +75 -0
  301. data/test/models/workarea/metrics/affinity_test.rb +85 -0
  302. data/test/models/workarea/metrics/product_by_week_test.rb +27 -31
  303. data/test/models/workarea/metrics/search_by_day_test.rb +3 -0
  304. data/test/models/workarea/metrics/search_by_week_test.rb +27 -31
  305. data/test/models/workarea/metrics/update_user_aggregations_test.rb +62 -0
  306. data/test/models/workarea/metrics/user_test.rb +146 -63
  307. data/test/models/workarea/navigation/breadcrumbs_test.rb +12 -2
  308. data/test/models/workarea/order/queries_test.rb +2 -0
  309. data/test/models/workarea/order_test.rb +44 -0
  310. data/test/models/workarea/payment/address_test.rb +109 -111
  311. data/test/models/workarea/payment/credit_card_integration_test.rb +0 -52
  312. data/test/models/workarea/payment/credit_card_test.rb +5 -0
  313. data/test/models/workarea/pricing/cache_key_test.rb +7 -1
  314. data/test/models/workarea/pricing/calculators/tax_calculator_test.rb +41 -1
  315. data/test/models/workarea/pricing/discount/collection_test.rb +27 -29
  316. data/test/models/workarea/pricing/discount_test.rb +22 -24
  317. data/test/models/workarea/pricing/item_tax_applier_test.rb +83 -0
  318. data/test/models/workarea/pricing/price_test.rb +9 -0
  319. data/test/models/workarea/pricing/request_test.rb +13 -0
  320. data/test/models/workarea/pricing/sku_test.rb +9 -0
  321. data/test/models/workarea/releasable_active_test.rb +113 -0
  322. data/test/models/workarea/releasable_test.rb +69 -120
  323. data/test/models/workarea/release/changeset_test.rb +41 -0
  324. data/test/models/workarea/release_jobs_test.rb +52 -0
  325. data/test/models/workarea/release_previewing_test.rb +43 -0
  326. data/test/models/workarea/release_test.rb +59 -153
  327. data/test/models/workarea/search/admin/content_asset_test.rb +26 -28
  328. data/test/models/workarea/search/order_text_test.rb +35 -0
  329. data/test/models/workarea/search/storefront/category_query_test.rb +81 -0
  330. data/test/models/workarea/search/storefront/product/categories_test.rb +10 -70
  331. data/test/models/workarea/search/storefront/product_test.rb +10 -11
  332. data/test/models/workarea/search/storefront_test.rb +1 -13
  333. data/test/models/workarea/segment/life_cycle_test.rb +24 -0
  334. data/test/models/workarea/segment/rules/browser_info_test.rb +33 -0
  335. data/test/models/workarea/segment/rules/geolocation_option_test.rb +16 -0
  336. data/test/models/workarea/segment/rules/geolocation_test.rb +49 -0
  337. data/test/models/workarea/segment/rules/last_order_test.rb +32 -0
  338. data/test/models/workarea/segment/rules/logged_in_test.rb +25 -0
  339. data/test/models/workarea/segment/rules/orders_test.rb +59 -0
  340. data/test/models/workarea/segment/rules/revenue_test.rb +59 -0
  341. data/test/models/workarea/segment/rules/sessions_test.rb +26 -0
  342. data/test/models/workarea/segment/rules/tags_test.rb +27 -0
  343. data/test/models/workarea/segment/rules/traffic_referrer_test.rb +31 -0
  344. data/test/models/workarea/segment_test.rb +80 -0
  345. data/test/models/workarea/segmentable_test.rb +74 -0
  346. data/test/models/workarea/shipping/address_test.rb +109 -111
  347. data/test/models/workarea/shipping/sku_test.rb +8 -12
  348. data/test/models/workarea/user/password_reset_test.rb +4 -12
  349. data/test/models/workarea/user_test.rb +13 -10
  350. data/test/queries/workarea/admin_search_query_wrapper_test.rb +21 -25
  351. data/test/queries/workarea/categorization_test.rb +49 -0
  352. data/test/queries/workarea/featured_categorization_test.rb +66 -0
  353. data/test/queries/workarea/order_cancellation_metrics_test.rb +203 -0
  354. data/test/queries/workarea/order_item_details_test.rb +17 -0
  355. data/test/queries/workarea/order_metrics_test.rb +12 -0
  356. data/test/queries/workarea/product_releases_test.rb +56 -0
  357. data/test/queries/workarea/recommendation/searches_test.rb +3 -3
  358. data/test/queries/workarea/recommendation/user_activity_based_test.rb +4 -4
  359. data/test/queries/workarea/reports/customers_test.rb +12 -8
  360. data/test/queries/workarea/reports/report_test.rb +4 -6
  361. data/test/queries/workarea/reports/sales_by_country_test.rb +18 -3
  362. data/test/queries/workarea/reports/sales_by_product_test.rb +28 -8
  363. data/test/queries/workarea/reports/sales_by_sku_test.rb +28 -8
  364. data/test/queries/workarea/reports/sales_by_tender_test.rb +100 -0
  365. data/test/queries/workarea/reports/sales_by_traffic_referrer_test.rb +6 -6
  366. data/test/queries/workarea/search/admin_releases_test.rb +1 -26
  367. data/test/queries/workarea/search/admin_search_test.rb +0 -10
  368. data/test/queries/workarea/search/admin_users_test.rb +2 -2
  369. data/test/queries/workarea/search/category_browse_test.rb +53 -0
  370. data/test/queries/workarea/search/facet_sorting/size_test.rb +11 -13
  371. data/test/queries/workarea/search/pagination_test.rb +9 -26
  372. data/test/queries/workarea/search/product_entries_test.rb +27 -0
  373. data/test/queries/workarea/search/product_search_test.rb +0 -16
  374. data/test/queries/workarea/search/storefront_search/response_test.rb +26 -0
  375. data/test/queries/workarea/search/storefront_search_test.rb +34 -36
  376. data/test/services/workarea/cancel_order_test.rb +27 -13
  377. data/test/services/workarea/copy_order_test.rb +17 -0
  378. data/test/services/workarea/direct_upload_test.rb +1 -46
  379. data/test/services/workarea/export_report_test.rb +41 -45
  380. data/test/services/workarea/hash_update_test.rb +12 -12
  381. data/test/services/workarea/packaging_test.rb +9 -11
  382. data/test/services/workarea/save_publishing_test.rb +23 -0
  383. data/test/workers/sidekiq/callbacks_test.rb +0 -22
  384. data/test/workers/workarea/deactivate_stale_discounts_test.rb +2 -2
  385. data/test/workers/workarea/index_category_changes_test.rb +5 -7
  386. data/test/workers/workarea/keep_product_index_fresh_test.rb +1 -1
  387. data/test/workers/workarea/process_import_test.rb +0 -6
  388. data/test/workers/workarea/process_search_recommendations_test.rb +4 -5
  389. data/test/workers/workarea/status_reporter_test.rb +2 -1
  390. data/test/workers/workarea/synchronize_user_metrics_test.rb +57 -0
  391. data/test/workers/workarea/update_payment_profile_email_test.rb +27 -0
  392. data/test/workers/workarea/verify_scheduled_releases_test.rb +0 -26
  393. data/workarea-core.gemspec +13 -11
  394. metadata +196 -92
  395. data/app/assets/javascripts/workarea/core/templates/ui_menu_item.jst.ejs +0 -10
  396. data/app/controllers/workarea/admin_guest_browsing.rb +0 -54
  397. data/app/middleware/workarea/rack_cache_config_middleware.rb +0 -19
  398. data/app/queries/workarea/search/search_suggestions.rb +0 -43
  399. data/app/workers/workarea/bust_discount_cache.rb +0 -16
  400. data/app/workers/workarea/clean_user_activity.rb +0 -11
  401. data/app/workers/workarea/undo_release.rb +0 -15
  402. data/app/workers/workarea/update_email.rb +0 -33
  403. data/lib/generators/workarea/docker/USAGE +0 -16
  404. data/lib/generators/workarea/docker/docker_generator.rb +0 -61
  405. data/lib/generators/workarea/docker/templates/.env.erb +0 -6
  406. data/lib/generators/workarea/docker/templates/Dockerfile.erb +0 -48
  407. data/lib/generators/workarea/docker/templates/docker-compose.yml.erb +0 -72
  408. data/lib/generators/workarea/docker/templates/docker-entrypoint.sh.erb +0 -6
  409. data/lib/generators/workarea/docker/templates/docker-sync.yml.erb +0 -8
  410. data/lib/generators/workarea/docker/templates/docker-wait.sh +0 -11
  411. data/lib/generators/workarea/docker/templates/docker.env +0 -16
  412. data/lib/generators/workarea/docker/templates/docker_init.rb.erb +0 -29
  413. data/lib/workarea/configuration/headless_chrome.rb +0 -42
  414. data/lib/workarea/configuration/puma.rb +0 -37
  415. data/lib/workarea/ext/freedom_patches/i18n_js.rb +0 -27
  416. data/lib/workarea/ext/freedom_patches/mongoid_localized_defaults.rb +0 -25
  417. data/lib/workarea/ext/jbuilder/jbuilder_cache.rb +0 -29
  418. data/lib/workarea/ext/referer_parser/parser.decorator +0 -43
  419. data/lib/workarea/queues_pauser.rb +0 -26
  420. data/lib/workarea/robots.rb +0 -9
  421. data/test/generators/workarea/docker_generator_test.rb +0 -156
  422. data/test/javascripts/fixtures/duplicate_id_pass.html.haml +0 -2
  423. data/test/lib/workarea/ext/freedom_patches/mongoid_localized_defaults_test.rb +0 -25
  424. data/test/lib/workarea/ext/referer_parser/parser_test.rb +0 -20
  425. data/test/queries/workarea/search/search_suggestions_test.rb +0 -29
  426. data/test/workers/workarea/undo_release_test.rb +0 -23
  427. data/test/workers/workarea/update_email_test.rb +0 -39
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.45
4
+ version: 3.5.0.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-20 00:00:00.000000000 Z
11
+ date: 2019-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 6.4.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: bson
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 4.3.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 4.3.0
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: bcrypt
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +150,20 @@ dependencies:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
152
  version: 0.1.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: mongoid-encrypted
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 1.0.0
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 1.0.0
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: elasticsearch
141
169
  requirement: !ruby/object:Gem::Requirement
@@ -156,14 +184,14 @@ dependencies:
156
184
  requirements:
157
185
  - - "~>"
158
186
  - !ruby/object:Gem::Version
159
- version: 1.2.1
187
+ version: 0.17.0
160
188
  type: :runtime
161
189
  prerelease: false
162
190
  version_requirements: !ruby/object:Gem::Requirement
163
191
  requirements:
164
192
  - - "~>"
165
193
  - !ruby/object:Gem::Version
166
- version: 1.2.1
194
+ version: 0.17.0
167
195
  - !ruby/object:Gem::Dependency
168
196
  name: kaminari-mongoid
169
197
  requirement: !ruby/object:Gem::Requirement
@@ -268,42 +296,28 @@ dependencies:
268
296
  requirements:
269
297
  - - "~>"
270
298
  - !ruby/object:Gem::Version
271
- version: 1.6.3
272
- type: :runtime
273
- prerelease: false
274
- version_requirements: !ruby/object:Gem::Requirement
275
- requirements:
276
- - - "~>"
277
- - !ruby/object:Gem::Version
278
- version: 1.6.3
279
- - !ruby/object:Gem::Dependency
280
- name: redis-rails
281
- requirement: !ruby/object:Gem::Requirement
282
- requirements:
283
- - - "~>"
284
- - !ruby/object:Gem::Version
285
- version: 5.0.0
299
+ version: 1.4.4
286
300
  type: :runtime
287
301
  prerelease: false
288
302
  version_requirements: !ruby/object:Gem::Requirement
289
303
  requirements:
290
304
  - - "~>"
291
305
  - !ruby/object:Gem::Version
292
- version: 5.0.0
306
+ version: 1.4.4
293
307
  - !ruby/object:Gem::Dependency
294
308
  name: redis-rack-cache
295
309
  requirement: !ruby/object:Gem::Requirement
296
310
  requirements:
297
311
  - - "~>"
298
312
  - !ruby/object:Gem::Version
299
- version: 2.2.0
313
+ version: 2.0.2
300
314
  type: :runtime
301
315
  prerelease: false
302
316
  version_requirements: !ruby/object:Gem::Requirement
303
317
  requirements:
304
318
  - - "~>"
305
319
  - !ruby/object:Gem::Version
306
- version: 2.2.0
320
+ version: 2.0.2
307
321
  - !ruby/object:Gem::Dependency
308
322
  name: easymon
309
323
  requirement: !ruby/object:Gem::Requirement
@@ -632,14 +646,14 @@ dependencies:
632
646
  requirements:
633
647
  - - "~>"
634
648
  - !ruby/object:Gem::Version
635
- version: 4.4.0
649
+ version: 4.3.1
636
650
  type: :runtime
637
651
  prerelease: false
638
652
  version_requirements: !ruby/object:Gem::Requirement
639
653
  requirements:
640
654
  - - "~>"
641
655
  - !ruby/object:Gem::Version
642
- version: 4.4.0
656
+ version: 4.3.1
643
657
  - !ruby/object:Gem::Dependency
644
658
  name: jquery-ui-rails
645
659
  requirement: !ruby/object:Gem::Requirement
@@ -716,28 +730,28 @@ dependencies:
716
730
  requirements:
717
731
  - - "~>"
718
732
  - !ruby/object:Gem::Version
719
- version: 0.6.0.beta2
733
+ version: 0.6.x
720
734
  type: :runtime
721
735
  prerelease: false
722
736
  version_requirements: !ruby/object:Gem::Requirement
723
737
  requirements:
724
738
  - - "~>"
725
739
  - !ruby/object:Gem::Version
726
- version: 0.6.0.beta2
740
+ version: 0.6.x
727
741
  - !ruby/object:Gem::Dependency
728
742
  name: rack-attack
729
743
  requirement: !ruby/object:Gem::Requirement
730
744
  requirements:
731
745
  - - "~>"
732
746
  - !ruby/object:Gem::Version
733
- version: 6.3.1
747
+ version: 5.0.1
734
748
  type: :runtime
735
749
  prerelease: false
736
750
  version_requirements: !ruby/object:Gem::Requirement
737
751
  requirements:
738
752
  - - "~>"
739
753
  - !ruby/object:Gem::Version
740
- version: 6.3.1
754
+ version: 5.0.1
741
755
  - !ruby/object:Gem::Dependency
742
756
  name: jquery-livetype-rails
743
757
  requirement: !ruby/object:Gem::Requirement
@@ -758,20 +772,14 @@ dependencies:
758
772
  requirements:
759
773
  - - "~>"
760
774
  - !ruby/object:Gem::Version
761
- version: 3.5.1
762
- - - ">="
763
- - !ruby/object:Gem::Version
764
- version: 3.5.1
775
+ version: 3.4.0
765
776
  type: :runtime
766
777
  prerelease: false
767
778
  version_requirements: !ruby/object:Gem::Requirement
768
779
  requirements:
769
780
  - - "~>"
770
781
  - !ruby/object:Gem::Version
771
- version: 3.5.1
772
- - - ">="
773
- - !ruby/object:Gem::Version
774
- version: 3.5.1
782
+ version: 3.4.0
775
783
  - !ruby/object:Gem::Dependency
776
784
  name: jquery-unique-clone-rails
777
785
  requirement: !ruby/object:Gem::Requirement
@@ -856,6 +864,20 @@ dependencies:
856
864
  - - "~>"
857
865
  - !ruby/object:Gem::Version
858
866
  version: 2.7.0
867
+ - !ruby/object:Gem::Dependency
868
+ name: tribute
869
+ requirement: !ruby/object:Gem::Requirement
870
+ requirements:
871
+ - - "~>"
872
+ - !ruby/object:Gem::Version
873
+ version: 3.6.0.0
874
+ type: :runtime
875
+ prerelease: false
876
+ version_requirements: !ruby/object:Gem::Requirement
877
+ requirements:
878
+ - - "~>"
879
+ - !ruby/object:Gem::Version
880
+ version: 3.6.0.0
859
881
  - !ruby/object:Gem::Dependency
860
882
  name: turbolinks
861
883
  requirement: !ruby/object:Gem::Requirement
@@ -888,22 +910,22 @@ dependencies:
888
910
  name: minitest
889
911
  requirement: !ruby/object:Gem::Requirement
890
912
  requirements:
891
- - - "~>"
892
- - !ruby/object:Gem::Version
893
- version: 5.10.3
894
913
  - - ">="
895
914
  - !ruby/object:Gem::Version
896
915
  version: 5.10.1
916
+ - - "~>"
917
+ - !ruby/object:Gem::Version
918
+ version: 5.10.3
897
919
  type: :runtime
898
920
  prerelease: false
899
921
  version_requirements: !ruby/object:Gem::Requirement
900
922
  requirements:
901
- - - "~>"
902
- - !ruby/object:Gem::Version
903
- version: 5.10.3
904
923
  - - ">="
905
924
  - !ruby/object:Gem::Version
906
925
  version: 5.10.1
926
+ - - "~>"
927
+ - !ruby/object:Gem::Version
928
+ version: 5.10.3
907
929
  - !ruby/object:Gem::Dependency
908
930
  name: countries
909
931
  requirement: !ruby/object:Gem::Requirement
@@ -1092,42 +1114,42 @@ dependencies:
1092
1114
  requirements:
1093
1115
  - - "~>"
1094
1116
  - !ruby/object:Gem::Version
1095
- version: 3.4.0
1117
+ version: 3.2.0
1096
1118
  type: :runtime
1097
1119
  prerelease: false
1098
1120
  version_requirements: !ruby/object:Gem::Requirement
1099
1121
  requirements:
1100
1122
  - - "~>"
1101
1123
  - !ruby/object:Gem::Version
1102
- version: 3.4.0
1124
+ version: 3.2.0
1103
1125
  - !ruby/object:Gem::Dependency
1104
1126
  name: puma
1105
1127
  requirement: !ruby/object:Gem::Requirement
1106
1128
  requirements:
1107
- - - ">="
1129
+ - - "~>"
1108
1130
  - !ruby/object:Gem::Version
1109
- version: 4.3.1
1131
+ version: '4.0'
1110
1132
  type: :runtime
1111
1133
  prerelease: false
1112
1134
  version_requirements: !ruby/object:Gem::Requirement
1113
1135
  requirements:
1114
- - - ">="
1136
+ - - "~>"
1115
1137
  - !ruby/object:Gem::Version
1116
- version: 4.3.1
1138
+ version: '4.0'
1117
1139
  - !ruby/object:Gem::Dependency
1118
- name: rack
1140
+ name: browser
1119
1141
  requirement: !ruby/object:Gem::Requirement
1120
1142
  requirements:
1121
- - - ">="
1143
+ - - "~>"
1122
1144
  - !ruby/object:Gem::Version
1123
- version: 2.1.4
1145
+ version: 2.6.1
1124
1146
  type: :runtime
1125
1147
  prerelease: false
1126
1148
  version_requirements: !ruby/object:Gem::Requirement
1127
1149
  requirements:
1128
- - - ">="
1150
+ - - "~>"
1129
1151
  - !ruby/object:Gem::Version
1130
- version: 2.1.4
1152
+ version: 2.6.1
1131
1153
  - !ruby/object:Gem::Dependency
1132
1154
  name: active_utils
1133
1155
  requirement: !ruby/object:Gem::Requirement
@@ -1165,6 +1187,7 @@ extensions: []
1165
1187
  extra_rdoc_files: []
1166
1188
  files:
1167
1189
  - LICENSE
1190
+ - LICENSE.txt
1168
1191
  - README.md
1169
1192
  - Rakefile
1170
1193
  - app/assets/images/workarea/core/favicon_placeholder.png
@@ -1195,14 +1218,15 @@ files:
1195
1218
  - app/assets/javascripts/workarea/core/templates/hidden_input.jst.ejs
1196
1219
  - app/assets/javascripts/workarea/core/templates/lorem_ipsum_view.jst.ejs
1197
1220
  - app/assets/javascripts/workarea/core/templates/reveal_password_button.jst.ejs
1198
- - app/assets/javascripts/workarea/core/templates/ui_menu_item.jst.ejs
1199
1221
  - app/assets/javascripts/workarea/core/workarea.js
1200
- - app/controllers/workarea/admin_guest_browsing.rb
1201
1222
  - app/controllers/workarea/application_controller.rb
1202
1223
  - app/controllers/workarea/authentication.rb
1203
1224
  - app/controllers/workarea/authorization.rb
1204
1225
  - app/controllers/workarea/current_referrer.rb
1205
1226
  - app/controllers/workarea/current_release.rb
1227
+ - app/controllers/workarea/current_segments.rb
1228
+ - app/controllers/workarea/current_tracking.rb
1229
+ - app/controllers/workarea/http_caching.rb
1206
1230
  - app/controllers/workarea/impersonation.rb
1207
1231
  - app/controllers/workarea/style_guides.rb
1208
1232
  - app/helpers/workarea/addresses_helper.rb
@@ -1212,14 +1236,16 @@ files:
1212
1236
  - app/helpers/workarea/facets_helper.rb
1213
1237
  - app/helpers/workarea/i18n_helper.rb
1214
1238
  - app/helpers/workarea/plugins_helper.rb
1239
+ - app/helpers/workarea/schema_org_helper.rb
1215
1240
  - app/helpers/workarea/style_guides_helper.rb
1216
1241
  - app/mailers/workarea/application_mailer.rb
1242
+ - app/middleware/workarea/application_middleware.rb
1217
1243
  - app/middleware/workarea/audit_log_client_middleware.rb
1218
1244
  - app/middleware/workarea/audit_log_server_middleware.rb
1219
1245
  - app/middleware/workarea/enforce_host_middleware.rb
1220
1246
  - app/middleware/workarea/i18n_client_middleware.rb
1221
1247
  - app/middleware/workarea/i18n_server_middleware.rb
1222
- - app/middleware/workarea/rack_cache_config_middleware.rb
1248
+ - app/middleware/workarea/query_cache_middleware.rb
1223
1249
  - app/middleware/workarea/release_server_middleware.rb
1224
1250
  - app/middleware/workarea/skip_rack_cache_middleware.rb
1225
1251
  - app/middleware/workarea/strip_http_caching_middleware.rb
@@ -1243,6 +1269,9 @@ files:
1243
1269
  - app/models/workarea/checkout/auto_complete.rb
1244
1270
  - app/models/workarea/checkout/collect_payment.rb
1245
1271
  - app/models/workarea/checkout/credit_card_params.rb
1272
+ - app/models/workarea/checkout/fraud/analyzer.rb
1273
+ - app/models/workarea/checkout/fraud/no_decision_analyzer.rb
1274
+ - app/models/workarea/checkout/fraud/test_analyzer.rb
1246
1275
  - app/models/workarea/checkout/shipping_options.rb
1247
1276
  - app/models/workarea/checkout/steps/addresses.rb
1248
1277
  - app/models/workarea/checkout/steps/base.rb
@@ -1250,6 +1279,8 @@ files:
1250
1279
  - app/models/workarea/checkout/steps/shipping.rb
1251
1280
  - app/models/workarea/comment.rb
1252
1281
  - app/models/workarea/commentable.rb
1282
+ - app/models/workarea/configuration/admin.rb
1283
+ - app/models/workarea/configuration/params.rb
1253
1284
  - app/models/workarea/content.rb
1254
1285
  - app/models/workarea/content/asset.rb
1255
1286
  - app/models/workarea/content/asset_lookup.rb
@@ -1296,7 +1327,13 @@ files:
1296
1327
  - app/models/workarea/fulfillment/event.rb
1297
1328
  - app/models/workarea/fulfillment/item.rb
1298
1329
  - app/models/workarea/fulfillment/package.rb
1330
+ - app/models/workarea/fulfillment/policies/base.rb
1331
+ - app/models/workarea/fulfillment/policies/download.rb
1332
+ - app/models/workarea/fulfillment/policies/ignore.rb
1333
+ - app/models/workarea/fulfillment/policies/ship.rb
1334
+ - app/models/workarea/fulfillment/sku.rb
1299
1335
  - app/models/workarea/fulfillment/status.rb
1336
+ - app/models/workarea/fulfillment/token.rb
1300
1337
  - app/models/workarea/guard_negative_price.rb
1301
1338
  - app/models/workarea/help/article.rb
1302
1339
  - app/models/workarea/help/asset.rb
@@ -1336,6 +1373,7 @@ files:
1336
1373
  - app/models/workarea/inventory.rb
1337
1374
  - app/models/workarea/inventory/capture.rb
1338
1375
  - app/models/workarea/inventory/collection.rb
1376
+ - app/models/workarea/inventory/collection_status.rb
1339
1377
  - app/models/workarea/inventory/policies/allow_backorder.rb
1340
1378
  - app/models/workarea/inventory/policies/base.rb
1341
1379
  - app/models/workarea/inventory/policies/displayable_when_out_of_stock.rb
@@ -1347,6 +1385,7 @@ files:
1347
1385
  - app/models/workarea/inventory/unit_of_work.rb
1348
1386
  - app/models/workarea/lock.rb
1349
1387
  - app/models/workarea/lockable.rb
1388
+ - app/models/workarea/metrics/affinity.rb
1350
1389
  - app/models/workarea/metrics/by_day.rb
1351
1390
  - app/models/workarea/metrics/by_week.rb
1352
1391
  - app/models/workarea/metrics/calculate_percentiles.rb
@@ -1363,8 +1402,11 @@ files:
1363
1402
  - app/models/workarea/metrics/search_by_day.rb
1364
1403
  - app/models/workarea/metrics/search_by_week.rb
1365
1404
  - app/models/workarea/metrics/search_for_last_week.rb
1405
+ - app/models/workarea/metrics/segment_by_day.rb
1366
1406
  - app/models/workarea/metrics/sku_by_day.rb
1407
+ - app/models/workarea/metrics/tender_by_day.rb
1367
1408
  - app/models/workarea/metrics/traffic_referrer_by_day.rb
1409
+ - app/models/workarea/metrics/update_user_aggregations.rb
1368
1410
  - app/models/workarea/metrics/user.rb
1369
1411
  - app/models/workarea/navigable.rb
1370
1412
  - app/models/workarea/navigation/breadcrumbs.rb
@@ -1375,6 +1417,7 @@ files:
1375
1417
  - app/models/workarea/navigation/taxon_cache.rb
1376
1418
  - app/models/workarea/normalize_email.rb
1377
1419
  - app/models/workarea/order.rb
1420
+ - app/models/workarea/order/fraud_decision.rb
1378
1421
  - app/models/workarea/order/item.rb
1379
1422
  - app/models/workarea/order/items_extension.rb
1380
1423
  - app/models/workarea/order/queries.rb
@@ -1447,6 +1490,7 @@ files:
1447
1490
  - app/models/workarea/pricing/discount/reconcile_total.rb
1448
1491
  - app/models/workarea/pricing/discount/redemption.rb
1449
1492
  - app/models/workarea/pricing/discount/shipping.rb
1493
+ - app/models/workarea/pricing/item_tax_applier.rb
1450
1494
  - app/models/workarea/pricing/order_totals.rb
1451
1495
  - app/models/workarea/pricing/override.rb
1452
1496
  - app/models/workarea/pricing/price.rb
@@ -1454,7 +1498,9 @@ files:
1454
1498
  - app/models/workarea/pricing/request.rb
1455
1499
  - app/models/workarea/pricing/shipping_totals.rb
1456
1500
  - app/models/workarea/pricing/sku.rb
1501
+ - app/models/workarea/pricing/tax_application.rb
1457
1502
  - app/models/workarea/pricing/tax_applier.rb
1503
+ - app/models/workarea/pricing/unsupported_segmentation.rb
1458
1504
  - app/models/workarea/product_list.rb
1459
1505
  - app/models/workarea/product_rule.rb
1460
1506
  - app/models/workarea/query_string.rb
@@ -1464,7 +1510,10 @@ files:
1464
1510
  - app/models/workarea/recommendation/user_activity.rb
1465
1511
  - app/models/workarea/releasable.rb
1466
1512
  - app/models/workarea/release.rb
1513
+ - app/models/workarea/release/activation.rb
1514
+ - app/models/workarea/release/changes.rb
1467
1515
  - app/models/workarea/release/changeset.rb
1516
+ - app/models/workarea/release/preview.rb
1468
1517
  - app/models/workarea/release/status.rb
1469
1518
  - app/models/workarea/release_session.rb
1470
1519
  - app/models/workarea/reports/export.rb
@@ -1474,6 +1523,7 @@ files:
1474
1523
  - app/models/workarea/search/admin/content.rb
1475
1524
  - app/models/workarea/search/admin/content_asset.rb
1476
1525
  - app/models/workarea/search/admin/content_page.rb
1526
+ - app/models/workarea/search/admin/fulfillment_sku.rb
1477
1527
  - app/models/workarea/search/admin/inventory_sku.rb
1478
1528
  - app/models/workarea/search/admin/navigation.rb
1479
1529
  - app/models/workarea/search/admin/navigation_menu.rb
@@ -1483,6 +1533,7 @@ files:
1483
1533
  - app/models/workarea/search/admin/pricing_sku.rb
1484
1534
  - app/models/workarea/search/admin/releasable.rb
1485
1535
  - app/models/workarea/search/admin/release.rb
1536
+ - app/models/workarea/search/admin/segment.rb
1486
1537
  - app/models/workarea/search/admin/user.rb
1487
1538
  - app/models/workarea/search/customization.rb
1488
1539
  - app/models/workarea/search/facet_values.rb
@@ -1492,6 +1543,7 @@ files:
1492
1543
  - app/models/workarea/search/settings.rb
1493
1544
  - app/models/workarea/search/storefront.rb
1494
1545
  - app/models/workarea/search/storefront/category.rb
1546
+ - app/models/workarea/search/storefront/category_query.rb
1495
1547
  - app/models/workarea/search/storefront/page.rb
1496
1548
  - app/models/workarea/search/storefront/product.rb
1497
1549
  - app/models/workarea/search/storefront/product/analytics.rb
@@ -1503,6 +1555,25 @@ files:
1503
1555
  - app/models/workarea/search/storefront/product/text.rb
1504
1556
  - app/models/workarea/search/storefront/search.rb
1505
1557
  - app/models/workarea/search/user_text.rb
1558
+ - app/models/workarea/segment.rb
1559
+ - app/models/workarea/segment/first_time_customer.rb
1560
+ - app/models/workarea/segment/first_time_visitor.rb
1561
+ - app/models/workarea/segment/life_cycle.rb
1562
+ - app/models/workarea/segment/loyal_customer.rb
1563
+ - app/models/workarea/segment/returning_customer.rb
1564
+ - app/models/workarea/segment/returning_visitor.rb
1565
+ - app/models/workarea/segment/rules/base.rb
1566
+ - app/models/workarea/segment/rules/browser_info.rb
1567
+ - app/models/workarea/segment/rules/geolocation.rb
1568
+ - app/models/workarea/segment/rules/geolocation_option.rb
1569
+ - app/models/workarea/segment/rules/last_order.rb
1570
+ - app/models/workarea/segment/rules/logged_in.rb
1571
+ - app/models/workarea/segment/rules/orders.rb
1572
+ - app/models/workarea/segment/rules/revenue.rb
1573
+ - app/models/workarea/segment/rules/sessions.rb
1574
+ - app/models/workarea/segment/rules/tags.rb
1575
+ - app/models/workarea/segment/rules/traffic_referrer.rb
1576
+ - app/models/workarea/segmentable.rb
1506
1577
  - app/models/workarea/shipping.rb
1507
1578
  - app/models/workarea/shipping/address.rb
1508
1579
  - app/models/workarea/shipping/location_query.rb
@@ -1537,6 +1608,7 @@ files:
1537
1608
  - app/queries/workarea/bulk_action_selections.rb
1538
1609
  - app/queries/workarea/categorization.rb
1539
1610
  - app/queries/workarea/extract_content_block_text.rb
1611
+ - app/queries/workarea/featured_categorization.rb
1540
1612
  - app/queries/workarea/find_pipeline_asset.rb
1541
1613
  - app/queries/workarea/find_taxonomy_slug.rb
1542
1614
  - app/queries/workarea/find_unique_slug.rb
@@ -1544,11 +1616,13 @@ files:
1544
1616
  - app/queries/workarea/metadata/catalog_category.rb
1545
1617
  - app/queries/workarea/metadata/content_page.rb
1546
1618
  - app/queries/workarea/metadata/home_page.rb
1619
+ - app/queries/workarea/order_cancellation_metrics.rb
1547
1620
  - app/queries/workarea/order_item_details.rb
1548
1621
  - app/queries/workarea/order_metrics.rb
1549
1622
  - app/queries/workarea/pricing_override_params.rb
1550
1623
  - app/queries/workarea/product_primary_image_url.rb
1551
1624
  - app/queries/workarea/product_primary_navigation.rb
1625
+ - app/queries/workarea/product_releases.rb
1552
1626
  - app/queries/workarea/recommendation/order_based.rb
1553
1627
  - app/queries/workarea/recommendation/product_based.rb
1554
1628
  - app/queries/workarea/recommendation/searches.rb
@@ -1565,6 +1639,7 @@ files:
1565
1639
  - app/queries/workarea/reports/sales_by_menu.rb
1566
1640
  - app/queries/workarea/reports/sales_by_product.rb
1567
1641
  - app/queries/workarea/reports/sales_by_sku.rb
1642
+ - app/queries/workarea/reports/sales_by_tender.rb
1568
1643
  - app/queries/workarea/reports/sales_by_traffic_referrer.rb
1569
1644
  - app/queries/workarea/reports/sales_over_time.rb
1570
1645
  - app/queries/workarea/reports/searches.rb
@@ -1573,6 +1648,7 @@ files:
1573
1648
  - app/queries/workarea/search/admin_assets.rb
1574
1649
  - app/queries/workarea/search/admin_categories.rb
1575
1650
  - app/queries/workarea/search/admin_discounts.rb
1651
+ - app/queries/workarea/search/admin_fulfillment_skus.rb
1576
1652
  - app/queries/workarea/search/admin_index_search.rb
1577
1653
  - app/queries/workarea/search/admin_inventory_skus.rb
1578
1654
  - app/queries/workarea/search/admin_orders.rb
@@ -1584,6 +1660,7 @@ files:
1584
1660
  - app/queries/workarea/search/admin_releasables.rb
1585
1661
  - app/queries/workarea/search/admin_releases.rb
1586
1662
  - app/queries/workarea/search/admin_search.rb
1663
+ - app/queries/workarea/search/admin_segments.rb
1587
1664
  - app/queries/workarea/search/admin_sorting.rb
1588
1665
  - app/queries/workarea/search/admin_users.rb
1589
1666
  - app/queries/workarea/search/categorization.rb
@@ -1611,7 +1688,6 @@ files:
1611
1688
  - app/queries/workarea/search/range_parameter.rb
1612
1689
  - app/queries/workarea/search/related_help.rb
1613
1690
  - app/queries/workarea/search/related_products.rb
1614
- - app/queries/workarea/search/search_suggestions.rb
1615
1691
  - app/queries/workarea/search/storefront_search.rb
1616
1692
  - app/queries/workarea/search/storefront_search/exact_matches.rb
1617
1693
  - app/queries/workarea/search/storefront_search/middleware.rb
@@ -1641,6 +1717,7 @@ files:
1641
1717
  - app/seeds/workarea/orders_seeds.rb
1642
1718
  - app/seeds/workarea/products_seeds.rb
1643
1719
  - app/seeds/workarea/search_settings_seeds.rb
1720
+ - app/seeds/workarea/segments_seeds.rb
1644
1721
  - app/seeds/workarea/shipping_services_seeds.rb
1645
1722
  - app/seeds/workarea/system_content_seeds.rb
1646
1723
  - app/seeds/workarea/tax_seeds.rb
@@ -1675,13 +1752,11 @@ files:
1675
1752
  - app/workers/workarea/bulk_index_admin.rb
1676
1753
  - app/workers/workarea/bulk_index_products.rb
1677
1754
  - app/workers/workarea/bulk_index_searches.rb
1678
- - app/workers/workarea/bust_discount_cache.rb
1679
1755
  - app/workers/workarea/bust_navigation_cache.rb
1680
1756
  - app/workers/workarea/bust_sku_cache.rb
1681
1757
  - app/workers/workarea/clean_inventory_transactions.rb
1682
1758
  - app/workers/workarea/clean_orders.rb
1683
1759
  - app/workers/workarea/clean_product_recommendations.rb
1684
- - app/workers/workarea/clean_user_activity.rb
1685
1760
  - app/workers/workarea/deactivate_stale_discounts.rb
1686
1761
  - app/workers/workarea/generate_content_metadata.rb
1687
1762
  - app/workers/workarea/generate_insights.rb
@@ -1711,16 +1786,19 @@ files:
1711
1786
  - app/workers/workarea/publish_bulk_action.rb
1712
1787
  - app/workers/workarea/publish_release.rb
1713
1788
  - app/workers/workarea/redirect_navigable_slugs.rb
1789
+ - app/workers/workarea/save_metrics.rb
1790
+ - app/workers/workarea/save_order_cancellation_metrics.rb
1714
1791
  - app/workers/workarea/save_order_metrics.rb
1715
1792
  - app/workers/workarea/save_user_order_details.rb
1716
1793
  - app/workers/workarea/send_refund_email.rb
1717
1794
  - app/workers/workarea/status_reporter.rb
1718
- - app/workers/workarea/undo_release.rb
1795
+ - app/workers/workarea/synchronize_user_metrics.rb
1719
1796
  - app/workers/workarea/update_elasticsearch_settings.rb
1720
- - app/workers/workarea/update_email.rb
1797
+ - app/workers/workarea/update_payment_profile_email.rb
1721
1798
  - app/workers/workarea/verify_scheduled_releases.rb
1722
1799
  - bin/rails
1723
1800
  - config/i18n-js.yml
1801
+ - config/initializers/00_configuration.rb
1724
1802
  - config/initializers/00_mongoid.rb
1725
1803
  - config/initializers/01_eager_load.rb
1726
1804
  - config/initializers/02_assets.rb
@@ -1741,12 +1819,12 @@ files:
1741
1819
  - config/initializers/17_audit_log.rb
1742
1820
  - config/initializers/18_time_formats.rb
1743
1821
  - config/initializers/19_mailer_previews.rb
1744
- - config/initializers/20_i18n_js.rb
1745
1822
  - config/initializers/20_mail_interceptor.rb
1746
- - config/initializers/21_premailer.rb
1747
1823
  - config/initializers/21_serviceworkers.rb
1748
1824
  - config/initializers/22_session_store.rb
1749
1825
  - config/initializers/23_chartkick.rb
1826
+ - config/initializers/24_premailer.rb
1827
+ - config/initializers/25_i18n_js.rb
1750
1828
  - config/locales/en.yml
1751
1829
  - config/routes.rb
1752
1830
  - data/content_assets/100x100.png
@@ -1773,16 +1851,6 @@ files:
1773
1851
  - lib/generators/workarea/discount/templates/select_type_partial.rb.erb
1774
1852
  - lib/generators/workarea/discount/templates/view_model.rb.erb
1775
1853
  - lib/generators/workarea/discount/templates/view_model_test.rb.erb
1776
- - lib/generators/workarea/docker/USAGE
1777
- - lib/generators/workarea/docker/docker_generator.rb
1778
- - lib/generators/workarea/docker/templates/.env.erb
1779
- - lib/generators/workarea/docker/templates/Dockerfile.erb
1780
- - lib/generators/workarea/docker/templates/docker-compose.yml.erb
1781
- - lib/generators/workarea/docker/templates/docker-entrypoint.sh.erb
1782
- - lib/generators/workarea/docker/templates/docker-sync.yml.erb
1783
- - lib/generators/workarea/docker/templates/docker-wait.sh
1784
- - lib/generators/workarea/docker/templates/docker.env
1785
- - lib/generators/workarea/docker/templates/docker_init.rb.erb
1786
1854
  - lib/generators/workarea/install/USAGE
1787
1855
  - lib/generators/workarea/install/install_generator.rb
1788
1856
  - lib/generators/workarea/install/templates/initializer.rb.erb
@@ -1813,6 +1881,7 @@ files:
1813
1881
  - lib/tasks/help.rake
1814
1882
  - lib/tasks/insights.rake
1815
1883
  - lib/tasks/lint.rake
1884
+ - lib/tasks/migrate.rake
1816
1885
  - lib/tasks/search.rake
1817
1886
  - lib/tasks/services.rake
1818
1887
  - lib/tasks/tests.rake
@@ -1827,20 +1896,24 @@ files:
1827
1896
  - lib/workarea/changelog.rake
1828
1897
  - lib/workarea/configuration.rb
1829
1898
  - lib/workarea/configuration/action_mailer.rb
1899
+ - lib/workarea/configuration/administrable/definition.rb
1900
+ - lib/workarea/configuration/administrable/field.rb
1901
+ - lib/workarea/configuration/administrable/fieldset.rb
1902
+ - lib/workarea/configuration/administrable_options.rb
1830
1903
  - lib/workarea/configuration/asset_host.rb
1831
1904
  - lib/workarea/configuration/cache_store.rb
1905
+ - lib/workarea/configuration/content_blocks.rb
1832
1906
  - lib/workarea/configuration/dragonfly.rb
1833
1907
  - lib/workarea/configuration/elasticsearch.rb
1834
1908
  - lib/workarea/configuration/error_handling.rb
1835
- - lib/workarea/configuration/headless_chrome.rb
1836
1909
  - lib/workarea/configuration/i18n.rb
1837
1910
  - lib/workarea/configuration/localized_active_fields.rb
1838
1911
  - lib/workarea/configuration/logstasher.rb
1839
1912
  - lib/workarea/configuration/mongoid.rb
1840
1913
  - lib/workarea/configuration/mongoid_client.rb
1841
- - lib/workarea/configuration/puma.rb
1842
1914
  - lib/workarea/configuration/redis.rb
1843
1915
  - lib/workarea/configuration/s3.rb
1916
+ - lib/workarea/configuration/session.rb
1844
1917
  - lib/workarea/configuration/sidekiq.rb
1845
1918
  - lib/workarea/constants.rb
1846
1919
  - lib/workarea/core.rb
@@ -1854,6 +1927,7 @@ files:
1854
1927
  - lib/workarea/ext/freedom_patches/action_view_conditional_url_helper.rb
1855
1928
  - lib/workarea/ext/freedom_patches/action_view_number_helper.rb
1856
1929
  - lib/workarea/ext/freedom_patches/action_view_path_resolver.rb
1930
+ - lib/workarea/ext/freedom_patches/active_support_duration.rb
1857
1931
  - lib/workarea/ext/freedom_patches/bson.rb
1858
1932
  - lib/workarea/ext/freedom_patches/country.rb
1859
1933
  - lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
@@ -1861,25 +1935,23 @@ files:
1861
1935
  - lib/workarea/ext/freedom_patches/dragonfly_job_fetch_url.rb
1862
1936
  - lib/workarea/ext/freedom_patches/float.rb
1863
1937
  - lib/workarea/ext/freedom_patches/global_id.rb
1864
- - lib/workarea/ext/freedom_patches/i18n_js.rb
1865
1938
  - lib/workarea/ext/freedom_patches/money.rb
1866
- - lib/workarea/ext/freedom_patches/mongoid_localized_defaults.rb
1867
1939
  - lib/workarea/ext/freedom_patches/mongoid_simple_tags.rb
1868
1940
  - lib/workarea/ext/freedom_patches/net_http_ssl_connection.rb
1941
+ - lib/workarea/ext/freedom_patches/premailer.rb
1869
1942
  - lib/workarea/ext/freedom_patches/routes_reloader.rb
1870
1943
  - lib/workarea/ext/freedom_patches/string.rb
1871
1944
  - lib/workarea/ext/freedom_patches/uri.rb
1872
1945
  - lib/workarea/ext/jbuilder/jbuilder_append_partials.rb
1873
- - lib/workarea/ext/jbuilder/jbuilder_cache.rb
1874
1946
  - lib/workarea/ext/mongoid/audit_log_entry.decorator
1875
1947
  - lib/workarea/ext/mongoid/each_by.rb
1876
1948
  - lib/workarea/ext/mongoid/error.rb
1877
1949
  - lib/workarea/ext/mongoid/except.rb
1878
1950
  - lib/workarea/ext/mongoid/find_ordered.rb
1879
1951
  - lib/workarea/ext/mongoid/list_field.rb
1952
+ - lib/workarea/ext/mongoid/lookup_hash.rb
1880
1953
  - lib/workarea/ext/mongoid/moped_bson.rb
1881
1954
  - lib/workarea/ext/mongoid/timestamps_timeless.rb
1882
- - lib/workarea/ext/referer_parser/parser.decorator
1883
1955
  - lib/workarea/ext/sprockets/ruby_processor.rb
1884
1956
  - lib/workarea/ext/sprockets/task.rb
1885
1957
  - lib/workarea/geolocation.rb
@@ -1903,8 +1975,6 @@ files:
1903
1975
  - lib/workarea/ping_home_base.rb
1904
1976
  - lib/workarea/plugin.rb
1905
1977
  - lib/workarea/plugin/asset_appends_helper.rb
1906
- - lib/workarea/queues_pauser.rb
1907
- - lib/workarea/robots.rb
1908
1978
  - lib/workarea/routes_constraints/redirect.rb
1909
1979
  - lib/workarea/routes_constraints/super_admin.rb
1910
1980
  - lib/workarea/scheduled_jobs.rb
@@ -1920,6 +1990,8 @@ files:
1920
1990
  - lib/workarea/validators/password_validator.rb
1921
1991
  - lib/workarea/validators/url_validator.rb
1922
1992
  - lib/workarea/version.rb
1993
+ - lib/workarea/visit.rb
1994
+ - lib/workarea/warnings.rb
1923
1995
  - test/dummy/README.rdoc
1924
1996
  - test/dummy/Rakefile
1925
1997
  - test/dummy/app/assets/images/.keep
@@ -1974,7 +2046,6 @@ files:
1974
2046
  - test/generators/workarea/content_block_type_generator_test.rb
1975
2047
  - test/generators/workarea/decorator_generator_test.rb
1976
2048
  - test/generators/workarea/discount_generator_test.rb
1977
- - test/generators/workarea/docker_generator_test.rb
1978
2049
  - test/generators/workarea/install_generator_test.rb
1979
2050
  - test/generators/workarea/js_adapter_generator_test.rb
1980
2051
  - test/generators/workarea/override_generator_test.rb
@@ -1998,8 +2069,7 @@ files:
1998
2069
  - test/javascripts/deletion_forms_spec.js
1999
2070
  - test/javascripts/duplicate_id_spec.js
2000
2071
  - test/javascripts/fixtures/deletion_forms.html.haml
2001
- - test/javascripts/fixtures/duplicate_id_fail.html.haml
2002
- - test/javascripts/fixtures/duplicate_id_pass.html.haml
2072
+ - test/javascripts/fixtures/duplicate_id.html.haml
2003
2073
  - test/javascripts/fixtures/form_submitting_controls.html.haml
2004
2074
  - test/javascripts/fixtures/reveal_password.html.haml
2005
2075
  - test/javascripts/fixtures/workarea_scope.html.haml
@@ -2011,20 +2081,24 @@ files:
2011
2081
  - test/javascripts/workarea_spec.js
2012
2082
  - test/lib/workarea/asset_endpoints/favicons_test.rb
2013
2083
  - test/lib/workarea/autoexpire_cache_redis_test.rb
2084
+ - test/lib/workarea/configuration/administrable/definition_test.rb
2085
+ - test/lib/workarea/configuration/administrable/field_test.rb
2086
+ - test/lib/workarea/configuration/administrable/fieldset_test.rb
2087
+ - test/lib/workarea/configuration/configuration_test.rb
2014
2088
  - test/lib/workarea/constants_test.rb
2015
2089
  - test/lib/workarea/elasticsearch/document_test.rb
2016
2090
  - test/lib/workarea/elasticsearch/query_cache_test.rb
2017
2091
  - test/lib/workarea/ext/freedom_patches/country_test.rb
2018
2092
  - test/lib/workarea/ext/freedom_patches/dragonfly_callable_url_host_test.rb
2019
2093
  - test/lib/workarea/ext/freedom_patches/global_id_test.rb
2020
- - test/lib/workarea/ext/freedom_patches/mongoid_localized_defaults_test.rb
2094
+ - test/lib/workarea/ext/freedom_patches/money_test.rb
2021
2095
  - test/lib/workarea/ext/freedom_patches/mongoid_simple_tags_test.rb
2022
2096
  - test/lib/workarea/ext/mongoid/audit_log_entry_test.rb
2023
2097
  - test/lib/workarea/ext/mongoid/each_by_test.rb
2024
2098
  - test/lib/workarea/ext/mongoid/except_test.rb
2025
2099
  - test/lib/workarea/ext/mongoid/find_ordered_test.rb
2026
2100
  - test/lib/workarea/ext/mongoid/list_field_test.rb
2027
- - test/lib/workarea/ext/referer_parser/parser_test.rb
2101
+ - test/lib/workarea/ext/mongoid/lookup_hash_test.rb
2028
2102
  - test/lib/workarea/geolocation_test.rb
2029
2103
  - test/lib/workarea/lint/inconsistent_details_test.rb
2030
2104
  - test/lib/workarea/lint/products_missing_images_test.rb
@@ -2047,6 +2121,7 @@ files:
2047
2121
  - test/lib/workarea/validators/password_validator_test.rb
2048
2122
  - test/mailers/workarea/application_mailer_test.rb
2049
2123
  - test/middleware/workarea/audit_log_middleware_test.rb
2124
+ - test/middleware/workarea/query_cache_middleware_test.rb
2050
2125
  - test/middleware/workarea/release_server_middleware_test.rb
2051
2126
  - test/models/workarea/address_equality_test.rb
2052
2127
  - test/models/workarea/address_test.rb
@@ -2070,6 +2145,7 @@ files:
2070
2145
  - test/models/workarea/checkout_test.rb
2071
2146
  - test/models/workarea/comment_test.rb
2072
2147
  - test/models/workarea/commentable_test.rb
2148
+ - test/models/workarea/configuration/params_test.rb
2073
2149
  - test/models/workarea/content/asset_test.rb
2074
2150
  - test/models/workarea/content/asset_validation_test.rb
2075
2151
  - test/models/workarea/content/block_name_test.rb
@@ -2094,6 +2170,8 @@ files:
2094
2170
  - test/models/workarea/discount_ids_test.rb
2095
2171
  - test/models/workarea/fulfillment/item_test.rb
2096
2172
  - test/models/workarea/fulfillment/package_test.rb
2173
+ - test/models/workarea/fulfillment/policies/download_test.rb
2174
+ - test/models/workarea/fulfillment/sku_test.rb
2097
2175
  - test/models/workarea/fulfillment_test.rb
2098
2176
  - test/models/workarea/help/article_test.rb
2099
2177
  - test/models/workarea/insights/base_test.rb
@@ -2137,6 +2215,7 @@ files:
2137
2215
  - test/models/workarea/inventory_test.rb
2138
2216
  - test/models/workarea/lock_test.rb
2139
2217
  - test/models/workarea/lockable_test.rb
2218
+ - test/models/workarea/metrics/affinity_test.rb
2140
2219
  - test/models/workarea/metrics/by_day_test.rb
2141
2220
  - test/models/workarea/metrics/calculate_percentiles_test.rb
2142
2221
  - test/models/workarea/metrics/product_by_week_test.rb
@@ -2144,6 +2223,7 @@ files:
2144
2223
  - test/models/workarea/metrics/search_by_day_test.rb
2145
2224
  - test/models/workarea/metrics/search_by_week_test.rb
2146
2225
  - test/models/workarea/metrics/search_for_last_week_test.rb
2226
+ - test/models/workarea/metrics/update_user_aggregations_test.rb
2147
2227
  - test/models/workarea/metrics/user_test.rb
2148
2228
  - test/models/workarea/navigation/breadcrumbs_test.rb
2149
2229
  - test/models/workarea/navigation/menu_test.rb
@@ -2203,6 +2283,7 @@ files:
2203
2283
  - test/models/workarea/pricing/discount/quantity_fixed_price_test.rb
2204
2284
  - test/models/workarea/pricing/discount/shipping_test.rb
2205
2285
  - test/models/workarea/pricing/discount_test.rb
2286
+ - test/models/workarea/pricing/item_tax_applier_test.rb
2206
2287
  - test/models/workarea/pricing/override_test.rb
2207
2288
  - test/models/workarea/pricing/price_distributor_test.rb
2208
2289
  - test/models/workarea/pricing/price_test.rb
@@ -2213,7 +2294,11 @@ files:
2213
2294
  - test/models/workarea/product_rule_test.rb
2214
2295
  - test/models/workarea/query_string_test.rb
2215
2296
  - test/models/workarea/recommendation/user_activity_test.rb
2297
+ - test/models/workarea/releasable_active_test.rb
2216
2298
  - test/models/workarea/releasable_test.rb
2299
+ - test/models/workarea/release/changeset_test.rb
2300
+ - test/models/workarea/release_jobs_test.rb
2301
+ - test/models/workarea/release_previewing_test.rb
2217
2302
  - test/models/workarea/release_test.rb
2218
2303
  - test/models/workarea/reports/export_test.rb
2219
2304
  - test/models/workarea/search/admin/catalog_category_test.rb
@@ -2227,7 +2312,9 @@ files:
2227
2312
  - test/models/workarea/search/admin/user_test.rb
2228
2313
  - test/models/workarea/search/admin_test.rb
2229
2314
  - test/models/workarea/search/customization_test.rb
2315
+ - test/models/workarea/search/order_text_test.rb
2230
2316
  - test/models/workarea/search/settings_test.rb
2317
+ - test/models/workarea/search/storefront/category_query_test.rb
2231
2318
  - test/models/workarea/search/storefront/product/categories_test.rb
2232
2319
  - test/models/workarea/search/storefront/product/facets_test.rb
2233
2320
  - test/models/workarea/search/storefront/product/inventory_test.rb
@@ -2235,6 +2322,19 @@ files:
2235
2322
  - test/models/workarea/search/storefront/product/text_test.rb
2236
2323
  - test/models/workarea/search/storefront/product_test.rb
2237
2324
  - test/models/workarea/search/storefront_test.rb
2325
+ - test/models/workarea/segment/life_cycle_test.rb
2326
+ - test/models/workarea/segment/rules/browser_info_test.rb
2327
+ - test/models/workarea/segment/rules/geolocation_option_test.rb
2328
+ - test/models/workarea/segment/rules/geolocation_test.rb
2329
+ - test/models/workarea/segment/rules/last_order_test.rb
2330
+ - test/models/workarea/segment/rules/logged_in_test.rb
2331
+ - test/models/workarea/segment/rules/orders_test.rb
2332
+ - test/models/workarea/segment/rules/revenue_test.rb
2333
+ - test/models/workarea/segment/rules/sessions_test.rb
2334
+ - test/models/workarea/segment/rules/tags_test.rb
2335
+ - test/models/workarea/segment/rules/traffic_referrer_test.rb
2336
+ - test/models/workarea/segment_test.rb
2337
+ - test/models/workarea/segmentable_test.rb
2238
2338
  - test/models/workarea/shipping/address_test.rb
2239
2339
  - test/models/workarea/shipping/location_query_test.rb
2240
2340
  - test/models/workarea/shipping/rate_lookup_test.rb
@@ -2258,17 +2358,20 @@ files:
2258
2358
  - test/queries/workarea/bulk_action_selections_test.rb
2259
2359
  - test/queries/workarea/categorization_test.rb
2260
2360
  - test/queries/workarea/extract_content_block_text_test.rb
2361
+ - test/queries/workarea/featured_categorization_test.rb
2261
2362
  - test/queries/workarea/find_pipeline_asset_test.rb
2262
2363
  - test/queries/workarea/find_taxonomy_slug_test.rb
2263
2364
  - test/queries/workarea/find_unique_slug_test.rb
2264
2365
  - test/queries/workarea/metadata/catalog_category_test.rb
2265
2366
  - test/queries/workarea/metadata/content_page_test.rb
2266
2367
  - test/queries/workarea/metadata/home_page_test.rb
2368
+ - test/queries/workarea/order_cancellation_metrics_test.rb
2267
2369
  - test/queries/workarea/order_item_details_test.rb
2268
2370
  - test/queries/workarea/order_metrics_test.rb
2269
2371
  - test/queries/workarea/pricing_override_params_test.rb
2270
2372
  - test/queries/workarea/product_primary_image_url_test.rb
2271
2373
  - test/queries/workarea/product_primary_navigation_test.rb
2374
+ - test/queries/workarea/product_releases_test.rb
2272
2375
  - test/queries/workarea/recommendation/order_based_test.rb
2273
2376
  - test/queries/workarea/recommendation/product_based_test.rb
2274
2377
  - test/queries/workarea/recommendation/searches_test.rb
@@ -2284,6 +2387,7 @@ files:
2284
2387
  - test/queries/workarea/reports/sales_by_menu_test.rb
2285
2388
  - test/queries/workarea/reports/sales_by_product_test.rb
2286
2389
  - test/queries/workarea/reports/sales_by_sku_test.rb
2390
+ - test/queries/workarea/reports/sales_by_tender_test.rb
2287
2391
  - test/queries/workarea/reports/sales_by_traffic_referrer_test.rb
2288
2392
  - test/queries/workarea/reports/sales_over_time_test.rb
2289
2393
  - test/queries/workarea/reports/searches_over_time_test.rb
@@ -2313,7 +2417,7 @@ files:
2313
2417
  - test/queries/workarea/search/range_parameter_test.rb
2314
2418
  - test/queries/workarea/search/related_help_test.rb
2315
2419
  - test/queries/workarea/search/related_products_test.rb
2316
- - test/queries/workarea/search/search_suggestions_test.rb
2420
+ - test/queries/workarea/search/storefront_search/response_test.rb
2317
2421
  - test/queries/workarea/search/storefront_search_test.rb
2318
2422
  - test/queries/workarea/search/terms_facet_test.rb
2319
2423
  - test/queries/workarea/taxonomy_sitemap_test.rb
@@ -2373,8 +2477,8 @@ files:
2373
2477
  - test/workers/workarea/save_user_order_details_test.rb
2374
2478
  - test/workers/workarea/send_refund_email_test.rb
2375
2479
  - test/workers/workarea/status_reporter_test.rb
2376
- - test/workers/workarea/undo_release_test.rb
2377
- - test/workers/workarea/update_email_test.rb
2480
+ - test/workers/workarea/synchronize_user_metrics_test.rb
2481
+ - test/workers/workarea/update_payment_profile_email_test.rb
2378
2482
  - test/workers/workarea/verify_scheduled_releases_test.rb
2379
2483
  - vendor/active_shipping/.gitignore
2380
2484
  - vendor/active_shipping/.travis.yml
@@ -2618,11 +2722,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
2618
2722
  version: 2.7.0
2619
2723
  required_rubygems_version: !ruby/object:Gem::Requirement
2620
2724
  requirements:
2621
- - - ">="
2725
+ - - ">"
2622
2726
  - !ruby/object:Gem::Version
2623
- version: '0'
2727
+ version: 1.3.1
2624
2728
  requirements: []
2625
- rubygems_version: 3.2.3
2729
+ rubygems_version: 3.0.6
2626
2730
  signing_key:
2627
2731
  specification_version: 4
2628
2732
  summary: Core of the Workarea Commerce Platform