Add "skip_constraints" argument to FeaturesManagerInterface::assignConfigPackage

Created on 18 October 2015, about 9 years ago
Updated 1 October 2023, about 1 year ago

Follow-up to #2595543: Add "force" argument to FeaturesAssignerInterface::assignConfigPackages()

Problem/Motivation

Currently the 'excluded' constraint on features component packaging is skipped if the $force argument is passed to FeaturesManagerInterface::assignConfigPackage(. The original purpose of $force was to override the restriction that already-assigned configuration won't be reassigned.

However, there are cases including #2596007: Clear out stale excluded and required values where we need finer granularity: the ability to skip constraints without invoking the forcing of reassigning of already-assigned configuration.

Proposed resolution

Add $skip_constraints argument to FeaturesAssignerInterface::assignConfigPackages() and related code as needed and pass to FeaturesManagerInterface::assignConfigPackage(). In 'profile' assignment plugin, skip required constraint if $skip_constraints == TRUE.

Remaining tasks

API changes

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇨🇦Canada nedjo

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

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