Improve and add explicit test coverage for the workspace conflict validator

Created on 29 July 2022, almost 2 years ago
Updated 16 April 2024, 2 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 16 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.69.0 2024