Skip to content

Prevent builds from getting moved to dynamic groups - #4095

Merged
williamjallen merged 2 commits into
Kitware:masterfrom
williamjallen:no-move-to-dynamic-groups
Oct 20, 2026
Merged

williamjallen merged 2 commits into
Kitware:masterfrom
williamjallen:no-move-to-dynamic-groups

Conversation

@williamjallen

Copy link
Copy Markdown
Collaborator

Builds are supposed to be assigned to exactly one "regular" build group, and dynamic build groups are supposed to have no associated builds. Various parts of the codebase are inconsistent about this, and unintentionally make it seem as if it's possible to reassign builds to dynamic groups. This fixes the issue by adding checks to ensure users can only move builds between "regular" build groups. I plan to follow this with a separate PR which addresses builds which are incorrectly assigned to dynamic groups.

@williamjallen

Copy link
Copy Markdown
Collaborator Author

Looking for a double review on this. @josephsnyder, a standard review. @zackgalbreath, a brief check to make sure the big-picture idea makes sense.

Builds are supposed to be assigned to exactly one "regular" build group, and dynamic build groups are supposed to have no associated builds.  Various parts of the codebase are inconsistent about this, and unintentionally make it seem as if it's possible to reassign builds to dynamic groups.  This fixes the issue by adding checks to ensure users can only move builds between "regular" build groups.  I plan to follow this with a separate PR which addresses builds which are incorrectly assigned to dynamic groups.
@williamjallen
williamjallen force-pushed the no-move-to-dynamic-groups branch from 3680667 to dfcc5ac Compare October 19, 2026 02:13
Comment thread app/Http/Controllers/BuildController.php Outdated
Comment thread app/cdash/app/Model/BuildGroup.php
@williamjallen
williamjallen added this pull request to the merge queue Oct 20, 2026
Merged via the queue into Kitware:master with commit 20b9cdd Oct 20, 2026
8 checks passed
@williamjallen
williamjallen deleted the no-move-to-dynamic-groups branch October 20, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants