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