Skip to content

Releases: silverstripe-terraformers/silverstripe-embargo-expiry

1.0.2

21 Apr 00:50
cb5ea3b
Compare
Choose a tag to compare

Added new extension points:

  • PublishTargetJob now invokes afterPublishTargetJob() after $target->publishRecursive() completes.
  • UnPublishTargetJob now invokes afterUnPublishTargetJob() after $target->doUnpublish() completes.

1.0.1

14 Mar 23:06
Compare
Choose a tag to compare
  • 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

13 Mar 02:02
Compare
Choose a tag to compare

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 now addNoticeOrWarningFields.
  • addPublishingScheduleFields is now addDesiredDateFields.
  • addPublishingScheduleMessageFields is now addScheduledDateFields.

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 forEmbargoExpiryFluentExtension.
  • 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 to extensions.yml and added the CMSMain extension by default.
  • Updated README.

v1.0.0 Release Candidate 4

15 Feb 02:19
Compare
Choose a tag to compare
Pre-release
  • 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

25 Sep 04:49
Compare
Choose a tag to compare
Pre-release

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

14 Sep 02:38
Compare
Choose a tag to compare
Pre-release

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

22 Jul 20:54
Compare
Choose a tag to compare
Pre-release
  • No support for Workflow