Skip to content

PolicySet wizard no matching Policies string#5542

Merged
openshift-merge-bot[bot] merged 1 commit intostolostron:mainfrom
zlayne:policy-set-wizard-empty-policies-message
Jan 27, 2026
Merged

PolicySet wizard no matching Policies string#5542
openshift-merge-bot[bot] merged 1 commit intostolostron:mainfrom
zlayne:policy-set-wizard-empty-policies-message

Conversation

@zlayne
Copy link
Copy Markdown
Contributor

@zlayne zlayne commented Jan 27, 2026

📝 Summary

Ticket Summary (Title):
In the Policy Set wizard if a user had selected a namespace and there are no Policies in the given namespace they would see the message:
Select a namespace to be able to select policies in that namespace.

This PR adds a conditional check to show a new message No policies were found in the selected namespace. If the user has selected a namespace that contains no Policies.

Ticket Link:

Type of Change:

  • 🐞 Bug Fix
  • ✨ Feature
  • 🔧 Refactor
  • 💸 Tech Debt
  • 🧪 Test-related
  • 📄 Docs

✅ Checklist

General

  • PR title follows the convention (e.g. ACM-12340 Fix bug with...)
  • Code builds and runs locally without errors
  • No console logs, commented-out code, or unnecessary files
  • All commits are meaningful and well-labeled
  • All new display strings are externalized for localization (English only)
  • (Nice to have) JSDoc comments added for new functions and interfaces

If Feature

  • UI/UX reviewed (if applicable)
  • All acceptance criteria met
  • Unit test coverage added or updated
  • Relevant documentation or comments included

If Bugfix

  • Root cause and fix summary are documented in the ticket (for future reference / errata)
  • Fix tested thoroughly and resolves the issue
  • Test(s) added to prevent regression

🗒️ Notes for Reviewers

Signed-off-by: zlayne <zlayne@redhat.com>
@KevinFCormier
Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Jan 27, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: KevinFCormier, zlayne

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [KevinFCormier,zlayne]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sonarqubecloud
Copy link
Copy Markdown

@openshift-merge-bot openshift-merge-bot Bot merged commit 64561be into stolostron:main Jan 27, 2026
12 checks passed
@zlayne zlayne deleted the policy-set-wizard-empty-policies-message branch January 27, 2026 19:01
Randy424 pushed a commit to Randy424/console that referenced this pull request Jan 28, 2026
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.

2 participants