Skip to content

fix(bot): reject layouts with empty clusters#74

Open
a9ex wants to merge 1 commit intochore/prettier-eslintfrom
fix/empty-clusters
Open

fix(bot): reject layouts with empty clusters#74
a9ex wants to merge 1 commit intochore/prettier-eslintfrom
fix/empty-clusters

Conversation

@a9ex
Copy link
Copy Markdown
Member

@a9ex a9ex commented Apr 19, 2026

Description

Briefly describe what this PR does:
Adds validation to prevent creating or updating a bot with an empty cluster in its layout.


Context / Motivation

Explain why this change is needed:
The layout validation only checked for duplicate and out-of-range shard IDs.
An empty cluster has no reason to exist, it would run a container with no shards assigned to it.


Related Links


Screenshots (if applicable)


Checklist

  • My code follows the project's coding style
  • Tests pass locally
  • I added/updated relevant tests
  • I updated documentation (if needed)
  • This PR is ready for review

Additional Notes

@zowks zowks added the bug Something isn't working label Apr 19, 2026
@zowks zowks linked an issue Apr 19, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants