workarea 3.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rubocop.yml +326 -0
- data/CHANGELOG.md +20501 -0
- data/README.md +163 -0
- data/docker-compose.yml +27 -0
- data/docs/Gemfile +8 -0
- data/docs/bin/middleman +29 -0
- data/docs/config.rb +87 -0
- data/docs/config.ru +7 -0
- data/docs/data/articles.yml +157 -0
- data/docs/package.json +15 -0
- data/docs/source/404.html.erb +13 -0
- data/docs/source/articles/access-routes-in-javascript.html.md +33 -0
- data/docs/source/articles/add-a-content-area.html.md +169 -0
- data/docs/source/articles/add-a-content-block-type.html.md +334 -0
- data/docs/source/articles/add-a-report.html.md +202 -0
- data/docs/source/articles/add-css-through-the-admin-ui.html.md +30 -0
- data/docs/source/articles/add-javascript-through-a-manifest.html.md +367 -0
- data/docs/source/articles/add-javascript-through-a-view.html.md +80 -0
- data/docs/source/articles/add-javascript-through-the-admin-ui.html.md +30 -0
- data/docs/source/articles/add-metrics.html.md +58 -0
- data/docs/source/articles/add-or-replace-a-pricing-calculator.html.md +150 -0
- data/docs/source/articles/add-remove-or-change-a-mongoid-validation.html.md +147 -0
- data/docs/source/articles/add-remove-or-change-a-product-template.html.md +142 -0
- data/docs/source/articles/add-remove-sort-and-group-storefront-search-filters.html.md +483 -0
- data/docs/source/articles/add-stylesheets-through-a-manifest.html.md +276 -0
- data/docs/source/articles/add-system-content.html.md +138 -0
- data/docs/source/articles/analytics-overview.html.md +51 -0
- data/docs/source/articles/analyze-storefront-search-results.html.md +261 -0
- data/docs/source/articles/api-overview.html.md +35 -0
- data/docs/source/articles/appending.html.md +506 -0
- data/docs/source/articles/application-document.html.md +88 -0
- data/docs/source/articles/automated-javascript-testing.html.md +162 -0
- data/docs/source/articles/b2b-overview.html.md +64 -0
- data/docs/source/articles/browser-and-device-support.html.md +47 -0
- data/docs/source/articles/change-product-placeholder-image.html.md +39 -0
- data/docs/source/articles/change-storefront-search-results.html.md +283 -0
- data/docs/source/articles/change-the-storefront-product-pricing-ui.html.md +348 -0
- data/docs/source/articles/change-the-storefront-search-filters-ui.html.md +103 -0
- data/docs/source/articles/checkout.html.md +479 -0
- data/docs/source/articles/commerce-model.html.md +164 -0
- data/docs/source/articles/configuration-for-hosting.html.md +106 -0
- data/docs/source/articles/configuration.html.md +406 -0
- data/docs/source/articles/configure-a-payment-gateway.html.md +58 -0
- data/docs/source/articles/configure-asset-storage.html.md +29 -0
- data/docs/source/articles/configure-asset-types.html.md +18 -0
- data/docs/source/articles/configure-contact-form-subjects-list.html.md +24 -0
- data/docs/source/articles/configure-imageoptim.html.md +23 -0
- data/docs/source/articles/configure-locales.html.md +45 -0
- data/docs/source/articles/configure-logins-and-authentication.html.md +42 -0
- data/docs/source/articles/configure-low-inventory-threshold.html.md +26 -0
- data/docs/source/articles/configure-product-image-sizes-and-processing.html.md +28 -0
- data/docs/source/articles/content.html.md +554 -0
- data/docs/source/articles/contentable.html.md +41 -0
- data/docs/source/articles/contribute-code.html.md +69 -0
- data/docs/source/articles/contribute-documentation.html.md +60 -0
- data/docs/source/articles/create-a-custom-discount.html.md +234 -0
- data/docs/source/articles/create-a-new-app.html.md +131 -0
- data/docs/source/articles/create-a-plugin.html.md +19 -0
- data/docs/source/articles/create-a-style-guide.html.md +71 -0
- data/docs/source/articles/create-a-theme.html.md +134 -0
- data/docs/source/articles/css-architectural-overview.html.md +89 -0
- data/docs/source/articles/customize-a-helper.html.md +91 -0
- data/docs/source/articles/decoration.html.md +415 -0
- data/docs/source/articles/define-and-configure-inventory-policies.html.md +107 -0
- data/docs/source/articles/documentation-style-guide.html.md +48 -0
- data/docs/source/articles/documentation.html.md +54 -0
- data/docs/source/articles/domain-modeling.html.md +82 -0
- data/docs/source/articles/error-pages.html.md.erb +95 -0
- data/docs/source/articles/extension-overview.html.md +152 -0
- data/docs/source/articles/favicon-support.html.md +112 -0
- data/docs/source/articles/feature-spec-helper-stylesheet.html.md +25 -0
- data/docs/source/articles/featurejs-and-feature-spec-helper.html.md +20 -0
- data/docs/source/articles/help-and-support.html.md +34 -0
- data/docs/source/articles/html-fragment-caching.html.md +46 -0
- data/docs/source/articles/http-caching.html.md +43 -0
- data/docs/source/articles/i18n.html.md +35 -0
- data/docs/source/articles/images-flow.html.md +10 -0
- data/docs/source/articles/index-storefront-search-documents.html.md +104 -0
- data/docs/source/articles/infrastructure.html.md +46 -0
- data/docs/source/articles/installing.html.md +61 -0
- data/docs/source/articles/integrate-a-payment-gateway.html.md +124 -0
- data/docs/source/articles/integrate-a-web-analytics-provider.html.md +35 -0
- data/docs/source/articles/integrate-an-inventory-management-system.html.md +88 -0
- data/docs/source/articles/integrating-with-other-software.html.md +59 -0
- data/docs/source/articles/inventory.html.md +352 -0
- data/docs/source/articles/javascript-coding-standards.html.md +30 -0
- data/docs/source/articles/javascript-modules.html.md +174 -0
- data/docs/source/articles/javascript-overview.html.md +62 -0
- data/docs/source/articles/javascript-reference-documentation.html.md +51 -0
- data/docs/source/articles/javascript-templates.html.md +52 -0
- data/docs/source/articles/low-level-caching.html.md +25 -0
- data/docs/source/articles/maintain-a-plugin.html.md +12 -0
- data/docs/source/articles/maintenance-policy.html.md +79 -0
- data/docs/source/articles/navigable.html.md +51 -0
- data/docs/source/articles/navigating-the-code.html.md +149 -0
- data/docs/source/articles/navigation.html.md +386 -0
- data/docs/source/articles/order-life-cycle.html.md +546 -0
- data/docs/source/articles/order-pricing.html.md +389 -0
- data/docs/source/articles/orders-and-items.html.md +210 -0
- data/docs/source/articles/orders.html.md +66 -0
- data/docs/source/articles/overriding.html.md +155 -0
- data/docs/source/articles/overview.html.md +43 -0
- data/docs/source/articles/plugins-overview.html.md +12 -0
- data/docs/source/articles/prerequisites-and-dependencies.html.md +202 -0
- data/docs/source/articles/products.html.md.erb +1270 -0
- data/docs/source/articles/progressive-web-application-support.html.md +148 -0
- data/docs/source/articles/rails-asset-manifests.html.md +33 -0
- data/docs/source/articles/rails-asset-view-helpers.html.md +25 -0
- data/docs/source/articles/reading-data.html.md +10 -0
- data/docs/source/articles/releasable.html.md +37 -0
- data/docs/source/articles/report-a-bug.html.md +75 -0
- data/docs/source/articles/ruby-coding-standards.html.md +10 -0
- data/docs/source/articles/run-sidekiq-in-a-local-environment.html.md +40 -0
- data/docs/source/articles/searching.html.md +1005 -0
- data/docs/source/articles/security-policy.html.md +42 -0
- data/docs/source/articles/seeds.html.md +345 -0
- data/docs/source/articles/shipping.html.md +756 -0
- data/docs/source/articles/sort-and-exclude-product-options.html.md +47 -0
- data/docs/source/articles/storefront-search-features.html.md +568 -0
- data/docs/source/articles/storefront-searches.html.md +126 -0
- data/docs/source/articles/style-guides.html.md +21 -0
- data/docs/source/articles/stylesheet-coding-standards.html.md +24 -0
- data/docs/source/articles/stylesheets-overview.html.md +67 -0
- data/docs/source/articles/swappable-list-data-structure.html.md +81 -0
- data/docs/source/articles/system-emails.html.md +102 -0
- data/docs/source/articles/taggable.html.md +8 -0
- data/docs/source/articles/test-a-credit-card-transaction.html.md +16 -0
- data/docs/source/articles/test-if-a-plugin-is-installed.html.md +34 -0
- data/docs/source/articles/testing.html.md +914 -0
- data/docs/source/articles/themes-overview.html.md +155 -0
- data/docs/source/articles/translate-administrable-content.html.md +14 -0
- data/docs/source/articles/translate-javascript-content.html.md +16 -0
- data/docs/source/articles/translate-or-customize-message-content.html.md +29 -0
- data/docs/source/articles/translate-or-customize-static-content.html.md +30 -0
- data/docs/source/articles/use-an-existing-workarea-app.html.md +108 -0
- data/docs/source/articles/view-models.html.md +509 -0
- data/docs/source/articles/views.html.md +14 -0
- data/docs/source/articles/workers.html.md +613 -0
- data/docs/source/articles/writing-data.html.md +10 -0
- data/docs/source/cli.html.md +163 -0
- data/docs/source/favicon.ico +0 -0
- data/docs/source/images/3-variants-1-option.png +0 -0
- data/docs/source/images/3-variants-3-options.png +0 -0
- data/docs/source/images/3-years-primary-image.png +0 -0
- data/docs/source/images/404-storefront-error-page.png +0 -0
- data/docs/source/images/404-system-content-admin.png +0 -0
- data/docs/source/images/404.jpg +0 -0
- data/docs/source/images/5-years-primary-image.png +0 -0
- data/docs/source/images/activity-dashboard.png +0 -0
- data/docs/source/images/activity-for-object.png +0 -0
- data/docs/source/images/activity-ui.png +0 -0
- data/docs/source/images/adding-captioned-image-block-custom-icon.png +0 -0
- data/docs/source/images/adding-captioned-image-block-default-icon.png +0 -0
- data/docs/source/images/admin-alerts-ui.png +0 -0
- data/docs/source/images/admin-category-range-filters.png +0 -0
- data/docs/source/images/admin-for-3-column-hero.png +0 -0
- data/docs/source/images/admin-help-index.png +0 -0
- data/docs/source/images/admin-help-ui.png +0 -0
- data/docs/source/images/admin-javascript.png +0 -0
- data/docs/source/images/admin-notification-for-deactivated-discount.png +0 -0
- data/docs/source/images/admin-notifications-ui.png +0 -0
- data/docs/source/images/admin-product-show-page.png +0 -0
- data/docs/source/images/admin-products-index-page.png +0 -0
- data/docs/source/images/admin-range-filters.png +0 -0
- data/docs/source/images/admin-style-guides-navigation.png +0 -0
- data/docs/source/images/after-re-seeding.png +0 -0
- data/docs/source/images/after-seeding-localhost-3000.png +0 -0
- data/docs/source/images/after-seeding.png +0 -0
- data/docs/source/images/arrow.svg +1 -0
- data/docs/source/images/arrow_white.svg +1 -0
- data/docs/source/images/aws-resource-map.png +0 -0
- data/docs/source/images/backordered-until-output-on-inventory-sku-card.png +0 -0
- data/docs/source/images/before-seeding-localhost-3000.png +0 -0
- data/docs/source/images/before-seeding.png +0 -0
- data/docs/source/images/browsing-workarea-versions-on-the-web.png +0 -0
- data/docs/source/images/bulk-asset-upload-on-assets-index-page.png +0 -0
- data/docs/source/images/bulk-asset-upload-while-editing-content.png +0 -0
- data/docs/source/images/bundle-show-workarea-core.png +0 -0
- data/docs/source/images/bundle-show-workarea.png +0 -0
- data/docs/source/images/calendar-for-backordered-until-field.png +0 -0
- data/docs/source/images/captioned-image-block-in-storefront.png +0 -0
- data/docs/source/images/captioned-image-content-block-storefront-component-style-guide.png +0 -0
- data/docs/source/images/cart-system-content-in-admin.png +0 -0
- data/docs/source/images/cart-system-content-in-storefront.png +0 -0
- data/docs/source/images/checkout-addresses-guest.png +0 -0
- data/docs/source/images/checkout-addresses-user.png +0 -0
- data/docs/source/images/checkout-confirmation.png +0 -0
- data/docs/source/images/checkout-flow-0.png +0 -0
- data/docs/source/images/checkout-flow-1.png +0 -0
- data/docs/source/images/checkout-flow-2.png +0 -0
- data/docs/source/images/checkout-flow-3.png +0 -0
- data/docs/source/images/checkout-flow-4.png +0 -0
- data/docs/source/images/checkout-payment-guest.png +0 -0
- data/docs/source/images/checkout-payment-user.png +0 -0
- data/docs/source/images/checkout-shipping.png +0 -0
- data/docs/source/images/color-picker-component-admin-style-guide.png +0 -0
- data/docs/source/images/color-picker-component-on-content-editing-screen.png +0 -0
- data/docs/source/images/commerce-model-carts-orders.png +0 -0
- data/docs/source/images/commerce-model-order-pricing.png +0 -0
- data/docs/source/images/commerce-model.png +0 -0
- data/docs/source/images/configuring-an-index-pattern-in-kibana.png +0 -0
- data/docs/source/images/content-block-presets.png +0 -0
- data/docs/source/images/content-search-customization.png +0 -0
- data/docs/source/images/country-with-region-data-in-address-form.png +0 -0
- data/docs/source/images/country-without-region-data-in-address-form.png +0 -0
- data/docs/source/images/create-content-block-preset-ui.png +0 -0
- data/docs/source/images/credit-card-icons.png +0 -0
- data/docs/source/images/css-added-through-admin.png +0 -0
- data/docs/source/images/css-admin-ui.png +0 -0
- data/docs/source/images/current-configuration-shown-in-admin-settings.png +0 -0
- data/docs/source/images/customer-impersonation-in-admin.png +0 -0
- data/docs/source/images/customer-impersonation-in-store-front.png +0 -0
- data/docs/source/images/date-filter-same-day.png +0 -0
- data/docs/source/images/developer-toolbar-in-store-front.png +0 -0
- data/docs/source/images/discounts-sorted-by-most-redeemed.png +0 -0
- data/docs/source/images/edit-help-article.png +0 -0
- data/docs/source/images/editing-content-for-search-customization.png +0 -0
- data/docs/source/images/editing-dynamic-captioned-image-block.png +0 -0
- data/docs/source/images/editing-product-fields-in-the-admin.png +0 -0
- data/docs/source/images/editing-search-system-content.png +0 -0
- data/docs/source/images/editing-static-captioned-image-block-custom-icon.png +0 -0
- data/docs/source/images/editing-static-captioned-image-block-default-icon.png +0 -0
- data/docs/source/images/external.svg +1 -0
- data/docs/source/images/favicon_16.png +0 -0
- data/docs/source/images/favicon_180.png +0 -0
- data/docs/source/images/favicon_32.png +0 -0
- data/docs/source/images/filters-all.png +0 -0
- data/docs/source/images/filters-control.png +0 -0
- data/docs/source/images/filters-custom.png +0 -0
- data/docs/source/images/filters-groups.png +0 -0
- data/docs/source/images/filters-material.png +0 -0
- data/docs/source/images/filters-omitted.png +0 -0
- data/docs/source/images/filters-pinned.png +0 -0
- data/docs/source/images/filters-range.png +0 -0
- data/docs/source/images/filters-sorted.png +0 -0
- data/docs/source/images/filters-wrapping-to-second-line-in-admin.png +0 -0
- data/docs/source/images/generic-product-template-images-no-options-selected.png +0 -0
- data/docs/source/images/generic-product-template-images-options-selected.png +0 -0
- data/docs/source/images/generic-template.png +0 -0
- data/docs/source/images/hosting.svg +1 -0
- data/docs/source/images/image-group-content-block-in-storefront.png +0 -0
- data/docs/source/images/images.svg +1 -0
- data/docs/source/images/import-export-screenshot.png +0 -0
- data/docs/source/images/invalid-display.png +0 -0
- data/docs/source/images/itcss.png +0 -0
- data/docs/source/images/kibana-dev-tools-console.png +0 -0
- data/docs/source/images/layout-content-admin-with-2-areas.png +0 -0
- data/docs/source/images/layout-content-admin-with-3-areas.png +0 -0
- data/docs/source/images/link-to-search-system-content.png +0 -0
- data/docs/source/images/logo.svg +1 -0
- data/docs/source/images/menu.svg +2 -0
- data/docs/source/images/mongo-replica-set.svg +1 -0
- data/docs/source/images/multi-column-hero-blocks.png +0 -0
- data/docs/source/images/option-selects-product-template-images-options-selected.png +0 -0
- data/docs/source/images/option-selects-template.png +0 -0
- data/docs/source/images/option-thumbnails-template.png +0 -0
- data/docs/source/images/order-item-total-price-diagram.png +0 -0
- data/docs/source/images/order-pricing-cart-example.png +0 -0
- data/docs/source/images/order-pricing-example-adjustments.png +0 -0
- data/docs/source/images/order-pricing-example-totals.png +0 -0
- data/docs/source/images/order-pricing-placed-order-example.png +0 -0
- data/docs/source/images/order-shipping-total-diagram.png +0 -0
- data/docs/source/images/order-show-with-multiple-tenders.png +0 -0
- data/docs/source/images/order-subtotal-price-diagram.png +0 -0
- data/docs/source/images/order-tax-total-diagram.png +0 -0
- data/docs/source/images/order-total-price-diagram.png +0 -0
- data/docs/source/images/order-total-value-diagram.png +0 -0
- data/docs/source/images/orders-dashboard-links.png +0 -0
- data/docs/source/images/oval.svg +1 -0
- data/docs/source/images/payment-icon-storefront-style-guide.png +0 -0
- data/docs/source/images/people-dashboard-links.png +0 -0
- data/docs/source/images/price-adjustments-diagram.png +0 -0
- data/docs/source/images/price-display-no-options.png +0 -0
- data/docs/source/images/price-display-options-selected.png +0 -0
- data/docs/source/images/pricing-calculators-diagram.png +0 -0
- data/docs/source/images/product-list-content-block-admin.png +0 -0
- data/docs/source/images/product-list-content-block-in-store-front.png +0 -0
- data/docs/source/images/promo-products-excluded-autocomplete-results-after.png +0 -0
- data/docs/source/images/promo-products-excluded-featured-category-results-after.png +0 -0
- data/docs/source/images/promo-products-excluded-recommendations-results-after.png +0 -0
- data/docs/source/images/promo-products-excluded-search-category-results-after.png +0 -0
- data/docs/source/images/promo-products-excluded-search-results-after.png +0 -0
- data/docs/source/images/promo-products-included-autocomplete-results-before.png +0 -0
- data/docs/source/images/promo-products-included-featured-category-results-before.png +0 -0
- data/docs/source/images/promo-products-included-recommendations-results-before.png +0 -0
- data/docs/source/images/promo-products-included-search-category-results-before.png +0 -0
- data/docs/source/images/promo-products-included-search-results-before.png +0 -0
- data/docs/source/images/rails-version-constraint.png +0 -0
- data/docs/source/images/re-enable-discount.png +0 -0
- data/docs/source/images/reading-data.svg +1 -0
- data/docs/source/images/readme-hero.png +0 -0
- data/docs/source/images/redesigned-customized-sort-for-search-results.png +0 -0
- data/docs/source/images/reviews-summary-above-share-buttons.png +0 -0
- data/docs/source/images/reviews-summary-below-product-name.png +0 -0
- data/docs/source/images/reviews-summary-below-share-buttons.png +0 -0
- data/docs/source/images/reviews-summary-removed.png +0 -0
- data/docs/source/images/rsa-fingerprint-for-stash.png +0 -0
- data/docs/source/images/ruby-version-constraint.png +0 -0
- data/docs/source/images/script-tag-added-through-admin.png +0 -0
- data/docs/source/images/search-analysis-admin-alternate-rendering.png +0 -0
- data/docs/source/images/search-analysis-admin.png +0 -0
- data/docs/source/images/search-quality-report.png +0 -0
- data/docs/source/images/search.svg +1 -0
- data/docs/source/images/searching-for-cart-system-content-in-admin.png +0 -0
- data/docs/source/images/searching-for-layout-system-content-in-admin.png +0 -0
- data/docs/source/images/seeded-admin.png +0 -0
- data/docs/source/images/seeds-from-plugins.png +0 -0
- data/docs/source/images/seo-metadata-automation-ui.png +0 -0
- data/docs/source/images/show-password-button.png +0 -0
- data/docs/source/images/storefront-autocomplete.png +0 -0
- data/docs/source/images/storefront-category-summary-content-block.png +0 -0
- data/docs/source/images/storefront-category.png +0 -0
- data/docs/source/images/storefront-product-after-overriding.png +0 -0
- data/docs/source/images/storefront-product-before-overriding.png +0 -0
- data/docs/source/images/storefront-product-browse-page.png +0 -0
- data/docs/source/images/storefront-product-recommendations.png +0 -0
- data/docs/source/images/storefront-product-show-page.png +0 -0
- data/docs/source/images/storefront-requests-and-search-requests.png +0 -0
- data/docs/source/images/storefront-search-request-handling.png +0 -0
- data/docs/source/images/storefront-search-response-creation.png +0 -0
- data/docs/source/images/storefront-search.png +0 -0
- data/docs/source/images/storefront-style-guides-navigation.png +0 -0
- data/docs/source/images/styles.css +3 -0
- data/docs/source/images/tax-categories-ui.png +0 -0
- data/docs/source/images/tax-rates-ui.png +0 -0
- data/docs/source/images/unpurchasable-product.png +0 -0
- data/docs/source/images/url-redirects-filtering.png +0 -0
- data/docs/source/images/utility-nav-area-in-admin.png +0 -0
- data/docs/source/images/utility-nav-area-in-storefront.png +0 -0
- data/docs/source/images/validation-message-in-storefront.png +0 -0
- data/docs/source/images/view-model-interface.png +0 -0
- data/docs/source/images/viewing-workarea-version-in-source.png +0 -0
- data/docs/source/images/workarea.svg +1 -0
- data/docs/source/images/worst-performing-searches-on-results-customization-page.png +0 -0
- data/docs/source/images/writing-data.svg +1 -0
- data/docs/source/index.html.erb +167 -0
- data/docs/source/javascripts/jquery.js +2 -0
- data/docs/source/javascripts/lunr.js +7 -0
- data/docs/source/javascripts/site.js +299 -0
- data/docs/source/javascripts/vendor/highlight.pack.js +2 -0
- data/docs/source/layouts/article.erb +106 -0
- data/docs/source/layouts/bare.erb +46 -0
- data/docs/source/layouts/layout.erb +43 -0
- data/docs/source/release-notes.html.md +258 -0
- data/docs/source/release-notes/workarea-3-0-0.html.md +146 -0
- data/docs/source/release-notes/workarea-3-0-1.html.md +161 -0
- data/docs/source/release-notes/workarea-3-0-10.html.md +39 -0
- data/docs/source/release-notes/workarea-3-0-11.html.md +277 -0
- data/docs/source/release-notes/workarea-3-0-12.html.md +14 -0
- data/docs/source/release-notes/workarea-3-0-13.html.md +153 -0
- data/docs/source/release-notes/workarea-3-0-14.html.md +93 -0
- data/docs/source/release-notes/workarea-3-0-15.html.md +107 -0
- data/docs/source/release-notes/workarea-3-0-16.html.md +36 -0
- data/docs/source/release-notes/workarea-3-0-17.html.md +141 -0
- data/docs/source/release-notes/workarea-3-0-18.html.md +123 -0
- data/docs/source/release-notes/workarea-3-0-19.html.md +160 -0
- data/docs/source/release-notes/workarea-3-0-2.html.md +222 -0
- data/docs/source/release-notes/workarea-3-0-20.html.md +95 -0
- data/docs/source/release-notes/workarea-3-0-21.html.md +168 -0
- data/docs/source/release-notes/workarea-3-0-22.html.md +268 -0
- data/docs/source/release-notes/workarea-3-0-23.html.md +173 -0
- data/docs/source/release-notes/workarea-3-0-24.html.md +19 -0
- data/docs/source/release-notes/workarea-3-0-25.html.md +26 -0
- data/docs/source/release-notes/workarea-3-0-26.html.md +199 -0
- data/docs/source/release-notes/workarea-3-0-27.html.md +113 -0
- data/docs/source/release-notes/workarea-3-0-28.html.md +39 -0
- data/docs/source/release-notes/workarea-3-0-29.html.md +73 -0
- data/docs/source/release-notes/workarea-3-0-3.html.md +35 -0
- data/docs/source/release-notes/workarea-3-0-30.html.md +186 -0
- data/docs/source/release-notes/workarea-3-0-31.html.md +125 -0
- data/docs/source/release-notes/workarea-3-0-32.html.md +73 -0
- data/docs/source/release-notes/workarea-3-0-33.html.md +137 -0
- data/docs/source/release-notes/workarea-3-0-34.html.md +203 -0
- data/docs/source/release-notes/workarea-3-0-35.html.md +205 -0
- data/docs/source/release-notes/workarea-3-0-36.html.md +105 -0
- data/docs/source/release-notes/workarea-3-0-37.html.md +144 -0
- data/docs/source/release-notes/workarea-3-0-38.html.md +73 -0
- data/docs/source/release-notes/workarea-3-0-39.html.md +77 -0
- data/docs/source/release-notes/workarea-3-0-4.html.md +14 -0
- data/docs/source/release-notes/workarea-3-0-40.html.md +130 -0
- data/docs/source/release-notes/workarea-3-0-41.html.md +70 -0
- data/docs/source/release-notes/workarea-3-0-42.html.md +52 -0
- data/docs/source/release-notes/workarea-3-0-43.html.md +72 -0
- data/docs/source/release-notes/workarea-3-0-44.html.md +93 -0
- data/docs/source/release-notes/workarea-3-0-45.html.md +61 -0
- data/docs/source/release-notes/workarea-3-0-46.html.md +171 -0
- data/docs/source/release-notes/workarea-3-0-47.html.md +130 -0
- data/docs/source/release-notes/workarea-3-0-48.html.md +160 -0
- data/docs/source/release-notes/workarea-3-0-49.html.md +28 -0
- data/docs/source/release-notes/workarea-3-0-5.html.md +225 -0
- data/docs/source/release-notes/workarea-3-0-50.html.md +74 -0
- data/docs/source/release-notes/workarea-3-0-51.html.md +61 -0
- data/docs/source/release-notes/workarea-3-0-52.html.md +76 -0
- data/docs/source/release-notes/workarea-3-0-53.html.md +126 -0
- data/docs/source/release-notes/workarea-3-0-54.html.md +112 -0
- data/docs/source/release-notes/workarea-3-0-55.html.md +105 -0
- data/docs/source/release-notes/workarea-3-0-56.html.md +56 -0
- data/docs/source/release-notes/workarea-3-0-57.html.md +82 -0
- data/docs/source/release-notes/workarea-3-0-58.html.md +153 -0
- data/docs/source/release-notes/workarea-3-0-59.html.md +78 -0
- data/docs/source/release-notes/workarea-3-0-6.html.md +165 -0
- data/docs/source/release-notes/workarea-3-0-60.html.md +43 -0
- data/docs/source/release-notes/workarea-3-0-61.html.md +46 -0
- data/docs/source/release-notes/workarea-3-0-62.html.md +23 -0
- data/docs/source/release-notes/workarea-3-0-63.html.md +25 -0
- data/docs/source/release-notes/workarea-3-0-64.html.md +25 -0
- data/docs/source/release-notes/workarea-3-0-65.html.md +37 -0
- data/docs/source/release-notes/workarea-3-0-7.html.md +207 -0
- data/docs/source/release-notes/workarea-3-0-8.html.md +337 -0
- data/docs/source/release-notes/workarea-3-0-9.html.md +196 -0
- data/docs/source/release-notes/workarea-3-1-0.html.md +414 -0
- data/docs/source/release-notes/workarea-3-1-1.html.md +139 -0
- data/docs/source/release-notes/workarea-3-1-10.html.md +19 -0
- data/docs/source/release-notes/workarea-3-1-11.html.md +27 -0
- data/docs/source/release-notes/workarea-3-1-12.html.md +216 -0
- data/docs/source/release-notes/workarea-3-1-13.html.md +113 -0
- data/docs/source/release-notes/workarea-3-1-14.html.md +39 -0
- data/docs/source/release-notes/workarea-3-1-15.html.md +107 -0
- data/docs/source/release-notes/workarea-3-1-16.html.md +188 -0
- data/docs/source/release-notes/workarea-3-1-17.html.md +141 -0
- data/docs/source/release-notes/workarea-3-1-18.html.md +73 -0
- data/docs/source/release-notes/workarea-3-1-19.html.md +137 -0
- data/docs/source/release-notes/workarea-3-1-2.html.md +55 -0
- data/docs/source/release-notes/workarea-3-1-20.html.md +203 -0
- data/docs/source/release-notes/workarea-3-1-21.html.md +205 -0
- data/docs/source/release-notes/workarea-3-1-22.html.md +121 -0
- data/docs/source/release-notes/workarea-3-1-23.html.md +144 -0
- data/docs/source/release-notes/workarea-3-1-24.html.md +94 -0
- data/docs/source/release-notes/workarea-3-1-25.html.md +77 -0
- data/docs/source/release-notes/workarea-3-1-26.html.md +130 -0
- data/docs/source/release-notes/workarea-3-1-27.html.md +70 -0
- data/docs/source/release-notes/workarea-3-1-28.html.md +52 -0
- data/docs/source/release-notes/workarea-3-1-29.html.md +44 -0
- data/docs/source/release-notes/workarea-3-1-3.html.md +185 -0
- data/docs/source/release-notes/workarea-3-1-30.html.md +72 -0
- data/docs/source/release-notes/workarea-3-1-31.html.md +93 -0
- data/docs/source/release-notes/workarea-3-1-32.html.md +61 -0
- data/docs/source/release-notes/workarea-3-1-33.html.md +171 -0
- data/docs/source/release-notes/workarea-3-1-34.html.md +130 -0
- data/docs/source/release-notes/workarea-3-1-35.html.md +179 -0
- data/docs/source/release-notes/workarea-3-1-36.html.md +28 -0
- data/docs/source/release-notes/workarea-3-1-37.html.md +74 -0
- data/docs/source/release-notes/workarea-3-1-38.html.md +61 -0
- data/docs/source/release-notes/workarea-3-1-39.html.md +96 -0
- data/docs/source/release-notes/workarea-3-1-4.html.md +148 -0
- data/docs/source/release-notes/workarea-3-1-40.html.md +126 -0
- data/docs/source/release-notes/workarea-3-1-41.html.md +128 -0
- data/docs/source/release-notes/workarea-3-1-42.html.md +105 -0
- data/docs/source/release-notes/workarea-3-1-43.html.md +37 -0
- data/docs/source/release-notes/workarea-3-1-44.html.md +82 -0
- data/docs/source/release-notes/workarea-3-1-45.html.md +153 -0
- data/docs/source/release-notes/workarea-3-1-46.html.md +91 -0
- data/docs/source/release-notes/workarea-3-1-47.html.md +65 -0
- data/docs/source/release-notes/workarea-3-1-48.html.md +46 -0
- data/docs/source/release-notes/workarea-3-1-49.html.md +23 -0
- data/docs/source/release-notes/workarea-3-1-5.html.md +169 -0
- data/docs/source/release-notes/workarea-3-1-50.html.md +42 -0
- data/docs/source/release-notes/workarea-3-1-51.html.md +25 -0
- data/docs/source/release-notes/workarea-3-1-52.html.md +57 -0
- data/docs/source/release-notes/workarea-3-1-6.html.md +117 -0
- data/docs/source/release-notes/workarea-3-1-7.html.md +176 -0
- data/docs/source/release-notes/workarea-3-1-8.html.md +283 -0
- data/docs/source/release-notes/workarea-3-1-9.html.md +212 -0
- data/docs/source/release-notes/workarea-3-2-0.html.md +1705 -0
- data/docs/source/release-notes/workarea-3-2-1.html.md +216 -0
- data/docs/source/release-notes/workarea-3-2-10.html.md +237 -0
- data/docs/source/release-notes/workarea-3-2-11.html.md +121 -0
- data/docs/source/release-notes/workarea-3-2-12.html.md +145 -0
- data/docs/source/release-notes/workarea-3-2-13.html.md +138 -0
- data/docs/source/release-notes/workarea-3-2-14.html.md +77 -0
- data/docs/source/release-notes/workarea-3-2-15.html.md +130 -0
- data/docs/source/release-notes/workarea-3-2-16.html.md +111 -0
- data/docs/source/release-notes/workarea-3-2-17.html.md +52 -0
- data/docs/source/release-notes/workarea-3-2-18.html.md +44 -0
- data/docs/source/release-notes/workarea-3-2-19.html.md +72 -0
- data/docs/source/release-notes/workarea-3-2-2.html.md +145 -0
- data/docs/source/release-notes/workarea-3-2-20.html.md +93 -0
- data/docs/source/release-notes/workarea-3-2-21.html.md +61 -0
- data/docs/source/release-notes/workarea-3-2-22.html.md +154 -0
- data/docs/source/release-notes/workarea-3-2-23.html.md +130 -0
- data/docs/source/release-notes/workarea-3-2-24.html.md +200 -0
- data/docs/source/release-notes/workarea-3-2-25.html.md +28 -0
- data/docs/source/release-notes/workarea-3-2-26.html.md +94 -0
- data/docs/source/release-notes/workarea-3-2-27.html.md +61 -0
- data/docs/source/release-notes/workarea-3-2-28.html.md +96 -0
- data/docs/source/release-notes/workarea-3-2-29.html.md +126 -0
- data/docs/source/release-notes/workarea-3-2-30.html.md +112 -0
- data/docs/source/release-notes/workarea-3-2-31.html.md +105 -0
- data/docs/source/release-notes/workarea-3-2-32.html.md +56 -0
- data/docs/source/release-notes/workarea-3-2-33.html.md +82 -0
- data/docs/source/release-notes/workarea-3-2-34.html.md +153 -0
- data/docs/source/release-notes/workarea-3-2-35.html.md +91 -0
- data/docs/source/release-notes/workarea-3-2-36.html.md +118 -0
- data/docs/source/release-notes/workarea-3-2-37.html.md +46 -0
- data/docs/source/release-notes/workarea-3-2-38.html.md +23 -0
- data/docs/source/release-notes/workarea-3-2-39.html.md +42 -0
- data/docs/source/release-notes/workarea-3-2-4.html.md +109 -0
- data/docs/source/release-notes/workarea-3-2-40.html.md +25 -0
- data/docs/source/release-notes/workarea-3-2-41.html.md +90 -0
- data/docs/source/release-notes/workarea-3-2-5.html.md +186 -0
- data/docs/source/release-notes/workarea-3-2-6.html.md +173 -0
- data/docs/source/release-notes/workarea-3-2-7.html.md +89 -0
- data/docs/source/release-notes/workarea-3-2-8.html.md +137 -0
- data/docs/source/release-notes/workarea-3-2-9.html.md +219 -0
- data/docs/source/release-notes/workarea-3-3-0.html.md +1272 -0
- data/docs/source/release-notes/workarea-3-3-1.html.md +324 -0
- data/docs/source/release-notes/workarea-3-3-10.html.md +69 -0
- data/docs/source/release-notes/workarea-3-3-11.html.md +72 -0
- data/docs/source/release-notes/workarea-3-3-12.html.md +136 -0
- data/docs/source/release-notes/workarea-3-3-13.html.md +61 -0
- data/docs/source/release-notes/workarea-3-3-14.html.md +196 -0
- data/docs/source/release-notes/workarea-3-3-15.html.md +167 -0
- data/docs/source/release-notes/workarea-3-3-16.html.md +234 -0
- data/docs/source/release-notes/workarea-3-3-17.html.md +82 -0
- data/docs/source/release-notes/workarea-3-3-18.html.md +165 -0
- data/docs/source/release-notes/workarea-3-3-19.html.md +106 -0
- data/docs/source/release-notes/workarea-3-3-2.html.md +72 -0
- data/docs/source/release-notes/workarea-3-3-20.html.md +116 -0
- data/docs/source/release-notes/workarea-3-3-21.html.md +228 -0
- data/docs/source/release-notes/workarea-3-3-22.html.md +125 -0
- data/docs/source/release-notes/workarea-3-3-23.html.md +154 -0
- data/docs/source/release-notes/workarea-3-3-24.html.md +70 -0
- data/docs/source/release-notes/workarea-3-3-25.html.md +114 -0
- data/docs/source/release-notes/workarea-3-3-26.html.md +260 -0
- data/docs/source/release-notes/workarea-3-3-27.html.md +138 -0
- data/docs/source/release-notes/workarea-3-3-28.html.md +147 -0
- data/docs/source/release-notes/workarea-3-3-29.html.md +63 -0
- data/docs/source/release-notes/workarea-3-3-3.html.md +153 -0
- data/docs/source/release-notes/workarea-3-3-30.html.md +102 -0
- data/docs/source/release-notes/workarea-3-3-31.html.md +57 -0
- data/docs/source/release-notes/workarea-3-3-32.html.md +44 -0
- data/docs/source/release-notes/workarea-3-3-33.html.md +114 -0
- data/docs/source/release-notes/workarea-3-3-4.html.md +332 -0
- data/docs/source/release-notes/workarea-3-3-5.html.md +242 -0
- data/docs/source/release-notes/workarea-3-3-6.html.md +100 -0
- data/docs/source/release-notes/workarea-3-3-7.html.md +148 -0
- data/docs/source/release-notes/workarea-3-3-8.html.md +163 -0
- data/docs/source/release-notes/workarea-3-3-9.html.md +93 -0
- data/docs/source/release-notes/workarea-3-4-0.html.md +580 -0
- data/docs/source/release-notes/workarea-3-4-1.html.md +150 -0
- data/docs/source/release-notes/workarea-3-4-10.html.md +72 -0
- data/docs/source/release-notes/workarea-3-4-11.html.md +60 -0
- data/docs/source/release-notes/workarea-3-4-12.html.md +155 -0
- data/docs/source/release-notes/workarea-3-4-2.html.md +188 -0
- data/docs/source/release-notes/workarea-3-4-3.html.md +136 -0
- data/docs/source/release-notes/workarea-3-4-4.html.md +114 -0
- data/docs/source/release-notes/workarea-3-4-5.html.md +275 -0
- data/docs/source/release-notes/workarea-3-4-6.html.md +169 -0
- data/docs/source/release-notes/workarea-3-4-7.html.md +162 -0
- data/docs/source/release-notes/workarea-3-4-8.html.md +95 -0
- data/docs/source/release-notes/workarea-3-4-9.html.md +135 -0
- data/docs/source/search.html.erb +34 -0
- data/docs/source/shared/_header.erb +61 -0
- data/docs/source/shared/_svgs.erb +17 -0
- data/docs/source/style_guide/index.html.erb +382 -0
- data/docs/source/stylesheets/_base.scss +125 -0
- data/docs/source/stylesheets/_components.scss +669 -0
- data/docs/source/stylesheets/_helpers.scss +10 -0
- data/docs/source/stylesheets/_opinions.scss +42 -0
- data/docs/source/stylesheets/_settings.scss +56 -0
- data/docs/source/stylesheets/_typography.scss +119 -0
- data/docs/source/stylesheets/site.css.scss +14 -0
- data/docs/source/stylesheets/vendor/_avalanche.scss +328 -0
- data/docs/source/stylesheets/vendor/_normalize.scss +341 -0
- data/docs/source/stylesheets/vendor/highlight/_tomorrow_night_blue.scss +75 -0
- data/docs/source/upgrade-guides.html.md +18 -0
- data/docs/source/upgrade-guides/workarea-3-4-0.html.md +152 -0
- data/docs/workarea_renderer.rb +8 -0
- data/docs/yarn.lock +2522 -0
- metadata +669 -0
@@ -0,0 +1,165 @@
|
|
1
|
+
---
|
2
|
+
title: Workarea 3.0.6
|
3
|
+
excerpt: #2523
|
4
|
+
---
|
5
|
+
|
6
|
+
# Workarea 3.0.6
|
7
|
+
|
8
|
+
## Fixes Same-Day Date Filtering in Admin
|
9
|
+
|
10
|
+
[#2523](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2523/overview)
|
11
|
+
|
12
|
+
Workarea 3.0.6 fixes search queries where the start and end dates are set to the same value by adding `Workarea::Search::DateFilter` and `Workarea::Search::DateFilterTest` and modifying the implementations of `Workarea::Search::AdminIndexSearch#filters` and `Workarea::Search::AdminOrders#filters` to use instances of the new `DateFilter` instead of `RangeFilter`.
|
13
|
+
|
14
|
+
The change also modifies the following integration test methods.
|
15
|
+
|
16
|
+
- `Workarea::Search::AdminOrdersTest#create_orders`
|
17
|
+
- `Workarea::Search::AdminOrdersTest#test_filter`
|
18
|
+
- `Workarea::Search::AdminOrdersTest#test_aggregations`
|
19
|
+
- `Workarea::Search::AdminOrdersTest#test_sort`
|
20
|
+
- `Workarea::Search::AdminOrdersTest#test_filter_by_date`
|
21
|
+
|
22
|
+

|
23
|
+
|
24
|
+
If your application is extending either of the above `filters` methods or the associated test methods, update your application code accordingly.
|
25
|
+
|
26
|
+
## Fixes Parameters in Admin Dashboard Links
|
27
|
+
|
28
|
+
[#2528](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2528/overview)
|
29
|
+
|
30
|
+
Workarea 3.0.6 fixes the link to _Today's Signups_ on the Admin's _People_ dashboard and fixes the links to _Today's Orders_ and _Yesterday's Orders_ on the _Orders_ dashboard.
|
31
|
+
|
32
|
+

|
33
|
+
|
34
|
+

|
35
|
+
|
36
|
+
The change modifies the _workarea/admin/dashboards/people.html.haml_ Admin view and the following helper methods.
|
37
|
+
|
38
|
+
- `Workarea::Admin::NavigationHelper#todays_signups_path`
|
39
|
+
- `Workarea::Admin::NavigationHelper#todays_orders_path`
|
40
|
+
- `Workarea::Admin::NavigationHelper#yesterdays_orders_path`
|
41
|
+
|
42
|
+
If your applications is extending any of the above methods or overriding the above view, review the pull requests and update your application code accordingly.
|
43
|
+
|
44
|
+
## Fix Empty Country & Region Fields in Storefront
|
45
|
+
|
46
|
+
[#2522](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2522/overview), [#2530](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2530/overview), [#2531](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2531/overview), [#2513](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2513/overview)
|
47
|
+
|
48
|
+
Workarea 3.0.6 fixes _country_ and _region_ fields within Storefront address forms. Prior to this fix, the fields could appear empty on page load or after choosing a saved address, despite the data being present in the model. The change also removes client-side validation on the _region_ field since some countries don't have regions.
|
49
|
+
|
50
|
+
The following sections summarize the changes to Core and Storefront.
|
51
|
+
|
52
|
+
### Core
|
53
|
+
|
54
|
+
The changes modify `Workarea::Address#region_name` and add `Workarea::AddressTest#test_region_name`.
|
55
|
+
|
56
|
+
Also added are `Workarea::Address#as_json` and `Workarea::AddressValidationTest#test_as_json`. The following instance methods are also moved from `Workarea::AddressTest` to `Workarea::AddressValidationTest` due to a module name being corrected.
|
57
|
+
|
58
|
+
- `set_config`
|
59
|
+
- `reset_config`
|
60
|
+
- `test_country_validation`
|
61
|
+
- `test_postal_code_validation`
|
62
|
+
- `test_region_validation`
|
63
|
+
- `test_field_length_validation`
|
64
|
+
|
65
|
+
The changes modify the implementation of the following helper methods.
|
66
|
+
|
67
|
+
- `Workarea::AddressesHelper#country_options`
|
68
|
+
- `Workarea::AddressesHelper#formatted_address`
|
69
|
+
|
70
|
+
### Storefront
|
71
|
+
|
72
|
+
Within the Storefront, the following JavaScript modules are modified.
|
73
|
+
|
74
|
+
- _workarea/storefront/modules/address\_region\_fields.js_
|
75
|
+
- _workarea/storefront/modules/checkout\_addresses\_forms.js_
|
76
|
+
|
77
|
+
The changes modify the _workarea/storefront/shared/\_address\_fields.html.haml_ view and the `Workarea::Storefront::LoggedInCheckoutSystemTest#test_preselecting_addresses_from_saved_addresses` helper method. The following helper methods are added.
|
78
|
+
|
79
|
+
- `Workarea::Storefront::GuestCheckoutSystemTest#save_country_config`
|
80
|
+
- `Workarea::Storefront::GuestCheckoutSystemTest#reset_country_config`
|
81
|
+
- `Workarea::Storefront::GuestCheckoutSystemTest#test_regionless_country`
|
82
|
+
|
83
|
+
If your application is extending any of the above methods or overriding the above JavaScript modules or views, you'll need to to update your application code to ensure these patches are applied correctly.
|
84
|
+
|
85
|
+
## Fixes Async Add to Cart
|
86
|
+
|
87
|
+
[#2527](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2527/overview)
|
88
|
+
|
89
|
+
Async add to cart in the Storefront can fail due to an XHR race condition causing the cookie with the current order id to be replaced after the item is added to cart. Workarea 3.0.6 makes the following changes within the Storefront to mitigate this and similar problems.
|
90
|
+
|
91
|
+
- Modify `Workarea::Storefront::HttpCaching#cache_page` to disable session on pages with HTTP caching.
|
92
|
+
- Modify _workarea/storefront/modules/product\_details\_sku\_selects.js_ to disable the add to cart button while a SKU change request is pending.
|
93
|
+
|
94
|
+
If you are overriding this JavaScript module or extending `cache_page`, you should update your application code to ensure this patch is applied correctly.
|
95
|
+
|
96
|
+
## Fixes Mobile Navigation Behavior
|
97
|
+
|
98
|
+
[#2524](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2524/overview)
|
99
|
+
|
100
|
+
Prior to 3.0.6, clicking a menu within the Storefront's mobile navigation could reload the page instead of asynchronously loading the menu's content. Workarea 3.0.6 fixes this problem by modifying the _workarea/storefront/menus/index.html.haml_ Storefront view, binding the behavior to the presence of the menu's content rather than the taxon's children (which is irrelevant in this context). The change also modifies the `Workarea::Storefront::NavigationSystemTest#test_mobile_navigation_menus` system test method.
|
101
|
+
|
102
|
+
If your application is overriding this view, you should apply this change in your copy of the file to apply the fix.
|
103
|
+
|
104
|
+
## Fix Workarea Configuration within System Tests
|
105
|
+
|
106
|
+
[bff1b44e3f6](https://stash.tools.weblinc.com/projects/WL/repos/workarea/commits/bff1b44e3f67e665ab6cfbcfe9955fbf4783c99a)
|
107
|
+
|
108
|
+
Workarea 3.0.6 changes `Workarea.config` and `Workarea.with_config` to use instance variables rather than thread variables since Capybara runs its server in a separate thread.
|
109
|
+
|
110
|
+
If your application is extending these methods, update your application code accordingly to prevent unexpected behavior in the Test environment.
|
111
|
+
|
112
|
+
## Fixes Fulfillment Quantities in Admin
|
113
|
+
|
114
|
+
[#2508](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2508/overview)
|
115
|
+
|
116
|
+
Workarea 3.0.6 fixes incorrect fulfillment quantities in the Admin when multiple fulfillment events affect a fulfillment item (such as shipping an order, then canceling it).
|
117
|
+
|
118
|
+
The change renames `Workarea::Fulfillment::Package#items` to `Workarea::Fulfillment::Package#events_by_item` and modifies implementation details within the following methods.
|
119
|
+
|
120
|
+
- `Workarea::Admin::FulfillmentViewModel#pending_items`
|
121
|
+
- `Workarea::Admin::FulfillmentViewModel#cancellations`
|
122
|
+
- `Workarea::Admin::PackageViewModel#items`
|
123
|
+
- `Workarea::Storefront::PackageViewModel#items`
|
124
|
+
- `Workarea::Storefront::OrderViewModel#canceled_items`
|
125
|
+
|
126
|
+
If your application is decorating any of these APIs, review the pull request and update your application code accordingly.
|
127
|
+
|
128
|
+
## Fixes Feature Test JavaScript
|
129
|
+
|
130
|
+
[#2512](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2512/overview), [#2515](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2515/overview)
|
131
|
+
|
132
|
+
In the _test_ environment, Workarea loads _workarea/core/feature\_spec\_helper.js_ in the Storefront to explicitly fail various browser feature tests (such as animations and touch support) that are undesirable or incorrectly reported in the test environment (PhantomJS). Prior to 3.0.6, this file also removes from the `html` element several class values that represent successful browser feature tests. However, a race condition may occur, causing the class values to be added after the code to remove them has run. The inclusion of those classes can cause intermittent test failures.
|
133
|
+
|
134
|
+
Workarea 3.0.6 re-orders the contents of the Storefront's _workarea/storefront/head.js.erb_ manifest to avoid this race condition. The change also removes code that is no longer needed after changing the load order.
|
135
|
+
|
136
|
+
If your application is overriding this manifest, you must update your copy of the file to avoid intermittent test failures.
|
137
|
+
|
138
|
+
## Fixes Storefront Error Dialog
|
139
|
+
|
140
|
+
[#2518](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2518/overview)
|
141
|
+
|
142
|
+
Workarea 3.0.6 fixes the Storefront error dialog by correcting the value of `WORKAREA.config.dialog.errorTemplate.path`, which changed in a previous release. The change modifies the Storefront JavaScript config file, _workarea/storefront/config.js.erb_.
|
143
|
+
|
144
|
+
If your application is overriding this file, you'll need to apply this change in your copy. However, overriding this file is not recommended. If you are doing so, consider creating a JavaScript config file for your application, which you can use to modify or replace configuration values as needed.
|
145
|
+
|
146
|
+
## Allows Plugins to Extend Test Setup & Configuration
|
147
|
+
|
148
|
+
[1e2fea5a65b](https://stash.tools.weblinc.com/projects/WL/repos/workarea/commits/1e2fea5a65b1270fb485de185ee5be93f4de9e1d)
|
149
|
+
|
150
|
+
Workarea Testing 3.0.6 allows each Workarea plugin to provide additional test support files within its _test/support/_ directory. These files may be used to add or extend the test setup and configuration as needed for the plugin.
|
151
|
+
|
152
|
+
Applications will `require` these files from each installed plugin when running tests.
|
153
|
+
|
154
|
+
```
|
155
|
+
# workarea-testing/lib/workarea/test_help.rb
|
156
|
+
|
157
|
+
# ...
|
158
|
+
|
159
|
+
Workarea::Plugin.installed.each do |plugin|
|
160
|
+
Dir[plugin.root.join('test', 'support', '**', '*.rb')].each do |support_file|
|
161
|
+
require support_file
|
162
|
+
end
|
163
|
+
end
|
164
|
+
```
|
165
|
+
|
@@ -0,0 +1,43 @@
|
|
1
|
+
---
|
2
|
+
title: Workarea 3.0.60
|
3
|
+
excerpt: Patch release notes for Workarea 3.0.60.
|
4
|
+
---
|
5
|
+
|
6
|
+
# Workarea 3.0.60
|
7
|
+
|
8
|
+
Patch release notes for Workarea 3.0.60.
|
9
|
+
|
10
|
+
## Fix New Release Form Creating Duplicates
|
11
|
+
|
12
|
+
The "with a new release" selection on the release selector pops up a
|
13
|
+
mini form which prompts the user for the name of their new release. This
|
14
|
+
form is dismissed if the user clicks the button, but still allows
|
15
|
+
potential user input (including multiple submits), causing duplicate
|
16
|
+
releases to be accidentally created if one hits enter _and_ clicks the
|
17
|
+
"Add" button before the page refreshes. Prevent this by adding
|
18
|
+
`data-disable-with` to the button so that it can't be submitted twice in
|
19
|
+
the same request cycle.
|
20
|
+
|
21
|
+
### Issues
|
22
|
+
|
23
|
+
- [ECOMMERCE-6837](https://jira.tools.weblinc.com/browse/ECOMMERCE-6837)
|
24
|
+
|
25
|
+
### Pull Requests
|
26
|
+
|
27
|
+
- [4052](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/4052/overview)
|
28
|
+
|
29
|
+
## Fix Duplication in Search Suggestions Indexing
|
30
|
+
|
31
|
+
This is caused by not using the query ID as the ID for the suggestion in
|
32
|
+
its index after the new metrics engine in v3.4. Additionally, the
|
33
|
+
`BulkIndexSearches` job was no longer in the scheduler, it has been
|
34
|
+
re-added.
|
35
|
+
|
36
|
+
### Issues
|
37
|
+
|
38
|
+
- [ECOMMERCE-6927](https://jira.tools.weblinc.com/browse/ECOMMERCE-6927)
|
39
|
+
|
40
|
+
### Pull Requests
|
41
|
+
|
42
|
+
- [4049](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/4049/overview)
|
43
|
+
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
title: Workarea 3.0.61
|
3
|
+
excerpt: Patch release notes for Workarea 3.0.61.
|
4
|
+
---
|
5
|
+
|
6
|
+
# Workarea 3.0.61
|
7
|
+
|
8
|
+
Patch release notes for Workarea 3.0.61.
|
9
|
+
|
10
|
+
## Add Pagination to Shipping Services Admin Index
|
11
|
+
|
12
|
+
When an application has more than 100 shipping services in the database,
|
13
|
+
only the first 100 would show on the index. Additionally, such a large
|
14
|
+
query should be paginated. Render the `workarea/admin/shared/pagination`
|
15
|
+
partial at the bottom of the `<table>` containing all services and
|
16
|
+
paginate the collection of services that are queried for in the
|
17
|
+
controller.
|
18
|
+
|
19
|
+
### Issues
|
20
|
+
|
21
|
+
- [ECOMMERCE-6960](https://jira.tools.weblinc.com/browse/ECOMMERCE-6960)
|
22
|
+
|
23
|
+
### Pull Requests
|
24
|
+
|
25
|
+
- [4089](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/4089/overview)
|
26
|
+
|
27
|
+
|
28
|
+
## Use Translations as a Fallback for Missing Name in Address Region Options
|
29
|
+
|
30
|
+
In the [countries](https://github.com/hexorx/countries) gem,
|
31
|
+
some subdivisions in a country (what Workarea calls "regions") do not
|
32
|
+
have a `:name` field associated with them. Instead of using `#name`,
|
33
|
+
return the value in the `#translations` hash matching the current
|
34
|
+
locale, falling back to `#name` if none can be found. This ensures that
|
35
|
+
the subdivisions of a country can be translated in the addresses region
|
36
|
+
select box.
|
37
|
+
|
38
|
+
### Issues
|
39
|
+
|
40
|
+
- [ECOMMERCE-6958](https://jira.tools.weblinc.com/browse/ECOMMERCE-6958)
|
41
|
+
|
42
|
+
### Pull Requests
|
43
|
+
|
44
|
+
- [4087](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/4087/overview)
|
45
|
+
- [4084](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/4084/overview)
|
46
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
title: Workarea 3.0.62
|
3
|
+
excerpt: Patch release notes for Workarea 3.0.62.
|
4
|
+
---
|
5
|
+
|
6
|
+
# Workarea 3.0.62
|
7
|
+
|
8
|
+
Patch release notes for Workarea 3.0.62.
|
9
|
+
|
10
|
+
## Update Puma and Loosen Constraint
|
11
|
+
|
12
|
+
This gem is fairly stable and doesn't follow strict semantic versioning
|
13
|
+
anyways. Update to the latest Puma to enjoy its much improved reactor
|
14
|
+
internals that will help with concurrency on high traffic deployments.
|
15
|
+
|
16
|
+
### Issues
|
17
|
+
|
18
|
+
- [ECOMMERCE-6984](https://jira.tools.weblinc.com/browse/ECOMMERCE-6984)
|
19
|
+
|
20
|
+
### Pull Requests
|
21
|
+
|
22
|
+
- [4113](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/4113/overview)
|
23
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
---
|
2
|
+
title: Workarea 3.0.63
|
3
|
+
excerpt: Patch release notes for Workarea 3.0.63.
|
4
|
+
---
|
5
|
+
|
6
|
+
# Workarea 3.0.63
|
7
|
+
|
8
|
+
Patch release notes for Workarea 3.0.63.
|
9
|
+
|
10
|
+
## Improve Data Cache Busting for Discounts, SKUs, and Navigation
|
11
|
+
|
12
|
+
Workarea now calls the `BustSkuCache`, `BustDiscountCache`, and
|
13
|
+
`BustNavigationCache` workers inline around every request in the admin,
|
14
|
+
since admins expect this to be occurring in real-time. This also busts the
|
15
|
+
shipping service cache when a `Shipping::Service` is removed.
|
16
|
+
|
17
|
+
### Issues
|
18
|
+
|
19
|
+
- [ECOMMERCE-6981](https://jira.tools.weblinc.com/browse/ECOMMERCE-6981)
|
20
|
+
|
21
|
+
### Pull Requests
|
22
|
+
|
23
|
+
- [4110](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/4110/overview)
|
24
|
+
|
25
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
---
|
2
|
+
title: Workarea 3.0.64
|
3
|
+
excerpt: Patch release notes for Workarea 3.0.64.
|
4
|
+
---
|
5
|
+
|
6
|
+
# Workarea 3.0.64
|
7
|
+
|
8
|
+
Patch release notes for Workarea 3.0.64.
|
9
|
+
|
10
|
+
## Update GeoIP Headers to Latest Version
|
11
|
+
|
12
|
+
For apps that are using the [GeoIP 2 database](https://www.maxmind.com/en/geoip2-databases),
|
13
|
+
the headers have changed to a slightly different syntax, and some of them output
|
14
|
+
different values than they used to. Update `Workarea::Geolocation` to
|
15
|
+
handle both versions of the GeoIP database and to look up the
|
16
|
+
subdivision code by its name through the Countries gem.
|
17
|
+
|
18
|
+
### Issues
|
19
|
+
|
20
|
+
- [ECOMMERCE-7015](https://jira.tools.weblinc.com/browse/ECOMMERCE-7015)
|
21
|
+
|
22
|
+
### Pull Requests
|
23
|
+
|
24
|
+
- [4132](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/4132/overview)
|
25
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
title: Workarea 3.0.65
|
3
|
+
excerpt: Patch release notes for Workarea 3.0.65.
|
4
|
+
---
|
5
|
+
|
6
|
+
# Workarea 3.0.65
|
7
|
+
|
8
|
+
Patch release notes for Workarea 3.0.65.
|
9
|
+
|
10
|
+
## Display Relevant Flash Message When No Shipping Options Are Available
|
11
|
+
|
12
|
+
Improve the user experience when checkout cannot complete due to the
|
13
|
+
site having no available shipping options for the user's shipping
|
14
|
+
address.
|
15
|
+
|
16
|
+
### Issues
|
17
|
+
|
18
|
+
- [ECOMMERCE-6992](https://jira.tools.weblinc.com/browse/ECOMMERCE-6992)
|
19
|
+
|
20
|
+
### Pull Requests
|
21
|
+
|
22
|
+
- [4166](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/4166/overview)
|
23
|
+
|
24
|
+
## Disallow Negative Prices in Seed Data
|
25
|
+
|
26
|
+
It was formerly possible to generate a `Pricing::Price` that had a
|
27
|
+
negative value in seeds. The `ProductsSeeds#perform` method now protects
|
28
|
+
against this.
|
29
|
+
|
30
|
+
### Issues
|
31
|
+
|
32
|
+
- [ECOMMERCE-7062](https://jira.tools.weblinc.com/browse/ECOMMERCE-7062)
|
33
|
+
|
34
|
+
### Pull Requests
|
35
|
+
|
36
|
+
- [4167](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/4167/overview)
|
37
|
+
|
@@ -0,0 +1,207 @@
|
|
1
|
+
---
|
2
|
+
title: Workarea 3.0.7
|
3
|
+
excerpt: #2536
|
4
|
+
---
|
5
|
+
|
6
|
+
# Workarea 3.0.7
|
7
|
+
|
8
|
+
## Fixes Scheduled Jobs for Removed/Renamed Workers
|
9
|
+
|
10
|
+
[#2536](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2536/overview)
|
11
|
+
|
12
|
+
Workarea 3.0.7 modifies the _workarea-core/config/initializers/05\_scheduled\_jobs.rb_ initializer to remove [Sidekiq cron jobs](workers.html#sidekiq-cron-job) that reference [workers](workers.html) that were previously removed or renamed.
|
13
|
+
|
14
|
+
The change removes cron jobs for the `Workarea::UpdateDashboards` and `Workarea::Admin::StatusReporter` workers and adds a job for the `Workarea::StatusReporter` worker.
|
15
|
+
|
16
|
+
After upgrading, the removed jobs may still exist within Sidekiq as retried or scheduled jobs and will raise exceptions when Sidekiq tries to run them. You must manually clear these jobs from Sidekiq within each environment.
|
17
|
+
|
18
|
+
## Fixes Styling of Validation Messages in Storefront
|
19
|
+
|
20
|
+
[#2566](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2566/overview), [#2572](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2572/overview), [e03d11b2e0f](https://stash.tools.weblinc.com/projects/WL/repos/workarea/commits/e03d11b2e0f607eb36d434c3f5e2b24435fec9d9)
|
21
|
+
|
22
|
+

|
23
|
+
|
24
|
+
Prior to 3.0.7, client-side validation messages in the Storefront are unstyled because the class value expected by the stylesheet, _value\_\_error_, isn't present in the DOM. The class value is missing in these versions because the _value_ component was dropped from the Admin in Workarea 3.0, and the Admin and Storefront share client-side validation behavior, which was updated to match the Admin for Workarea 3.0.
|
25
|
+
|
26
|
+
To fix this issue, Workarea 3.0.7 removes the shared validation behavior from Core and adds validation behavior to the Admin and Storefront engines directly. The changes are summarized below.
|
27
|
+
|
28
|
+
- The configuration value `WORKAREA.config.forms.errorLabelClasses` is removed from the Core config file, _workarea/core/config.js_, and added separately to the Admin and Storefront config files, _workarea/admin/config.js.erb_ and _workarea/storefront/config.js.erb_.
|
29
|
+
- The `WORKAREA.forms` JavaScript module is removed from Core, _workarea/core/modules/forms.js_, and added separately to Admin and Storefront, _workarea/admin/modules/forms.js_ and _workarea/storefront/modules/forms.js_.
|
30
|
+
- The Admin and Storefront JavaScript manifests, _workarea/admin/application.js.erb_ and _workarea/storefront/application.js.erb_, are modified to reflect the above changes.
|
31
|
+
- The Storefront application layout, _workarea/storefront/application.html.haml_, is modified to add missing _value_ components needed to style validation messages for the search and email signup forms.
|
32
|
+
|
33
|
+
If your application is overriding any of the above assets, update your copies as needed to fix validation styling in the Storefront.
|
34
|
+
|
35
|
+
## Improves UI for Backordered Until Field
|
36
|
+
|
37
|
+
[#2567](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2567/overview)
|
38
|
+
|
39
|
+
Workarea 3.0.7 modifies the _workarea/admin/inventory\_skus/new.html.haml_ and _workarea/admin/bulk\_action\_product\_edits/edit.html.haml_ Admin views, adding a `data-datepicker-field` attribute to the `backordered_until` field (named _Backorder Ship Date_ in the English translation of the Admin). This change provides a calendar UI for this field when focused.
|
40
|
+
|
41
|
+

|
42
|
+
|
43
|
+
This change also modifies the _workarea/admin/inventory\_skus/\_cards.html.haml_ Admin partial to output a `backordered_until` value for an inventory SKU when present.
|
44
|
+
|
45
|
+

|
46
|
+
|
47
|
+
If your application is overriding any of these views, apply the changes manually to benefit from these improvements.
|
48
|
+
|
49
|
+
## Fixes Display of Admin Filters when Wrapping
|
50
|
+
|
51
|
+
[#2568](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2568/overview)
|
52
|
+
|
53
|
+
Workarea 3.0.7 modifies the _workarea/admin/components/\_browsing\_controls.scss_ Admin stylesheet to fix the display of Admin filters when they wrap to a second line.
|
54
|
+
|
55
|
+

|
56
|
+
|
57
|
+
If your application is overriding this stylesheet, you'll need to apply this patch manually to your copy.
|
58
|
+
|
59
|
+
## Fixes Duplicate ID Values in Admin Content Editing HTML
|
60
|
+
|
61
|
+
[#2544](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2544/overview)
|
62
|
+
|
63
|
+
Workarea 3.0.7 modifies the following Admin partials to fix duplicate ID values in the HTML rendered for the content editing page.
|
64
|
+
|
65
|
+
- _workarea/admin/content/\_edit.html.haml_
|
66
|
+
- _workarea/admin/content/\_form.html.haml_
|
67
|
+
|
68
|
+
If your application is overriding either of these partials, you should apply this patch manually to your copies of the files.
|
69
|
+
|
70
|
+
## Adds Append Points
|
71
|
+
|
72
|
+
[#2533](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2533/overview), [#2534](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2534/overview)
|
73
|
+
|
74
|
+
Workarea 3.0.7 adds the following append point to the Admin.
|
75
|
+
|
76
|
+
_admin.user\_properties_ within _workarea/admin/users/edit.html.haml_
|
77
|
+
|
78
|
+
And adds the following append point to the Storefront.
|
79
|
+
|
80
|
+
_storefront.style\_guide\_components.property_ within _workarea/storefront/style\_guides/components/\_property.html.haml_
|
81
|
+
|
82
|
+
If your application is overriding either of the above views/partials, you may want to add these append points to your copies so that plugins can take advantage of these extension points.
|
83
|
+
|
84
|
+
## Stores Relative Paths for Product Images in Elasticsearch
|
85
|
+
|
86
|
+
[#2561](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2561/overview)
|
87
|
+
|
88
|
+
Prior to 3.0.7, Workarea stores absolute URLs for product images in Elasticsearch. Workarea 3.0.7 uses relative paths instead, which avoids the need to re-index when moving data between environments.
|
89
|
+
|
90
|
+
The PR changes the Core query `Workarea::ProductPrimaryImageUrl`. It modifies the implementation of `Workarea::ProductPrimaryImageUrl#url` and adds `Workarea::ProductPrimaryImageUrl#image` (extracted from `#url`) and `Workarea::ProductPrimaryImageUrl#path`.
|
91
|
+
|
92
|
+
The change also modifies the Core helper `Workarea::ApplicationHelper`. It edits the implementation of `Workarea::ApplicationHelper#product_image_url` and adds `Workarea::ApplicationHelper#product_image_path` (extracted from `#product_image_url`).
|
93
|
+
|
94
|
+
Furthermore, the change modifies the search model method `Workarea::Search::Storefront::Product#primary_image`.
|
95
|
+
|
96
|
+
In the Storefront, the PR changes the view model `Workarea::Storefront::SearchSuggestionViewModel`. It modifies the implementation of `Workarea::Storefront::SearchSuggestionViewModel#image`, adds `Workarea::Storefront::SearchSuggestionViewModel#asset_host`, and also makes the following methods public.
|
97
|
+
|
98
|
+
- `Workarea::Storefront::SearchSuggestionViewModel#source`
|
99
|
+
- `Workarea::Storefront::SearchSuggestionViewModel#name`
|
100
|
+
- `Workarea::Storefront::SearchSuggestionViewModel#type`
|
101
|
+
- `Workarea::Storefront::SearchSuggestionViewModel#image`
|
102
|
+
- `Workarea::Storefront::SearchSuggestionViewModel#suggestion_type`
|
103
|
+
- `Workarea::Storefront::SearchSuggestionViewModel#analytics`
|
104
|
+
- `Workarea::Storefront::SearchSuggestionViewModel#product`
|
105
|
+
- `Workarea::Storefront::SearchSuggestionViewModel#url`
|
106
|
+
|
107
|
+
Finally, the change adds a new view model test case, `Workarea::Storefront::SearchSuggestionViewModelTest`.
|
108
|
+
|
109
|
+
If your application is extending any of the methods affected by this change, you should review the PR and update your application code accordingly to benefit from this change.
|
110
|
+
|
111
|
+
## Changes Uniqueness Strategy for Workers
|
112
|
+
|
113
|
+
[7064a5eed91](https://stash.tools.weblinc.com/projects/WL/repos/workarea/commits/7064a5eed9145b813166bf9827af05f35ca37b12)
|
114
|
+
|
115
|
+
Workarea 3.0.7 modifies the following [workers](workers.html) to use the `until_executing` uniqueness strategy for [unique jobs](workers.html#unique-jobs). In earlier versions, these workers use the `until_and_while_executing` strategy, which can reportedly lead to race conditions that cause workers to not be enqueued.
|
116
|
+
|
117
|
+
- `Workarea::BulkIndexProducts`
|
118
|
+
- `Workarea::IndexAdminSearch`
|
119
|
+
- `Workarea::IndexCategorization`
|
120
|
+
- `Workarea::IndexCategory`
|
121
|
+
- `Workarea::IndexCategoryChanges`
|
122
|
+
- `Workarea::IndexFulfillmentChanges`
|
123
|
+
- `Workarea::IndexPage`
|
124
|
+
- `Workarea::IndexProduct`
|
125
|
+
- `Workarea::IndexProductChildren`
|
126
|
+
- `Workarea::IndexSearchCustomizations`
|
127
|
+
- `Workarea::IndexSkus`
|
128
|
+
- `Workarea::KeepProductIndexFresh`
|
129
|
+
|
130
|
+
If your application is extending the worker options on any of the above workers, you may want to apply this change to your application code to avoid workers not being enqueued.
|
131
|
+
|
132
|
+
## Improves Performance of Indexing Category Changes
|
133
|
+
|
134
|
+
[175f5260b8f](https://stash.tools.weblinc.com/projects/WL/repos/workarea/commits/175f5260b8ffef5926dd89c53fb30cf684bbd882)
|
135
|
+
|
136
|
+
Workarea 3.0.7 modifies the `Workarea::IndexCategoryChanges` worker to improve performance. The change adds an `ignore_if` option to the worker, and modifies the implementation of `Workarea::IndexCategoryChanges#perform`.
|
137
|
+
|
138
|
+
If your application is extending this worker, you may want to update your application code to ensure you are benefiting from this performance improvement.
|
139
|
+
|
140
|
+
## Adds Caching for Default Category of a Product
|
141
|
+
|
142
|
+
[e4b85c1fa4a](https://stash.tools.weblinc.com/projects/WL/repos/workarea/commits/e4b85c1fa4a66bf69517e5a89a898b0b940d7ae0)
|
143
|
+
|
144
|
+
Workarea 3.0.7 modifies `Workarea::Categorization` query, adding a cache within `Workarea::Categorization#default_model` to resolve performance issues reported by systems integrators.
|
145
|
+
|
146
|
+
```
|
147
|
+
# workarea-core/app/queries/workarea/categorization.rb
|
148
|
+
|
149
|
+
module Workarea
|
150
|
+
class Categorization
|
151
|
+
# ...
|
152
|
+
|
153
|
+
def default_model
|
154
|
+
key = "#{@product.cache_key}/default_category"
|
155
|
+
|
156
|
+
@default_model ||= Rails.cache.fetch(key, expires_in: 1.day) do
|
157
|
+
to_models.sort_by(&:created_at).first
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# ...
|
162
|
+
end
|
163
|
+
end
|
164
|
+
```
|
165
|
+
|
166
|
+
If your application is extending this method, ensure your implementation does not conflict with these changes.
|
167
|
+
|
168
|
+
## Fixes Tax Price Adjustment Amount
|
169
|
+
|
170
|
+
[#2553](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2553/overview)
|
171
|
+
|
172
|
+
`Workarea::Pricing::TaxApplier#assign_item_tax` is responsible for writing a price adjustment that adjusts tax to a shipping. Prior to 3.0.7, the amount of that adjustment is incorrect under certain conditions (order affected by multiple tax codes and a discount). Workarea 3.0.7 applies the following changes to fix the issue.
|
173
|
+
|
174
|
+
- Modifies implementation of Core model method `Workarea::Pricing::TaxApplier#assign_item_tax`
|
175
|
+
- Adds Core model method `Workarea::PriceAdjustmentSet#grouped_by_parent`
|
176
|
+
- Adds Core model test `Workarea::Pricing::TaxApplierTest#test_with_multiple_tax_codes_and_discount`
|
177
|
+
|
178
|
+
If your application is extending the tax applier, update your implementation accordingly to fix this issue.
|
179
|
+
|
180
|
+
## Adds Argument for Wait for XHR Timeout Threshold
|
181
|
+
|
182
|
+
[#2552](https://stash.tools.weblinc.com/projects/WL/repos/workarea/pull-requests/2552/overview)
|
183
|
+
|
184
|
+
Workarea 3.0.7 modifies `Workarea::SystemTest#wait_for_xhr`, allowing the maximum wait time to be passed as an argument.
|
185
|
+
|
186
|
+
```
|
187
|
+
# workarea-testing/lib/workarea/system_test.rb
|
188
|
+
# ...
|
189
|
+
|
190
|
+
module Workarea
|
191
|
+
class SystemTest < IntegrationTest
|
192
|
+
# ...
|
193
|
+
|
194
|
+
def wait_for_xhr(time=Capybara.default_max_wait_time)
|
195
|
+
Timeout.timeout(time) do
|
196
|
+
loop until finished_all_xhr_requests?
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# ...
|
201
|
+
end
|
202
|
+
end
|
203
|
+
```
|
204
|
+
|
205
|
+
Use this argument to call the method with an arbitrary timeout threshold that differs from the configured default.
|
206
|
+
|
207
|
+
|