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