Patch release notes for Workarea 3.3.15.
Fix Autoloading For Sidekiq Callback Workers
Because Sidekiq callback workers hold references to autoloaded code, they too must be autoloaded. This is irrelevant in non-development environments.
Use HTTP Proxy When Fetching Image URLs With Dragonfly
Fix timeout issues when imports attempt to pull in images from external
URLs by running all background requests in Dragonfly through the
$HTTP_PROXY. This is active on all non-local environments that
Workarea runs under (not development or test).
Add Pricing Details Append Point
Adds a new append point to the
template, which allows for PDP-specific content rendered underneath the
Improve Auto-Configured Mongoid Max Pool Size
Addresses performance concerns with Mongoid by setting its
max_pool_size to 100 by default, and allowing further configuration
$WORKAREA_MONGOID_MAX_POOL_SIZE environment variable.
Clear Unique Jobs Daily
Sidekiq Unique Jobs (in v5.x) does not clear out the key(s) it stores in Redis to maintain job uniqueness. This results in out-of-memory (or disk space) errors on the Redis server cluster. Workarea will now these unique job keys out every day manually (with a scheduled job) in order to avoid this problem.
Remove Dependencies Installation from
Since installing gems is already handled in the
script, doing so in the main production container is not necessary and
thus can be removed from the Dockerfile in production.
Safelist Kubernetes Health Checks In
Kubernetes health checks use the non-standard IP address
to access the Workarea app server, causing an error when being
interpreted by the
IPAddr class in Ruby. Prevent this error by
adding the aforementioned IP address to the safelist prior to any other
rules, the short-circuit prevents the IP from ever being instantiated as
Improve Accuracy Of Placed Orders Query
nil as the
:placed_at timestamp for a given Order
caused it to be included in the query for all placed orders, because of
how MongoDB interprets the
$exists query. Since the value was
explicitly set on the document, that document's attribute is considered to be
in existence, however, Workarea applications (by way of Mongoid) do not distinguish
null value and a missing value. Update the
Workarea::Order.placed query to reflect this, filtering by whether
:placed_at is greater than (
$gt) the first possible UNIX epoch time