Skip to content

PB-15775: Add a direct create for static placement - #465

Merged
lalat-das merged 1 commit into
pb-15775-rcbfrom
pb-15775-rcb-static-placement
Oct 28, 2026
Merged

lalat-das merged 1 commit into
pb-15775-rcbfrom
pb-15775-rcb-static-placement

Conversation

@lalat-das

Copy link
Copy Markdown
Collaborator

Product decided a static selection needs no Placement Rule and no name. The administrator picks resources and a destination, and changes it per resource later. So an assignment must be writable without a rule, which the contract could not do.

PlacementAssignment.Create takes a resource list and a destination, with no rule reference. It is refused if any named resource is not in NotConfigured: a placed resource is Unprotected, so the UI never offers it, and a caller who names one anyway has made a mistake worth reporting rather than skipping.

No preview field. There is no filter to resolve, and the resource state already tells a caller what is eligible.

PlacementRule.Apply is untouched. The rule-based path keeps only_catalog_resource_uids for a staged rollout; only the comment claiming it absorbed this call is removed, because that is no longer true.

No field is removed, renamed or renumbered. The surface goes from 63 to 64.

What this PR does / why we need it:

Which issue(s) this PR fixes (optional)
Closes #

Special notes for your reviewer:

Product decided a static selection needs no Placement Rule and no
name. The administrator picks resources and a destination, and changes
it per resource later. So an assignment must be writable without a
rule, which the contract could not do.

PlacementAssignment.Create takes a resource list and a destination,
with no rule reference. It is refused if any named resource is not in
NotConfigured: a placed resource is Unprotected, so the UI never
offers it, and a caller who names one anyway has made a mistake worth
reporting rather than skipping.

No preview field. There is no filter to resolve, and the resource
state already tells a caller what is eligible.

PlacementRule.Apply is untouched. The rule-based path keeps
only_catalog_resource_uids for a staged rollout; only the comment
claiming it absorbed this call is removed, because that is no longer
true.

No field is removed, renamed or renumbered. The surface goes from 63
to 64.
@lalat-das
lalat-das merged commit 7cab12f into pb-15775-rcb Oct 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant