workarea 3.5.18 → 3.5.23

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 +350 -0
  3. metadata +10 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcdbd6652646920730267f54167ad2a9b21a93e6d493407071f2a582077c9070
4
- data.tar.gz: 6d56267bd238a34dd139ca782a655af668fa5c1e7917fea85d89c3d9e20661e7
3
+ metadata.gz: b59e7c7a5613d6fdb84185e26d3a546e6608da318f53f54d829b9a0f1e49098f
4
+ data.tar.gz: e5be3470bb9703c60be7b9fa2326f05349280ba766118779a5e093f08aec40fd
5
5
  SHA512:
6
- metadata.gz: c418107191ab420c3410d039c4ac9b1d420f9211fccd892e1b666df0b03805db5046729a432b45f8a24682b64d14632818a28e869fbd498aa61698e301e4c47d
7
- data.tar.gz: 2dacbf6f593f2c33c8170a8ed48c54427b3ab12083c316198232eb8bb65eb9596ef8d7e46b8d4a5a92a5884ad96c3498790f73f0061d1e9a739c77f9ea73513b
6
+ metadata.gz: 9d36e7e06d17ea04ef2f45de939e76d423c9b8c883f14932ca4dd412c5a5743e71499ba4980b0db8339f19fd96312aa1f1e924af5071b185bc663bf59ffa5b0f
7
+ data.tar.gz: cef39ca5f623ecd006409b5e7a83c864461bae89cb1aa16bfb659ac4e5cb5d7f0eb919715a6657de8671e25cc95aaf0f4f0b26dbe07a140b74e175f84a098aed
@@ -1,3 +1,353 @@
1
+ Workarea 3.5.23 (2020-11-25)
2
+ --------------------------------------------------------------------------------
3
+
4
+ * Bump jquery-rails to patch XSS vulnerabilities
5
+
6
+
7
+ Ben Crouse
8
+
9
+ * Add warning to inform developers why redirects aren't working locally
10
+
11
+ This has confused developers a couple of times, so hopefully adding a
12
+ warning will help.
13
+
14
+ Ben Crouse
15
+
16
+ * Fix Elasticsearch indexes when changing locales in tests
17
+
18
+ This ensures the proper search indexes are in place when you switch
19
+ locales for an integration test.
20
+
21
+ Ben Crouse
22
+
23
+ * Prevent Error on Missing Custom Template View Model Class
24
+
25
+ Typically, custom product templates use their own subclass of
26
+ `Workarea::Storefront::ProductViewModel`, but this isn't supposed to be
27
+ necessary if there's no custom logic that needs to be in the view model
28
+ layer. However, when developers tried to add a custom template without
29
+ the view model, they received an error. To prevent this, Workarea will
30
+ now catch the `NameError` thrown by `Storefront::ProductViewModel.wrap`
31
+ in the event of a custom product template not having a view model
32
+ defined.
33
+
34
+ WORKAREA-304
35
+
36
+ Tom Scott
37
+
38
+ * Fix Missing Instance Variable In Cart Items View
39
+
40
+ The `@cart` instance variable was only being conditionally defined if
41
+ `current_order.add_item` succeeded. This caused an error if `#add_item`
42
+ happens to fail when calling `POST /cart/items` from the storefront,
43
+ resulting in a 500 error. To prevent this error, the definition of this
44
+ variable has been moved above the condition.
45
+
46
+ WORKAREA-303
47
+
48
+ Tom Scott
49
+
50
+ * Shorten index name
51
+
52
+ Mongo will raise when index names exceed a certain length. For example,
53
+ having a long Workarea.config.site_name could cause this.
54
+
55
+ Ben Crouse
56
+
57
+ * Fix missing jump to positions breaking jump to
58
+
59
+ Ruby raises when nil is compared, so default these values.
60
+
61
+ Ben Crouse
62
+
63
+
64
+
65
+ Workarea 3.5.22 (2020-11-03)
66
+ --------------------------------------------------------------------------------
67
+
68
+ * Only merge recent views on tracking updates
69
+
70
+ Merging all metrics has caused a lot of confusion in testing, and the
71
+ only core use-case this matters for is recent views. So this change only
72
+ merges recent views when metrics are updated.
73
+
74
+ Ben Crouse
75
+
76
+ * Delete old user metrics after merging
77
+
78
+ This will ensure the consistency of user-based reports.
79
+
80
+ Ben Crouse
81
+
82
+ * Be more specific when matching reverts in changelogs
83
+
84
+ This change will allow starting commit messages with the word Revert
85
+ without the changelog task ignoring the commit.
86
+
87
+ Ben Crouse
88
+
89
+ * Add metrics explanation for users
90
+
91
+ This additional explanation is meant to communicate why customer
92
+ insights may occasionally mismatch with the orders card.
93
+
94
+ Ben Crouse
95
+
96
+ * Add Note To Category Default Sort Edit
97
+
98
+ The selected `default_sort` of a category will be always used in the
99
+ storefront. If the category contains featured products, this sort will
100
+ be labelled "Featured", and this might prove confusing to some admins.
101
+ To resolve this, add a note just below the dropdown indicating what will
102
+ occur when products are featured in the category.
103
+
104
+ WORKAREA-289
105
+
106
+ Tom Scott
107
+
108
+ * Include referrer in ending impersonation redirect fallbacks
109
+
110
+ When ending an impersonation, this changes to allow redirecting to the referrer
111
+ if the return_to parameter isn't present. Better UX for ending
112
+ impersonations while working in the admin.
113
+
114
+ WORKAREA-293
115
+
116
+ Ben Crouse
117
+
118
+ * Merge metrics when a user's email is updated
119
+
120
+ This ensures the old metrics info stays around after the email change.
121
+
122
+ WORKAREA-294
123
+
124
+ Ben Crouse
125
+
126
+ * Fix release changeset indexing code duplication
127
+
128
+ Cleanup duplicate logic so decoration for product indexes can happen in
129
+ a single place.
130
+
131
+ WORKAREA-292
132
+
133
+ Ben Crouse
134
+
135
+
136
+
137
+ Workarea 3.5.21 (2020-10-14)
138
+ --------------------------------------------------------------------------------
139
+
140
+ * Prevent Clearing Out Navigable When Saving Taxons
141
+
142
+ The `WORKAREA.newNavigationTaxons` module was looking in the wrong place
143
+ for the selected navigable item, therefore the `selected` var would
144
+ always return `undefined`, causing the `navigable_id` param to be
145
+ blank every time. Fix this by querying for the correct DOM node (the
146
+ `[data-new-navigation-taxon]` element) and pulling the selected ID from
147
+ its data.
148
+
149
+ WORKAREA-297
150
+ Fixes #534
151
+
152
+ Tom Scott
153
+
154
+ * Make CSV test more robust to decorations
155
+
156
+ Improve this test so decorating ApplicationDocument to add a field won't
157
+ cause the test to break.
158
+
159
+ Ben Crouse
160
+
161
+ * Refactor product entries to allow accessing logic per-product
162
+
163
+ This allows easier reuse of this logic, specifically for the site
164
+ builder plugin we're working on.
165
+
166
+ Ben Crouse
167
+
168
+ * Fix Test That Will Never Fail
169
+
170
+ This test for the `StatusReporter` worker asserted `2`, which will never
171
+ fail because `2` will never be falsy. Updated the assertion to use the
172
+ intended `assert_equals`
173
+
174
+ Tom Scott
175
+
176
+ * Fix skip services
177
+
178
+ This was broken due to the admin-based configuration looking for a Mongo
179
+ connection.
180
+
181
+ Ben Crouse
182
+
183
+ * Try to clarify how to use search synonyms
184
+
185
+ There has been repeated confusion around why/how to use synonyms, so this is an attempt to clarify.
186
+
187
+ Ben Crouse
188
+
189
+
190
+
191
+ Workarea 3.5.20 (2020-09-30)
192
+ --------------------------------------------------------------------------------
193
+
194
+ * Rename Admin::ProductViewModel#options to avoid conflict with normal options method
195
+
196
+
197
+ Matt Duffy
198
+
199
+ * Improve UX of default search filter sizes
200
+
201
+
202
+ Ben Crouse
203
+
204
+ * Improve clarity of discount verbiage
205
+
206
+ This hopes to address some recent confusion around how the discount
207
+ works.
208
+
209
+ Ben Crouse
210
+
211
+ * Fix safe navigation method calls
212
+
213
+ This will raise if the menu content is nil.
214
+
215
+ Ben Crouse
216
+
217
+ * Update preconfigured session length to match recommendations
218
+
219
+
220
+ Ben Crouse
221
+
222
+ * Remove unnecessary Capybara blocking when testing content is not present
223
+
224
+ Capybara's `page.has_content?` and similar methods block until a timeout
225
+ is reached if they can't find the content. This is not what we want if
226
+ we're checking that the content does *not* exist, switch to using
227
+ `refute_text` in these scenarios.
228
+
229
+ The timeout is equal to the number of installed plugins and we have
230
+ client apps with 30+, which means that the 38 instances removed in this
231
+ commit could represent twenty minutes of unnecessary blocking in some
232
+ scenarios.
233
+
234
+ Thanks to James Anaipakos in
235
+ https://discourse.workarea.com/t/capybara-refute-assertions-waiting-full-default-wait-time/1610
236
+ for alerting me to the issue.
237
+
238
+ Jonathan Mast
239
+
240
+ * Handle `nil` Percentages in Tax Rates UI
241
+
242
+ The `TaxApplication` module already handles percentages that are not
243
+ present, but the tax rates UI expects values there. This results in some
244
+ avoidable 500 errors within admin when you blank out a tax rate
245
+ percentage field. To resolve this, Workarea now makes sure that all
246
+ percentages are of type `Float`, so they can be displayed as "0%" in
247
+ the admin whenever a `nil` value is encountered.
248
+
249
+ WORKAREA-278
250
+
251
+ Tom Scott
252
+
253
+ * Fix Precision of Tax Rates UI
254
+
255
+ The `:step` values of the new/edit forms and precision configuration for
256
+ `#number_to_percentage` were not only rounding certain tax rates to an
257
+ incorrect number, but were also showing a bunch of insignificant zeroes
258
+ in the admin for tax rates. To resolve this, configure
259
+ `#number_to_percentage` to have 3-decimal precision, and strip all
260
+ insignificant zeroes from the display, leaving the admin with a much
261
+ nicer percentage display than what was presented before.
262
+
263
+ WORKAREA-278
264
+
265
+ Tom Scott
266
+
267
+ * Redirect back to the previous page after stopping impersonation
268
+
269
+ Currently we redirect to the user's show page, which can be pretty
270
+ disorienting.
271
+
272
+ Ben Crouse
273
+
274
+
275
+
276
+ Workarea 3.5.19 (2020-09-16)
277
+ --------------------------------------------------------------------------------
278
+
279
+ * Fix Editing Product Images in Admin
280
+
281
+ When an image does not include an option, the edit page errors because
282
+ `#parameterize` cannot be called on `@image.option` since that is
283
+ returning `nil`. Additionally, the line of code in which this is called
284
+ is meant to set an ID attribute on the element for which an image is
285
+ rendered. There doesn't seem to be anything in our codebase that uses
286
+ this, and furthermore since there's no validation for unique options per
287
+ set of product images, this could cause a duplicate ID error in certain
288
+ scenarios. To resolve this, the ID attribute has been removed from this
289
+ `<img>` tag.
290
+
291
+ WORKAREA-254
292
+
293
+ Tom Scott
294
+
295
+ * Improve display of disabled toggles
296
+
297
+ When a toggle button is disabled, it should reflect that visually
298
+ instead of just looking like it should be functional.
299
+
300
+ Ben Crouse
301
+
302
+ * Add config to allow defining a default tax code for shipping services
303
+
304
+ WORKAREA-256
305
+
306
+ Matt Duffy
307
+
308
+ * Fix incorrect tracking and metrics after impersonation
309
+
310
+ Not managing the email cookie and unintentional merging of metrics leads
311
+ to incorrect values in the admin.
312
+
313
+ Ben Crouse
314
+
315
+ * Remove CSV Messaging For Options Fields
316
+
317
+ This removes the "Comma separated: just, like, this" messaging and
318
+ tooltip that explains more about comma-separated fields for filters and
319
+ details. Options do not have these same constraints, and this help
320
+ bubble just serves as a point of confusion for admins.
321
+
322
+ WORKAREA-266
323
+
324
+ Tom Scott
325
+
326
+ * Update inventory sku jump to text
327
+
328
+ Co-authored-by: Ben Crouse <bcrouse@workarea.com>
329
+
330
+ Matt Duffy
331
+
332
+ * Make Order::Item#fulfilled_by? the canonical check of item's fulfillment
333
+
334
+ Methods such as #shipping? and #download? defined from available
335
+ fulfillment policies now call #fulfilled_by rather than being called
336
+ by it. This allows #fulfilled_by? to be modified to support more
337
+ complex scenarios like bundled items from kits.
338
+
339
+ WORKAREA-273
340
+
341
+ Matt Duffy
342
+
343
+ * Update admin views for consistent display of inventory availability
344
+
345
+ WORKAREA-262
346
+
347
+ Matt Duffy
348
+
349
+
350
+
1
351
  Workarea 3.5.18 (2020-09-01)
2
352
  --------------------------------------------------------------------------------
3
353
 
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.18
4
+ version: 3.5.23
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-09-01 00:00:00.000000000 Z
11
+ date: 2020-11-25 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.18
19
+ version: 3.5.23
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.18
26
+ version: 3.5.23
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.18
33
+ version: 3.5.23
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.18
40
+ version: 3.5.23
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.18
47
+ version: 3.5.23
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.18
54
+ version: 3.5.23
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.18
61
+ version: 3.5.23
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.18
68
+ version: 3.5.23
69
69
  description: Workarea is an enterprise-grade Ruby on Rails commerce platform.
70
70
  email:
71
71
  - bcrouse@workarea.com