Problem/Motivation

As part of the Workflow Initiative, we want to improve the path alias system and make it easier to integrate into modern Drupal workflows, like the new Workspaces or Content Moderation modules.

The current system has various deficiencies:
- it uses a custom storage pattern
- the integration with other entity types is done via a custom (computed) field type, which is an endless source of tricky bugs
- path aliases are not revision-aware nor publishable, which means they can not be integrated into the other core workflows

Proposed resolution

Do all the things!

Remaining tasks

Conversion to revisionable entities:
#3006086: update.php should not process path aliases
#2336597: Convert path aliases to full featured entities
#3084983: Move all the code related to path aliases to a new (required) "path_alias" module
#3009014: Convert path alias migrations to use entity:path_alias destination
#3007832: Convert custom path alias forms to entity forms
#3011807: Convert the path alias admin overview to a list builder
#2233595: Deprecate the custom path alias storage

To be done after the initial conversion:

#3007669: Add publishing status to path aliases
#3008058: Convert the computed path item field type to a regular entity reference field

User interface changes

Various features that are available for all content entity types will also be enabled for path aliases, like Views integration, etc.

API changes

A new core entity type with a backwards compatibility layer in place until Drupal 9.

Data model changes

Path aliases will be converted to revisionable and publishable entities, and the core Path module will be required.

Comments

amateescu created an issue. See original summary.

amateescu’s picture

Issue summary: View changes

Opened quite a few more followups to #2336597: Convert path aliases to full featured entities since filing this issue, now also adding them to the IS.

amateescu’s picture

Issue summary: View changes
Status: Active » Needs review

The conversion is done, including deprecating the current storage and hooks!

Updated the IS to put the issues in the order in which the patches should be applied/committed.

amateescu’s picture

Issue summary: View changes

The first issue has been committed!

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

catch’s picture

Adding #2732071: WI: Workspace module roadmap as a parent issue, since this is one of the main things on entity forms that affects the ability to use workspaces module.

amateescu’s picture

Issue summary: View changes

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

plach’s picture

let's see some updated colors

plach’s picture

Status: Needs review » Fixed

I think we can close this now :)

plach’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.