Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Commit

Permalink
4.0.0-beta1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Hoenich committed Apr 16, 2019
1 parent c1a5931 commit c52bd3d
Show file tree
Hide file tree
Showing 26 changed files with 798 additions and 255 deletions.
5 changes: 0 additions & 5 deletions .entity-helper.php

This file was deleted.

123 changes: 120 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,125 @@
## 4.0.0
* Lightning Layout now uses core's Layout Builder. (Issue #2952620)
## 4.0.0-beta1
* Updated Lightning Layout to 2.0-beta1, which:
* Uses Layout Builder in place of Panels and Panelizer. However, both modules
are still shipped with Lightning Layout, allowing you to migrate your
layouts to Layout Builder manually as needed. An automated migration path
will eventually be introduced, but until then, any Panelizer/Panels layouts
you have should continue to work as before. (Issue #2952620)

## 3.3.0-beta1
* Updated Lightning Core to 4.0-beta1, which:
* Updated Drupal core to 8.7.0-beta1.
* Updated Lightning API to 4.0-beta1, which:
* Updated Lightning Core to 4.0.0-beta1, which requires Drupal core 8.7.0 and
replaces the contributed JSON:API module with the core version.
* Updated Lightning Workflow to 3.6, which:
* Fixed a bug that could occur with Drupal 8.7 when installing the
moderation_history view.

## 3.2.7
* Updated Lightning Core to 3.9, which:
* Security updated Drupal core to 8.6.13 (SA-CORE-2019-004).
* Removed deprecated function calls. (Issue #3034195)
* Updated Lightning API to 3.5, which:
* Adds support for Drupal core 8.7.
* Updates Consumers module to 1.9 and unpins its Composer
constraint.
* Updated Lightning Media to 3.8, which:
* Adds support for Drupal core 8.7.
* Updates Entity Browser to 2.1.
* Adds a link to the settings form on the module list page.
(Issue #3033650)
* Adds descriptions to administrative links. (Issue #3034042)
* Updated Lightning Layout to 1.7, which:
* Adds support for Drupal core 8.7.
* Adds a description to an administrative link. (Issue #3034041)
* Updated Lightning Workflow to 3.5, which:
* Adds support for Drupal core 8.7.
* Fixed missing configure button for Lightning Scheduler module in
list page. (Issue #3034047)
* Replaces entity_load() calls with entity load(). (Issue #3033637)
* Adds a missing description in Lightning Scheduler module in
links.menu.yml file. (Issue #3034048)

## 3.2.6
* Updated Lightning Core to 3.7, which:
* Security updated Drupal core to 8.6.10 (SA-CORE-2019-003).
* Security updated Metatag to 1.8 (SA-CONTRIB-2019-021).
* Now supports attaching pictures to user accounts, and includes a Compact
display which displays the user's picture and name, both optionally linked
to the user's profile. (Issue #3026959)
* Now includes a "Long (12-hour)" date format, which formats dates and times
like "April 1, 2019 at 4:20 PM".
* Fixed a bug where Lightning's utility to convert descendant profiles to the
Drupal 8.6-compatible format would fail if the active profile was itself a
descendant profile. (Issue #2997990)
* Fixed an "undefined index" bug that could happen when processing form elements
which can have legends. (Issue #3018499)
* Namespaced all declared dependencies. (Issue #2995711)
* Updated Lightning API to 3.4, which:
* Security updated JSON API to 2.3 (SA-CONTRIB-2019-019).
* Updated Lightning Media to 3.6, which has the following changes:
* The media browser is now displayed in a modal dialog by default, which
is activated by pressing the "Add media" button. When embedding media in
the WYSIWYG editor, the media browser is unchanged (the entity browser
used for WYSIWYG has been split out into a completely separate entity
browser configuration in order to facilitate this). (GitHub #80)

## 3.2.5
* Security updated Acquia Connector to 1.16 (SA-CONTRIB-2019-014)
* Updated Consumers to 1.8.
* Updated JSON:API to 2.1.

## 3.2.4
* Updated Lightning Core to 3.5, which:
* Security updated Drupal core to 8.6.6.
* Will automatically clear all persistent caches _before_ running database
updates with Drush 9.
* Updated Lightning API to 3.2, which introduces no user-facing changes.
* Updated Lightning Layout to 1.6, which introduces no user-facing changes.
* Updated Lightning Media to 3.5, which:
* Added a configuration option to control whether newly-created media fields
(i.e., entity reference fields which reference media items) will be
configured to use the media browser by default. (Issue #2945153)
* Made the "Show in media library" field non-translatable by default in every
media type included with Lightning Media. (Issue #3014913)
* Updated Lightning Workflow to 3.3, which:
* Made the time steps in Lightning Scheduler's UI configurable.
(Issue #2981050)
* Fixed a bug in the Moderation History where the users and timestamps didn't
correctly correspond to the actual revisions. (Issue #3022898)
* Updated Moderation Dashboard to its latest stable version.
* Refactored underlying scheduler UI code to be less sensitive to time zones.
* Added project namespaces to all stated dependencies. (Issue #2999322)
* Changes were made to the internal testing infrastructure, but nothing that
will affect users of Lightning.

## 3.2.3
* Lightning API now defaults to the 2.x branch of the JSON:API module.
[See the release notes for the 2.x branch](https://www.drupal.org/project/jsonapi/releases/8.x-2.0-beta1).

If you must use the 1.x branch, you can switch to it with the following commands:

```
composer require drupal/lightning_api:^2.7 --no-update
composer update drupal/lightning_api --with-all-dependencies
```
* Updated Lightning Layout to 1.5.
* Updated Lightning Media to 3.4.
* Updated Lightning Workflow to 3.2.

## 3.2.2
* Updated Lightning Core to 3.2, which security updates Drupal core
to 8.6.2.

## 3.2.1
* Updated Lightning Media to 3.1.
* Updated Lightning Workflow to 3.1.

## 3.2.0
* Drupal core has been updated to 8.6.0.
* Updated Lightning Core to 3.0, which requires Drupal core 8.6.0.
* Updated Lightning Workflow to 3.0.
* Updated Lightning Media to 3.0.
* Pathauto is now installed by default. (#588)
* The `lightning:subprofile` command is no longer compatible with the
sub-profile system from Drupal 8.5.x. The `dependencies` list is replaced by
Expand Down
124 changes: 120 additions & 4 deletions UPDATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,98 @@ are currently running 2.2.0 and are trying to update to 2.2.6, you will need to
follow the instructions for updating from 2.2.0 to 2.2.1, then from 2.2.1 to
2.2.2, in that order.

### 3.x to 4.x
There is currently no migration between 3.x and 4.x. A migration will be
provided once Lightning Layout 2.x is stable.
### 3.3.0-beta1 to 4.0.0-beta1
Lightning 4.0.0-beta1 includes Lightning Layout 2.0, which uses Layout Builder
in place of Panels and Panelizer. However, both modules are still packaged with
Lightning Layout, allowing you to migrate your layouts manually to Layout
Builder as needed. An automated migration path will eventually be introduced,
but until then, any Panelizer/Panels layouts you have should continue to work
as before.

### 3.2.7 to 3.3.0-beta1
There are no manual update steps for this version.

### 3.2.6 to 3.2.7
There are no manual update steps for this version.

### 3.2.5 to 3.2.6
* If you would like to enable support for user account pictures (avatars):
1. Create a new image field on user accounts. In Lightning Core, this field
is called "Picture" by default and its machine name is user_picture.
2. Set the file default-avatar.png, contained in the `images` directory
of Lightning Core, to be the default image for the field.
2. Customize the display of the "Compact" view mode for user accounts, and
ensure that the new image field is displayed using the Thumbnail image
style.
* If you would like to display the media browser in a modal window, rather than
in an iFrame, follow these instructions:
1. Create a clone of the media browser which will only be used when embedding
media using the WYSIWYG editor. There is no easy way to duplicate the media
browser from the administrative backend, but you can run a bit of PHP code
at the command line with Drush (or, if you have Devel installed, at the
`/devel/php` path) to do it:
```
drush php:eval "entity_load('entity_browser', 'media_browser')->createDuplicate()->setName('ckeditor_media_browser')
>setLabel('Media browser (CKEditor)')->save();"
```
2. Configure the "Media browser" embed button to use the duplicate you just
created.
3. Grant permissions to use the duplicate entity browser to the "Media
creator" and "Media manager" user roles.
4. If you have Lightning Roles installed, you'll also need to grant access to
the duplicate by executing this PHP code (again, this can be done at the
command line with Drush, as in this example, or at `/devel/php` if you have
Devel installed):
```
drush php:eval "Drupal::service('lightning.content_roles')->grantPermissions('creator', 'use ckeditor_media_browser entity browser pages');"
```
5. Edit the pre-existing media browser -- _not_ the duplicate -- to use the
Modal display plugin. Leave the "Width" and "Height" options empty to make
the modal dialog responsive, set the link text to "Add media", and disable
auto-open. Save the changes to the media browser.

### 3.2.4 to 3.2.5
There are no manual update steps for this version.

### 3.2.3 to 3.2.4
* Configure the "Show in media library" field of the "Audio file" media type to
be non-translatable.
* Configure the "Show in media library" field of the "Video" media type to be
non-translatable.
* Configure the "Show in media library" field of the "Video file" media type to
be non-translatable.
* If you have the "Moderation history" view installed:
1. Replace the author field, which displays the original creator of the node,
with a new field that displays the author of the revision. This will
require you to add a relationship to the revision author.
2. Replace the creation time field, which displays the time that the node was
originally created, with a new field that displays the time that the
revision was created.
3. Rewrite the content of the "Moderation state" field to this Twig template
code:
```
Set to <strong>{{ moderation_state }}</strong> on {{ revision_timestamp }} by {{ revision_uid }}
```

### 3.2.2 to 3.2.3
There are no manual update steps for this version.

### 3.2.1 to 3.2.2
There are no manual update steps for this version.

### 3.1.5 to 3.2.0-beta1
### 3.2.0 to 3.2.1
* Install the Media Library module (in the "Core (Experimental)" group). Then,
for each media type, create a new display, called "Media library", containing
only the thumbnail image, displayed using the thumbnail image style.
* Install the new "Media Slideshow" module (in the "Lightning" group).
* Install the Moderation Dashboard module. By default, this will cause users to
be redirected to their moderation dashboard upon logging in. To disable this
behavior, run the following Drush command:
```
drush config:set moderation_dashboard.settings redirect_on_login 0
```

### 3.1.7 to 3.2.0
* If you have any sub-profiles (regardless of whether or not they extend
Lightning), you must change their info files to work with Drupal 8.6.0:
* Change `base profile` to a string, containing the name of the base
Expand All @@ -168,6 +255,35 @@ exclude:
- bartik
```

### 3.1.6 to 3.1.7
* There are no manual update steps for this version.

### 3.1.5 to 3.1.6
* If you would like to create media items for audio files, enable the new
Media Audio module (lightning_media_audio).
* Rename every instance of the "Save to media library" field (present on all
media types by default) to "Show in media library".
* If you would like to create media items for video files, create a new
media type called "Video file", using the "Video file" source. Then, create
two new view displays for this media type: one called "Thumbnail", which
only displays the media thumbnail using the "Medium" image style, and one
called "Embedded", which displays the "Video file" field using the "Video"
formatter. Additionally, create a form display for this media type, using
the "Media browser" form mode, which displays, in order:
1. The "Name" field using the "Text field" widget
2. The "Video file" field using the "File" widget
3. The "Show in media library" field using the "Single on/off checkbox" widget
4. The "Published" field using the "Single on/off checkbox" widget
* If you would like to be able to change the moderation states of content
without having to visit the edit form, install the Moderation Sidebar module.
* If you'd like to streamline the Editorial workflow, edit it and make the
following modifications:
1. Rename the "Review" transition to "Send to review".
2. Rename the "Restore" transition to "Restore from archive".
3. Remove the "Restore to draft" transition, and edit the "Create new draft"
transition to allow content to be transitioned from the Archived state to
the Draft state.

### 3.1.4 to 3.1.5
There are no manual update steps for this version.

Expand Down
2 changes: 1 addition & 1 deletion build-lightning.make
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ includes[] = drupal-org-core.make
projects[lightning][type] = profile
projects[lightning][download][type] = git
projects[lightning][download][branch] = 8.x-3.x
projects[lightning][download][tag] = 8.x-4.x-dev
projects[lightning][download][tag] = 8.x-4.000-beta1
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"require": {
"cweagans/composer-patches": "^1.6.4",
"drupal-composer/drupal-scaffold": "^2.0.0",
"drupal/lightning_api": "4.x-dev",
"drupal/lightning_core": "4.x-dev",
"drupal/lightning_layout": "2.x-dev",
"drupal/lightning_media": "3.x-dev",
"drupal/lightning_workflow": "3.x-dev",
"drupal/lightning_api": "^4.0-beta1",
"drupal/lightning_core": "^4.0-beta2",
"drupal/lightning_layout": "^2.0-beta1",
"drupal/lightning_media": "^3.8",
"drupal/lightning_workflow": "^3.6",
"oomphinc/composer-installers-extender": "^1.1"
},
"require-dev": {
Expand Down
Loading

0 comments on commit c52bd3d

Please sign in to comment.