-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'Internal/craft/3.1' into feature/projec…
…t-config # Conflicts: # composer.json # src/base/ApplicationTrait.php # src/config/GeneralConfig.php # src/controllers/BaseEntriesController.php # src/controllers/CategoriesController.php # src/controllers/ElementsController.php # src/controllers/EntriesController.php # src/controllers/EntryRevisionsController.php # src/controllers/GlobalsController.php # src/controllers/UsersController.php # src/controllers/VolumesController.php # src/elements/Asset.php # src/elements/Category.php # src/elements/Entry.php # src/elements/actions/DeleteAssets.php # src/elements/db/EntryQuery.php # src/fields/Matrix.php # src/helpers/Db.php # src/helpers/ElementHelper.php # src/services/Api.php # src/services/Categories.php # src/services/Deprecator.php # src/services/EntryRevisions.php # src/services/Fields.php # src/services/Globals.php # src/services/Matrix.php # src/services/Plugins.php # src/services/Sections.php # src/services/Sites.php # src/services/Tags.php # src/services/UserGroups.php # src/services/UserPermissions.php # src/services/Users.php # src/services/Volumes.php # src/web/assets/cp/CpAsset.php # src/web/assets/cp/dist/js/Craft.js # src/web/assets/cp/dist/js/Craft.min.js # src/web/assets/cp/dist/js/Craft.min.js.map # src/widgets/QuickPost.php
- Loading branch information
Showing
368 changed files
with
14,241 additions
and
2,625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,32 @@ | ||
# Release Notes for Craft CMS 3.1 (WIP) | ||
|
||
### Added | ||
- Elements, field layouts, and sites are now soft-deleted. | ||
- Entries, categories, and users can now be restored within the Control Panel by searching for `is:trashed` and clicking the “Restore” button. | ||
- Custom fields can now opt out of being included in elements’ search keywords. ([#2600](https://github.com/craftcms/cms/issues/2600)) | ||
- Added the `softDeleteDuration` config setting. | ||
- Added the `gc` console command, which can be used to run garbage collection tasks. | ||
- Added the `trashed` element query param, which can be used to query for elements that have been soft-deleted. | ||
- Added `craft\base\Element::EVENT_AFTER_RESTORE`. | ||
- Added `craft\base\Element::EVENT_BEFORE_RESTORE`. | ||
- Added `craft\base\ElementInterface::afterRestore()`. | ||
- Added `craft\base\ElementInterface::beforeRestore()`. | ||
- Added `craft\base\Field::EVENT_AFTER_ELEMENT_RESTORE`. | ||
- Added `craft\base\Field::EVENT_BEFORE_ELEMENT_RESTORE`. | ||
- Added `craft\base\FieldInterface::afterElementRestore()`. | ||
- Added `craft\base\FieldInterface::beforeElementRestore()`. | ||
- Added `craft\db\Command::restore()`. | ||
- Added `craft\db\Command::softDelete()`. | ||
- Added `craft\db\Migration::restore()`. | ||
- Added `craft\db\Migration::softDelete()`. | ||
- Added `craft\db\SoftDeleteTrait`, which can be used by Active Record classes that wish to support soft deletes. | ||
- Added `craft\elements\actions\Restore`, which can be included in elements’ `defineActions()` methods to opt into element restoration. | ||
- Added `craft\services\Categories::getGroupByUid()`. | ||
- Added `craft\services\Elements::restoreElement()`. | ||
- Added `craft\services\Elements::EVENT_AFTER_RESTORE_ELEMENT`. | ||
- Added `craft\services\Elements::EVENT_BEFORE_RESTORE_ELEMENT`. | ||
- Added `craft\services\Fields::restoreLayoutById()`. | ||
- Added `craft\services\Gc` for handling garbage collection tasks. | ||
- Added `craft\services\Sections::getSectionByUid()`. | ||
- Added `craft\services\Sites::restoreSiteById()`. | ||
- Added the ActiveRecord Soft Delete Extension for Yii2. |
Oops, something went wrong.