Skip to content

feat(alertRules): merge configured teams for echo without list permis… - #2351

Merged
jsers merged 1 commit into
release-27from
main
Sep 16, 2026
Merged

jsers merged 1 commit into
release-27from
main

Conversation

@jsers

@jsers jsers commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

…sion

Add mergeTeams util and FormNGDataProvider configuredTeams prop so the team selector can echo rule-detail-embedded teams when the user lacks the team-list API permission. Team-list data takes priority; dedupe by id.

…sion

Add mergeTeams util and FormNGDataProvider `configuredTeams` prop so the
team selector can echo rule-detail-embedded teams when the user lacks the
team-list API permission. Team-list data takes priority; dedupe by id.
Copilot AI lite review requested due to automatic review settings September 16, 2026 07:48
@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: a316874d-8c6b-4ed9-8272-7d72a2d6b4da

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jsers
jsers merged commit c802b85 into release-27 Sep 16, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved review issues were identified.

Pull request overview

Adds fallback team options so alert-rule forms display configured teams without team-list permission.

Changes:

  • Added deduplicating mergeTeams utility.
  • Passed configured teams through the form provider.
  • Added merge behavior tests.
File summaries
File Description
src/pages/alertRules/FormNG/utils/mergeTeams.ts Merges team options with ID deduplication.
src/pages/alertRules/FormNG/utils/mergeTeams.test.ts Tests fallback and precedence behavior.
src/pages/alertRules/FormNG/index.tsx Supplies configured teams.
src/pages/alertRules/FormNG/context.tsx Combines API and configured teams.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants