Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team becomes its own filter! #1465

Merged
merged 1 commit into from
Dec 29, 2024
Merged

Team becomes its own filter! #1465

merged 1 commit into from
Dec 29, 2024

Conversation

Pablete1234
Copy link
Member

Teams (for protos 1.4 and up) are now a filter for themselves. This means that anywhere a filter is expected, you can use the team itself.

<teams>
  <team id="red-team" ...>Red</team>
  <team id="blue-team" ...>Blue</team>
</teams>
<regions>
  <apply enter="deny(red-team)" region="..."/>
  <apply enter="deny(blue-team)" region="..."/>
</regions>

This will likely not work in 1.3.x proto as there you could already have teams and filters with same ids, so they don't share a context.

Signed-off-by: Pablo Herrera <[email protected]>
@Pablete1234 Pablete1234 merged commit 7070abd into dev Dec 29, 2024
2 checks passed
@Pablete1234 Pablete1234 deleted the team-is-filter branch December 29, 2024 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants