Fixes #39322 - Extend valid controller list - #11743
Conversation
instead of directly overriding it to allow other plugins to extend it as well
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR refactors the bookmark controller validator by extracting Katello controller paths into an explicit ChangesBookmark Controller Validator Refactoring
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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. Comment |
|
Robottelo approves SatelliteQE/robottelo#21539 (comment) |
|
|
||
| module Katello | ||
| class BookmarkControllerValidatorExtensionsTest < ActiveSupport::TestCase | ||
| Katello::Concerns::BookmarkControllerValidatorExtensions::KATELLO_CONTROLLERS.each do |controller| |
There was a problem hiding this comment.
An alternative would be iterating over all controllers that include the katello flavor of the autocomplete concern and check those
|
And a green button click? :) |
What are the changes introduced in this pull request?
Previously, the extension overrode whatever Foreman was shipping, which prevented other plugins from applying their own modifications.
Considerations taken when implementing this change?
Following the general pattern where plugins can extend core but shouldn't hard-override it.
What are the testing steps for this pull request?
Also see theforeman/foreman_openscap#610
Summary by CodeRabbit
Refactor
Tests