Improve and add explicit test coverage for the workspace conflict validator

Created on 29 July 2022, over 2 years ago
Updated 16 April 2024, 8 months ago

Problem/Motivation

\Drupal\workspaces\Plugin\Validation\Constraint\EntityWorkspaceConflictConstraintValidator was written in a time when we didn't have the workspace association service, which is easier to query and faster then getting the latest revision ID of an entity (and loading it afterwards).

Proposed resolution

Stop checking the latest revision of the edited entity, and check the workspace association index instead.

Remaining tasks

Review.

User interface changes

Nope.

API changes

Nope.

Data model changes

Nope.

Release notes snippet

Nope.

πŸ“Œ Task
Status

Fixed

Version

10.3 ✨

Component
WorkspacesΒ  β†’

Last updated 4 days ago

No maintainer
Created by

πŸ‡·πŸ‡΄Romania amateescu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024