documentation fixes and improvements
[bse.git] / Changes.txt
CommitLineData
fc3434bd
TC
1BSE 0.23 - unreleased
2========
3
31976291
TC
4Bug fixes:
5
6 - <:.set ... :> would treat an unknown value (ENOIMPL) as an error
7 rather, instead of leaving the code in place
8
76e3caff
TC
9 - removed the unused Squirrel::ImageEditor and AdminUtil modules.
10
11 - column names in generated queries are now quoted using the
12 identifier quote returned by the database driver.
13
14 - handle language ids of the form xx_XX.charset correctly when
15 performing message lookups.
16
31976291
TC
17Enchancements:
18
fc3434bd
TC
19 - modify Generate::* classes to build templates by filename instead
20 of reading them into memory. This will allow caching by
21 Squirrel::Template.
22 https://rt4.develop-help.com/Ticket/Display.html?id=1341
23
24 - add [basic].cache_templates_locally to configure Squirrel::Template
25 to cache templates in memory. This removes the overhead of
26 (de-)serializing from/to an external cache, but may increase memory
27 use.
28
0af36ae1
TC
29 - tags can now depend on a tag from another category being selected
30 before being displayed.
31
32 - lookups in sql_statements are now cached.
33 https://rt4.develop-help.com/Ticket/Display.html?id=1352
34
451a9a40
TC
35 - added collection_with_tags() to TagOwners (so it's usable for
36 Articles and Products, etc) to allow filtering the various
37 collection methods by tag.
38
39 - added bse.articles and bse.products for access to the Articles and
40 Products collection classes.
31976291 41
76e3caff
TC
42 - order payment would fail if the CC fields weren't present.
43
44 - search index depth can now be configured in the config file
45
46 - some tests now clean up the articles they create more reliably
47
48 - $DATADIR is now configurable as [paths].data
49
50 - $IMAGEDIR and $IMAGES_URI are now reliably configurable as
51 [paths].images and [uri].images.
52
53 - better perl 5.16 compatibility (resolved some warnings)
54
55 - installation now updates installed scripts with the test.cfg
56 configured perl.
57
58 - tests now handle missing optional modules correctly
59
60 - added iterateBy() to Squirrel::Table for memory efficient iteration
61 over query results.
62
63 - revamped imageclean.pl:
64
65 - output is now controlled by templates
66
67 - added a command-line tool
68
69 - web UI is now access controlled
70
71 - the web UI now provides a preview of the work to be done, with
72 checkboxes to control which clean ups are done.
73
74 - now accounts for public files controlled by BSE::TB::Files.
75
76Documentation:
77
78 - documented [basic].all_dynamic
79
80 - minor documentation updates to Squirrel::Table
81
82Templates:
83
84 - admin.pl now properly passes the admin state to bse.* template
85 variables
86
87 - added templates admin/imageclean/intro.tmpl,
88 admin/imageclean/preview.tmpl and admin/imageclean/final.tmpl for
89 the updated imagclean.pl
90
3e9576c3 91BSE 0.22 - 08 Jun 2012
1e60d3c4
TC
92========
93
673086da
TC
94Bug fixes:
95
96 - the search index builder was ignoring configured field scores.
97
26b58957
TC
98 - the customer is no longer asked to select a shipper and shipping is
99 set to zero for orders where all products have zero weight.
100 https://rt4.develop-help.com/Ticket/Display.html?id=1328
101
f2df73fd
TC
102 - template engine: template tags implemented as a literal were no
103 replaced when that literal was false. (4a446ac3)
104 https://rt4.develop-help.com/Ticket/Display.html?id=1342
105
82d7cc3e
TC
106 - the body text markup doclink[] accepts link aliases, but didn't
107 allow for "-" in the alias. All "-" and document aliases are
108 permitted.
109
5287a8fd
TC
110 - shopadmin order_paid and order_unpaid are now recorded in the audit
111 log instead of being added to special instructions.
112 https://rt4.develop-help.com/Ticket/Display.html?id=1326
113
24185186
TC
114 - the scale() thumbnail operator, when used with a background would
115 paste rather than rubthrough() the source, leaving tranparent areas
116 black. If a fill is supplied, it is now always used for
117 transparent images.
118
2549999a
TC
119 - generate the correct refresh URL when the user isn't logged on
120 attempting to request an admin page.
121
673086da
TC
122Enhancements:
123
1e60d3c4
TC
124 - automatic image insertion can now be disabled globally or on a
125 per-article basis.
126 https://rt4.develop-help.com/Ticket/Display.html?id=1331
127
513aad53
TC
128 - templating re-re-work:
129 - still backward compatible
130 - new, faster, more regular processing internal to tags:
131 - variables supplied by code, similarly to TT, Mason
132 - macro definitions
133 - call macros or files with parameters and localized variables
134 - integration into BSE itself still limited, but one step at a
135 time.
136
200069c7
TC
137 - briefly documented bsexlsprod.pl (site/docs/bse_import.pod)
138
139 - bsexlsprod.pl can now update article tags
140
141 - bsexlsprod.pl can now update tiered pricing
142
0190baba
TC
143 - make the eimage variable available on the admin/image_edit template
144 and use it to display a thumbnail.
145 https://rt4.develop-help.com/Ticket/Display.html?id=1290
146
a45d595e
TC
147 - add the Courier::FixedAU shipping driver.
148
5287a8fd
TC
149 - that an order was manually paid is now recorded separately from the
150 payment type.
151 https://rt4.develop-help.com/Ticket/Display.html?id=1325
152
153 - the shopadmin order_paid target now accepts a paymentType variable
154 to optionally set a new payment type on manual payment
155 https://rt4.develop-help.com/Ticket/Display.html?id=1325
156
157 - the shopadmin order_paid and order_unpaid now require csfrp tokens.
158
1b37733d
TC
159 - siteuser admin view and edit targets now also accept userId to
160 identify the user.
161 https://rt4.develop-help.com/Ticket/Display.html?id=1351
162
29ff344f
TC
163Templates:
164
165 - admin/order_detail.tmpl - the product tag now uses tag_article as
166 it should.
167
5287a8fd
TC
168 - admin/order_detail.tmpl - added order, payment_types and
169 payment_type_desc as template variables.
170
a2ed0315
TC
171 - admin/subscr/list - isubscription is now an object tag, giving
172 access to the is_removable method
173 https://rt4.develop-help.com/Ticket/Display.html?id=1323
174
175 - admin/subscr/edit, admin/subscr/detail - subscription is now an
176 object tag
177
e860a1d9 178BSE 0.21 - 07 Mar 2012
1be64ebd
TC
179========
180
b25f4d0f
TC
181 - Squirrel::Template has largely been rewritten performing a parsing
182 then a processing step rather than doing many, many s/// over the
183 template text.
184
bf7dd331
TC
185 - verbose output of generate.pl is now based on the template
186 admin/generate.tmpl
1be64ebd 187
bf7dd331 188 - add the referer tag to all dynamic pages
1be64ebd 189
b23cb063
TC
190 - added [undeletable articles] to bse.cfg as a supplement to
191 @NO_DELETE. @NO_DELETE is now deprecated and may be removed in a
192 future release of BSE.
193 https://rt4.develop-help.com/Ticket/Display.html?id=1209
1be64ebd 194
595e72db
TC
195 - iterator inlines can now be filtered (Adrian Oldham)
196
197 - added some more extension to content type mappings for video
198 formats (Adrian Oldham)
199
8ddd08f7
TC
200 - the shopadmin order list targets are now much more efficient - they
201 no longer load the entire order table, are paginated, and let the
202 data do the selection of matching records.
203
204 NOTE: this removes some backward compatibility - iterator filters
205 no longer work and a new tag, all_order_count can be used to fetch
206 order counts. Extra search parameters have been provided to filter
207 the results.
208
209 - added a new adminurl2 tag where the second parameter is a target.
210
3d99ca04
TC
211 - siteusers.pl now flashes all success messages, and success message
212 text is fetched from the messages table
213
54fada18
TC
214 - added is_released and is_expired methods to Article. This should
215 be visible to article tags in templates.
216
41cbde00
TC
217 - more consistently use tag_article on the admin side of the site.
218
c4df989c
TC
219 - make tag_article smarter so it can call more methods
220
47e33eae
TC
221 - consistently use admin_tags instead of the old collection of admin
222 tag methods.
223
a8d74b1e
TC
224 - tag_object (used for object style tags) now checks
225 restricted_method() if implemented for the object.
226
227 - the editor file iterator is now an object iterator, and the efile
228 tag on the file edit page is now an object tag
229
230 - add file_exists to BSE::TB::Article::File
231 https://rt4.develop-help.com/Ticket/Display.html?id=1288
232
5f3c8bf8
TC
233 - refactored makeIndex.pl into makeIndex.pl (web) and
234 util/bse_makeindex.pl (console).
235 Output from these is now encoded using the default BSE encoding.
236 makeIndex.pl can now produce HTML output using admin/makeindex.tmpl
237 The bse_make_index background process now uses the console version.
238 https://rt4.develop-help.com/Ticket/Display.html?id=1301
239
ec5a2133
TC
240 - admin-mode article links now ignore the admin value stored in the
241 article record and always return a link to admin.pl for that
242 article.
243
8329ce1b
TC
244 - add a missing comma to BSE::UI, preventing a warning.
245
bf7dd331
TC
246Bug fixes:
247
248 - thumb.pl would return content types with doubled image/ prefixes,
249 eg. image/image/jpeg
e728024c 250
c710d90c
TC
251 - update BSE::AdminUsers, BSE::ChangePW, BSE::UI::AdminReport to use
252 more modern admin tags
0611c441 253 https://rt4.develop-help.com/Ticket/Display.html?id=1234 (partial)
c710d90c 254 (Adrian Oldham for BSE::ChangePW, BSE::UI::AdminReport)
0611c441 255
5b2aab45
TC
256 - with [site].secureadmin enabled, refreshes to the secure admin url
257 could cause a 500 error.
258
8fb3d3d4
TC
259 - check nomatch fields even for blank fields. Otherwise a field with
260 a LF or CR would not be caught by the dh_one_line validation rule.
261
a8a25cfd
TC
262 - saving a tag from the tag manager without changing the name or
263 deleting a tag that doesn't exist would result in a 500 error.
264 https://rt4.develop-help.com/Ticket/Display.html?id=1287
265
6e56cf75
TC
266 - setting an unfilled order's stage to "shipped" now sets whoFilled
267 and whenFilled for the order.
268 https://rt4.develop-help.com/Ticket/Display.html?id=1286
269
d9b0f5e1
TC
270 - an empty title (but no missing) when saving a user or group file no
271 longer defaults that to the file display name.
272 https://rt4.develop-help.com/Ticket/Display.html?id=1303
273
274 - validation errors are now correctly displayed for adding a user or
275 group file
276 https://rt4.develop-help.com/Ticket/Display.html?id=1302
277
278 - supplying an empty content type when saving a user or group file
279 now resets the content type to that derived from the file's display
280 name.
281 https://rt4.develop-help.com/Ticket/Display.html?id=1304
282
2c2618b0
TC
283 - fix the message id for the "move up a level to section" message in
284 the possible parents drop down.
285
c263b35e
TC
286 - error_img would produce an inline stack trace from an internal
287 error on a failed logon. (logon.pl)
288
8ddd08f7
TC
289Templates:
290
291 - admin/order_list*.tmpl - see the order list re-work above.
292
f8d5dfae 293 - you can now use <:- and -:> as tag delimiters to consume whitespace
b25f4d0f
TC
294 on the left and right of the tag.
295
296 - Squirrel::Template now documents the template syntax more regularly.
297
298 - Squirrel::Template is now much faster in most cases.
299
300 - admin/subscr/detail - the subscription orders iterator now includes
301 the billFirstName, billLastName and filled fields from the
302 order. (Adrian Oldham)
f8d5dfae 303
8ddd08f7
TC
304Internals:
305
306 - added a getCount() method to retrieve a count of matching records.
307
2897cd79 308BSE 0.20 - 22 Dec 2011
6abd8ce8
TC
309========
310
b27af108
TC
311Please read any NOTES below carefully.
312
6abd8ce8
TC
313 - store a truncated card number for credit card payments (both online
314 and email). Reinstate storage of the card holder name in ccName.
315 ccNumberHash is no longer populated.
316
317 - ifNeedDelivery (checkoutnew_base.tmpl) wasn't being reset on order
318 submission.
319
b27af108
TC
320 - the site_users table has been refactored into the bse_siteusers
321 table, removing the bill* fields and adding deliv* fields. Other
322 obsolete fields have also been removed.
323
324 NOTE: To preserve your registered users on upgrade, run the
325 provided schema/site_users_to_members.sql SQL through the mysql
326 tool. This will create entries in bse_siteusers corresponding to
327 those in your original site_users table. You MUST start with an
328 empty bse_siteusers table or the script will throw an error.
329
330 NOTE: Any configuration such as report definitions, query group
331 definitions should now refer to bse_siteusers instead of
332 site_users.
333
334 - Data::UUID 1.148 is now required
335
be262d15
TC
336 - remove target entry for the shop confirm action, which was
337 otherwise removed years ago. RT #1280.
338
fb10b11e
TC
339 - logon now starts a new session, preserving the cart. As a
340 side-effect this logs out the admin user, though this may
341 change. RT #1279.
342
343 - passing a new session id between the SSL and non-SSL versions of
344 the site is now validated. RT #1279.
345
f13d1b43
TC
346 NOTE: This requires that [site].secret be set to a value specific
347 to your site. Running:
348
349 openssl rand -base64 32
350
351 generates a suitable value.
352
fb10b11e
TC
353 - delete the session data for a site users session when they logoff.
354 As a side effect this will log out the admin user.
355
cd1c5bfa
TC
356 - allow dynamic content pages to display flashed messages with the
357 message tag. Note that not all actions flash a message.
358
6abd8ce8
TC
359Template updates:
360
b27af108
TC
361 - checkoutpay_base.tmpl - the name of the cardHolder payment field is
362 now ccName.
363
364 - admin/order_detail.tmpl - order ccPAN can be used to display the
365 truncated card number.
366
367 - user/options_billing_base.tmpl and its generated template have been
368 renamed with s/billing/delivery/ since it now contains delivery
369 details. The link to it from user/options(_base).tmpl has also
370 been updated.
371
372 - user/options_base.tmpl, user/register_base.tmpl,
373 admin/users/(add,edit,view).tmpl have been updated to match the new
374 site users schema.
375
fb10b11e
TC
376 - user/logon_base.tmpl, user/register_base.tmpl - updated the
377 "nothing is more permanent that a temporary solution" link text for
378 logon, register and recover password.
379
cd1c5bfa
TC
380 - shopitem.tmpl - display the flashed message, if any.
381
62e56298
TC
382 - removed the unused checkoutcard and checkoutconfirm templates
383
5f3c8bf8
TC
384 - added admin/generate.tmpl for generate.pl progress output.
385
386 - added admin/makeindex.tmpl for search index verbose output
387
b27af108 388Internals:
6abd8ce8 389
b27af108
TC
390 - Squirrel::Table->make now looks for default_I<colname> when looking
391 for default values for a column.