Releases: silverstripe-terraformers/silverstripe-embargo-expiry
1.0.2
Added new extension points:
PublishTargetJob
now invokesafterPublishTargetJob()
after$target->publishRecursive()
completes.UnPublishTargetJob
now invokesafterUnPublishTargetJob()
after$target->doUnpublish()
completes.
1.0.1
- Allow a different date to be passed to queueJob methods.
- Add model validation when enforce sequential dates is set
- Remove incorrect param declaration.
1.0.0
NON BACKWARDS COMPATIBLE CHANGE - PERMISSIONS
The following permissions have had their names changed. The reason for this change is that (I didn't realise) any permission name with the prefix of CMS_ACCESS_
will be accepted if the user has the permission of CMS_ACCESS_LeftAndMain
(see Permission::checkMember()
).
CMS_ACCESS_AddEmbargoExpiry
CMS_ACCESS_RemoveEmbargoExpiry
// Are now:
AddEmbargoExpiry
RemoveEmbargoExpiry
When you upgrade to 1.0.0
, if you have user groups other than just ADMIN
, you will need to update those user groups to have these new permissions.
NON BACKWARDS COMPATIBLE CHANGE - METHOD NAME CHANGES
It's now or never, and I feel that these method names are much more descriptive of what they actually represent.
EmbargoExpiryExtension
:
addEmbargoExpiryNoticeFields
is nowaddNoticeOrWarningFields
.addPublishingScheduleFields
is nowaddDesiredDateFields
.addPublishingScheduleMessageFields
is nowaddScheduledDateFields
.
Bugfix
Publish button was not being removed when the page was reloaded with an existing PublishOnDate
.
Misc Changes
- Reduce complexity of
EmbargoExpiryExtension
methods. - Added
Fluent
as a dev-dependency. - Added test coverage for
EmbargoExpiryFluentExtension
. - Update linting and tests for Extensions.
- Updated doc blocks and conditional statements in Jobs.
- Update user docs.
- Added
.gitattributes
. - Add license/contribution/changelog/etc docs.
- Scrutinizer fixes.
- Improved readability of JS.
- Renamed
config.yml
toextensions.yml
and added theCMSMain
extension by default. - Updated README.
v1.0.0 Release Candidate 4
- Remove PHP 5.6 support
- Increase test coverage to 78% (still more to come)
- Bug: EmbargoExpiryGridFieldItemRequestExtension Actions are readonly if object isn't editable
v1.0.0 Release Candidate 3
Security patch
Don't return true
from can..()
methods, instead return null
so that we fall back to SiteTree
permission checks for true
criteria.
v1.0.0 Release Candidate 2
Fluent
Added an Extension that can be used with DataObjects that implement FluentVersionedExtension
.
Fluent is not a dependency for this module, as such, no unit tests are provided.
Advanced workflow
In preparation for Advance Workflow splitting out their Embargo/Expiry feature:
- Added "DesiredPublishDate"
- Added "DesiredUnPublishDate"
- Fixed a tonne of linting
- Added a separate UnPublishTargetJob
- Added some more extension points
- Updated some logic to support the idea of a user setting a date, but it not being used immediately
Job queue
Added some extension points so that devs can change what queue type is used for their jobs.
Test coverage
Added job processing to test coverage.
v1.0.0 Release Candidate
- No support for Workflow