Skip to content

feat: support project scope for hosts - #4917

Open
huanghongbo-hhb wants to merge 1 commit into
koderover:mainfrom
huanghongbo-hhb:feat/host-project-scope
Open

feat: support project scope for hosts#4917
huanghongbo-hhb wants to merge 1 commit into
koderover:mainfrom
huanghongbo-hhb:feat/host-project-scope

Conversation

@huanghongbo-hhb

@huanghongbo-hhb huanghongbo-hhb commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Allow hosts in Resource Management to be assigned to selected projects or all projects.

Why

  • Project host lists previously only matched project-owned hosts, so scoped shared hosts were unavailable.

Main Changes

  • Add a backward-compatible projects field to host records.
  • Include shared hosts scoped to the current project or <all_projects> in project host queries.

Risk / Compatibility

  • Existing project_name semantics and permission checks remain unchanged.
  • Existing hosts without projects are not implicitly exposed to projects.

Test

  • Verified system-only, project-owned, selected-project, and all-project query cases.
  • Ran targeted package compilation with go test -vet=off.

Contact

Contact: huanghongbo@koderover.com


This change is Reviewable

Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
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.

1 participant