workarea 3.5.16 → 3.5.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +425 -0
  3. metadata +10 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39991bc8577724552faa38d465eaedf2494c0a322ad88f3cd8472b0b9ca21453
4
- data.tar.gz: b9dcc936f93f1af302dfe4fafcf83708d47f22a271efbe10b7e234f97a5f09f8
3
+ metadata.gz: 2dec8f953583f336fb7382b95f2b493c505bbaa7ad8e2fe85ef2251dcddbd307
4
+ data.tar.gz: d9b310272749f52cc8a2e0ea9fd9d5a697daab32677e5102061f45d0710f64b2
5
5
  SHA512:
6
- metadata.gz: 0bf217bed75b403e7ff9677618bb3ac94d76c76d901d7f56f71ff44f3540d584be379f5cf5627940fa755203262476eba7d74cbf3a44a8503dad4f45a950f7e5
7
- data.tar.gz: f2ea65dbb8af02f3858b8164b2575120a00527d7c41716bda0dd284ef3eca3bb3227f7930b8fc53f35658ad4d6b69b518dbb0c8ec6baa753b4579a1f5deaf3ef
6
+ metadata.gz: 6c4c4d2fd36e4d1fc657170e6c460b6a90fde8d502c96607d8b20786c4afe021ee7307654f14a8fbc783021667663e7437f77d1c0ff91e1cb6ecd0a5bfed16b6
7
+ data.tar.gz: 38c7677e07a5e96fd1c7c3fe31bd4774eba62c828bc572d9f5135439157f93773b0592fcf70eed19657c6df0c8089b6aa9035724101d4fbeeb1121997f20e9cc
@@ -1,3 +1,428 @@
1
+ Workarea 3.5.21 (2020-10-14)
2
+ --------------------------------------------------------------------------------
3
+
4
+ * Prevent Clearing Out Navigable When Saving Taxons
5
+
6
+ The `WORKAREA.newNavigationTaxons` module was looking in the wrong place
7
+ for the selected navigable item, therefore the `selected` var would
8
+ always return `undefined`, causing the `navigable_id` param to be
9
+ blank every time. Fix this by querying for the correct DOM node (the
10
+ `[data-new-navigation-taxon]` element) and pulling the selected ID from
11
+ its data.
12
+
13
+ WORKAREA-297
14
+ Fixes #534
15
+
16
+ Tom Scott
17
+
18
+ * Make CSV test more robust to decorations
19
+
20
+ Improve this test so decorating ApplicationDocument to add a field won't
21
+ cause the test to break.
22
+
23
+ Ben Crouse
24
+
25
+ * Refactor product entries to allow accessing logic per-product
26
+
27
+ This allows easier reuse of this logic, specifically for the site
28
+ builder plugin we're working on.
29
+
30
+ Ben Crouse
31
+
32
+ * Fix Test That Will Never Fail
33
+
34
+ This test for the `StatusReporter` worker asserted `2`, which will never
35
+ fail because `2` will never be falsy. Updated the assertion to use the
36
+ intended `assert_equals`
37
+
38
+ Tom Scott
39
+
40
+ * Patch RefererParser for Android URLs
41
+
42
+ Android App URLs have a special `android-app://` scheme that is rejected
43
+ by the currently released version of the `referer-parser` gem. The code
44
+ in this patch already exists in the master branch of the gem, but this
45
+ has not yet been released, and if Android users browse the storefront it
46
+ can generate an error when collecting referer information. In case a
47
+ referer cannot be parsed, Workarea also rescues the error so that
48
+ checkout requests are not blocked.
49
+
50
+ WORKAREA-295
51
+ Fixes #531
52
+
53
+ Tom Scott
54
+
55
+ * Fix skip services
56
+
57
+ This was broken due to the admin-based configuration looking for a Mongo
58
+ connection.
59
+
60
+ Ben Crouse
61
+
62
+ * Try to clarify how to use search synonyms
63
+
64
+ There has been repeated confusion around why/how to use synonyms, so this is an attempt to clarify.
65
+
66
+ Ben Crouse
67
+
68
+
69
+
70
+ Workarea 3.5.20 (2020-09-30)
71
+ --------------------------------------------------------------------------------
72
+
73
+ * Rename Admin::ProductViewModel#options to avoid conflict with normal options method
74
+
75
+
76
+ Matt Duffy
77
+
78
+ * Improve UX of default search filter sizes
79
+
80
+
81
+ Ben Crouse
82
+
83
+ * Improve clarity of discount verbiage
84
+
85
+ This hopes to address some recent confusion around how the discount
86
+ works.
87
+
88
+ Ben Crouse
89
+
90
+ * Fix safe navigation method calls
91
+
92
+ This will raise if the menu content is nil.
93
+
94
+ Ben Crouse
95
+
96
+ * Update preconfigured session length to match recommendations
97
+
98
+
99
+ Ben Crouse
100
+
101
+ * Remove unnecessary Capybara blocking when testing content is not present
102
+
103
+ Capybara's `page.has_content?` and similar methods block until a timeout
104
+ is reached if they can't find the content. This is not what we want if
105
+ we're checking that the content does *not* exist, switch to using
106
+ `refute_text` in these scenarios.
107
+
108
+ The timeout is equal to the number of installed plugins and we have
109
+ client apps with 30+, which means that the 38 instances removed in this
110
+ commit could represent twenty minutes of unnecessary blocking in some
111
+ scenarios.
112
+
113
+ Thanks to James Anaipakos in
114
+ https://discourse.workarea.com/t/capybara-refute-assertions-waiting-full-default-wait-time/1610
115
+ for alerting me to the issue.
116
+
117
+ Jonathan Mast
118
+
119
+ * Handle `nil` Percentages in Tax Rates UI
120
+
121
+ The `TaxApplication` module already handles percentages that are not
122
+ present, but the tax rates UI expects values there. This results in some
123
+ avoidable 500 errors within admin when you blank out a tax rate
124
+ percentage field. To resolve this, Workarea now makes sure that all
125
+ percentages are of type `Float`, so they can be displayed as "0%" in
126
+ the admin whenever a `nil` value is encountered.
127
+
128
+ WORKAREA-278
129
+
130
+ Tom Scott
131
+
132
+ * Fix Precision of Tax Rates UI
133
+
134
+ The `:step` values of the new/edit forms and precision configuration for
135
+ `#number_to_percentage` were not only rounding certain tax rates to an
136
+ incorrect number, but were also showing a bunch of insignificant zeroes
137
+ in the admin for tax rates. To resolve this, configure
138
+ `#number_to_percentage` to have 3-decimal precision, and strip all
139
+ insignificant zeroes from the display, leaving the admin with a much
140
+ nicer percentage display than what was presented before.
141
+
142
+ WORKAREA-278
143
+
144
+ Tom Scott
145
+
146
+ * Redirect back to the previous page after stopping impersonation
147
+
148
+ Currently we redirect to the user's show page, which can be pretty
149
+ disorienting.
150
+
151
+ Ben Crouse
152
+
153
+
154
+
155
+ Workarea 3.5.19 (2020-09-16)
156
+ --------------------------------------------------------------------------------
157
+
158
+ * Fix Editing Product Images in Admin
159
+
160
+ When an image does not include an option, the edit page errors because
161
+ `#parameterize` cannot be called on `@image.option` since that is
162
+ returning `nil`. Additionally, the line of code in which this is called
163
+ is meant to set an ID attribute on the element for which an image is
164
+ rendered. There doesn't seem to be anything in our codebase that uses
165
+ this, and furthermore since there's no validation for unique options per
166
+ set of product images, this could cause a duplicate ID error in certain
167
+ scenarios. To resolve this, the ID attribute has been removed from this
168
+ `<img>` tag.
169
+
170
+ WORKAREA-254
171
+
172
+ Tom Scott
173
+
174
+ * Improve display of disabled toggles
175
+
176
+ When a toggle button is disabled, it should reflect that visually
177
+ instead of just looking like it should be functional.
178
+
179
+ Ben Crouse
180
+
181
+ * Add config to allow defining a default tax code for shipping services
182
+
183
+ WORKAREA-256
184
+
185
+ Matt Duffy
186
+
187
+ * Fix incorrect tracking and metrics after impersonation
188
+
189
+ Not managing the email cookie and unintentional merging of metrics leads
190
+ to incorrect values in the admin.
191
+
192
+ Ben Crouse
193
+
194
+ * Remove CSV Messaging For Options Fields
195
+
196
+ This removes the "Comma separated: just, like, this" messaging and
197
+ tooltip that explains more about comma-separated fields for filters and
198
+ details. Options do not have these same constraints, and this help
199
+ bubble just serves as a point of confusion for admins.
200
+
201
+ WORKAREA-266
202
+
203
+ Tom Scott
204
+
205
+ * Update inventory sku jump to text
206
+
207
+ Co-authored-by: Ben Crouse <bcrouse@workarea.com>
208
+
209
+ Matt Duffy
210
+
211
+ * Make Order::Item#fulfilled_by? the canonical check of item's fulfillment
212
+
213
+ Methods such as #shipping? and #download? defined from available
214
+ fulfillment policies now call #fulfilled_by rather than being called
215
+ by it. This allows #fulfilled_by? to be modified to support more
216
+ complex scenarios like bundled items from kits.
217
+
218
+ WORKAREA-273
219
+
220
+ Matt Duffy
221
+
222
+ * Update admin views for consistent display of inventory availability
223
+
224
+ WORKAREA-262
225
+
226
+ Matt Duffy
227
+
228
+
229
+
230
+ Workarea 3.5.18 (2020-09-01)
231
+ --------------------------------------------------------------------------------
232
+
233
+ * Set Default Inventory Policy to "Standard" in Create Product Workflow
234
+
235
+ When creating a new product through the workflow, setting the
236
+ "Inventory" on a particular SKU would still cause the `Inventory::Sku`
237
+ to be created with the "Ignore" policy rather than "Standard". Setting
238
+ inventory on a SKU now automatically causes the `Inventory::Sku` record
239
+ to be created with a policy of "Standard" so as to deduct the given
240
+ inventory to the varaint. When no inventory is given, Workarea will fall
241
+ back to the default of "Ignore".
242
+
243
+ WORKAREA-265
244
+
245
+ Tom Scott
246
+
247
+ * Fix Admin Configuration for Email Addresses
248
+
249
+ The hard-coded `config.email_from` and `config.email_to` settings
250
+ conflict with the out-of-box administrable configuration for the "Email
251
+ From" and "Email To" settings. This causes a warning for admins that
252
+ explain why the settings on "Email To" and "Email From" won't take
253
+ effect. Since the whole purpose of moving these settings to admin
254
+ configuration was to let admins actually change them, the
255
+ `config.email_from` and `config.email_to` settings have been removed
256
+ from both default configuration and the `workarea:install` generator.
257
+
258
+ WORKAREA-270
259
+
260
+ Tom Scott
261
+
262
+ * Add Permissions To Admin::ConfigurationsController
263
+
264
+ Admins without "Settings" access are no longer able to access the
265
+ administrable configuration settings defined in a Workarea application's
266
+ initializer.
267
+
268
+ WORKAREA-261
269
+
270
+ Tom Scott
271
+
272
+ * Handle missing or invalid current impersonation
273
+
274
+ This surfaced as a random failing test, this should make the feature more robust.
275
+
276
+ Ben Crouse
277
+
278
+ * Fix wrong sorting on default admin index pages
279
+
280
+ The query for an admin index page can end up inadvertantly introduce a
281
+ scoring variation, which can cause results to not match the `updated_at`
282
+ default sort.
283
+
284
+ This makes `updated_at` the true default sort, and allows the general
285
+ admin search to override, where `_score` is still the desired default
286
+ sort.
287
+
288
+ Ben Crouse
289
+
290
+ * Visually improve changesets card when no changesets
291
+
292
+
293
+ Ben Crouse
294
+
295
+ * Add modifier for better disabled workflow button display
296
+
297
+ This makes it visually clearer that a workflow button is disabled.
298
+
299
+ Ben Crouse
300
+
301
+ * Add asset index view heading append point
302
+
303
+
304
+ Ben Crouse
305
+
306
+ * Pass user into append point
307
+
308
+
309
+ Ben Crouse
310
+
311
+ * Add append point for storefront admin toolbar
312
+
313
+
314
+ Ben Crouse
315
+
316
+ * Add Rack env key for checking whether it's an asset request
317
+
318
+ This is useful for plugins like site builder. This also reduces
319
+ allocations by moving the regex into a constant and consolidates the
320
+ check from multiple spots.
321
+
322
+ This also skips force passing Rack::Cache for asset requests if you're
323
+ an admin (minor performance improvement).
324
+
325
+ Ben Crouse
326
+
327
+ * Add param to allow disabling the admin toolbar in the storefront
328
+
329
+ Used in the site builder plugin. Add disable_admin_toolbar=true to the
330
+ query string to turn off the admin toolbar for that page.
331
+
332
+ Ben Crouse
333
+
334
+ * Add minor remote selects features to support site builder
335
+
336
+ This includes an option for the dropdown parent, and an option to allow
337
+ autosubmitting a remote select upon selection.
338
+
339
+ Ben Crouse
340
+
341
+ * Fix constant loading error related to metrics
342
+
343
+ Sometimes an error will be raised when Workarea middleware is doing
344
+ segmentation logic around `Metrics::User`.
345
+
346
+ Ben Crouse
347
+
348
+ * Move rake task logic into modules
349
+
350
+ This will allow decorating this logic for plugins or builds that need
351
+ to. For example, site builder needs to search-index resources that are
352
+ unique per-site.
353
+
354
+ Ben Crouse
355
+
356
+ * Add append point for admin top of page
357
+
358
+
359
+ Ben Crouse
360
+
361
+
362
+
363
+ Workarea 3.5.17 (2020-08-19)
364
+ --------------------------------------------------------------------------------
365
+
366
+ * Fix missing release changes for CSV importing with embedded models
367
+
368
+ Trying to update an embedded model via CSV import with a release causes
369
+ an existing changeset for the root model to get destroyed. This happens
370
+ because the CSV import calls `#save` on the root, which has no changes
371
+ so it removes the changeset.
372
+
373
+ This patch fixes by iterating over the models the CSV row might affect
374
+ and calling `#save` on the embedded ones first (if necessary) to ensure
375
+ the changesets get correctly created and to avoid calling the save on
376
+ the root without changes which removes the existing changeset.
377
+
378
+ Ben Crouse
379
+
380
+ * Return Status of `Checkout#update`
381
+
382
+ For APIs and other consumers of the Checkout model, return a boolean
383
+ response from the `#update` method to signify whether the operation
384
+ succeeded or failed. This response is used directly in the API to return
385
+ an `:unprocessable_entity` response code when an update operation fails.
386
+
387
+ WORKAREA-253
388
+
389
+ Tom Scott
390
+
391
+ * Remove port from host configuration in installer
392
+
393
+ Ports aren't part of hosts, this causes problems when the value is used
394
+ like a true host.
395
+
396
+ This PR also fixes mailer links with missing ports as a result of this
397
+ change.
398
+
399
+ Ben Crouse
400
+
401
+ * Bump Chartkick to fix bundler audit warning
402
+
403
+ The vulnerability won't affect Workarea in use, but it'll be easier to fix builds doing this.
404
+
405
+ Ben Crouse
406
+
407
+ * Allow inquiry subjects to be localized
408
+
409
+ WORKAREA-238
410
+
411
+ Matt Duffy
412
+
413
+ * Update inquiry subject documentation
414
+
415
+ WORKAREA-238
416
+
417
+ Matt Duffy
418
+
419
+ * Remove order summary append point from mailer that is meant for storefront views
420
+
421
+
422
+ Matt Duffy
423
+
424
+
425
+
1
426
  Workarea 3.5.16 (2020-07-22)
2
427
  --------------------------------------------------------------------------------
3
428
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.16
4
+ version: 3.5.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-22 00:00:00.000000000 Z
11
+ date: 2020-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea-core
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.5.16
19
+ version: 3.5.21
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.5.16
26
+ version: 3.5.21
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: workarea-storefront
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.5.16
33
+ version: 3.5.21
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.5.16
40
+ version: 3.5.21
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: workarea-admin
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 3.5.16
47
+ version: 3.5.21
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 3.5.16
54
+ version: 3.5.21
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: workarea-testing
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 3.5.16
61
+ version: 3.5.21
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 3.5.16
68
+ version: 3.5.21
69
69
  description: Workarea is an enterprise-grade Ruby on Rails commerce platform.
70
70
  email:
71
71
  - bcrouse@workarea.com