Add "skip_constraints" argument to FeaturesManagerInterface::assignConfigPackage

Created on 18 October 2015, over 8 years ago
Updated 1 October 2023, 9 months 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.69.0 2024