Patch release notes for Workarea 3.3.19.
Update Products in Category After Rules Are Changed
Administrators had noticed in the past that the categories listing in
the product does not always seem up-to-date with what is true on the
storefront. This is because for categories where no product rules exist,
Workarea::IndexCategorization job does not run. Workarea now
ensures that the category is removed before checking for product rules,
removing it on the product's "Categories" list in the admin, and
improving understandability for admin users. Additionally, a new
IndexProductRule is enqueued whenever product rules change, updating
categorization of products immediately when a rule is altered.
guest_browsing Cookie When Guest Browsing Ceases
When an admin stops browsing as guest, Workarea previously did not clear out the guest_browsing cookie, causing the UI to appear as though they were still browsing as guest. This cookie is now deleted when admins click the "Stop Guest Browsing" button in the toolbar (or elsewhere).
asset_host Prior To App Configuration
In v3.3.x, the
Rails.configuration.asset_host is configured
automatically before initialization. However, apps/plugins can still get
into a situation where this value is not automatically set, resulting in
unexpected behavior. To remedy this, Workarea now auto-configures the
asset host in Rails'
before_configuration block, which runs directly
Rails::Application is inherited in config/application.rb,
in contrast to
before_initialize which runs "near the beginning of the
Rails initialization process".
More Info: https://guides.rubyonrails.org/configuring.html#initialization-events
Look Up Tax Rate Using First 5 Digits of US Postal Codes if No Exact Matches Found
Some address verification systems will automatically include the last 4 digits of a given postal code in the US, which can be problematic if tax tables do not include this information. When finding tax rates for a given postal code in the US, search the DB for the first 5 digits of the postal code in addition to the full passed-in value if there are no matches for the latter, since most tax tables don't include the last 4 digit suffix of a ZIP code.