ApostropheCMS v2.64.1 Release Notes
Release Date: 2018-08-31 // over 5 years ago-
โ Unit tests passing.
โ Regression tests passing.
๐ Improved Apostrophe's ability to redisplay the appropriate widget, array element, and field and call the user's attention to it when a schema field error is not detected until server-side validation takes place. This addresses problems that come up when fields become
required
at a later time, and/or data was originally created with an earlier release of Apostrophe that did not enforcerequired
in all situations. Browser-side validation is still preferred for ease of use but server-side validation no longer creates situations the user cannot easily resolve.Introduced the
apos.global.whileBusy
method. This method accepts a function to be run while no one is permitted to access the site. The provided function may return a promise, and that promise resolves before the site becomes accessible again. In the presence ofapostrophe-workflow
it is possible to mark only one locale as busy.๐ By default, the
apos.locks.lock
method waits until the lock is available before proceeding. However there is now await
option which can be set tofalse
to avoid waiting at all, or to any number of milliseconds. If the method fails because ofwait
, the error is the stringlocked
.๐ The
apos.locks.lock
method also now accepts awaitForSelf
option. By default, if the same process invokesapos.locks.lock
for the same lock in two requests simultaneously, one of the two will receive an error. WithwaitForSelf
, the second invocation will wait for the first to resolve and then obtain the lock.