Remove promptMangement devFlag and move it to TP feature flag#6897
Remove promptMangement devFlag and move it to TP feature flag#6897divyanshiGupta wants to merge 1 commit intoopendatahub-io:mainfrom
Conversation
📝 WalkthroughWalkthroughA new Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Security considerationsNo actionable security issues detected. The addition of a boolean configuration flag does not introduce new vulnerability classes. However, verify that:
🚥 Pre-merge checks | ❌ 2❌ Failed checks (2 warnings)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
packages/gen-ai/frontend/src/odh/extensions.ts (1)
50-53: Add a regression test for thePROMPT_MANAGEMENTgate source change.Line 52 changes this area to
featureFlags, but there’s no accompanying coverage proving the area is gated byfeatureFlags.promptManagement(and not bydevFlags.promptManagement). Add/adjust a unit test around area availability to lock this behavior.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/gen-ai/frontend/src/odh/extensions.ts` around lines 50 - 53, Add a regression unit test that verifies the PROMPT_MANAGEMENT area is gated by featureFlags.promptManagement (not devFlags.promptManagement): locate the area definition using the PROMPT_MANAGEMENT constant (and related PLUGIN_GEN_AI) in extensions.ts and write/modify an area-availability test (e.g., for the function that computes available areas or gate evaluation) to assert that toggling featureFlags.promptManagement enables/disables the area while toggling devFlags.promptManagement has no effect; ensure the test covers both enabled and disabled states so the change from devFlags to featureFlags is locked in.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@packages/gen-ai/frontend/src/odh/extensions.ts`:
- Around line 50-53: Add a regression unit test that verifies the
PROMPT_MANAGEMENT area is gated by featureFlags.promptManagement (not
devFlags.promptManagement): locate the area definition using the
PROMPT_MANAGEMENT constant (and related PLUGIN_GEN_AI) in extensions.ts and
write/modify an area-availability test (e.g., for the function that computes
available areas or gate evaluation) to assert that toggling
featureFlags.promptManagement enables/disables the area while toggling
devFlags.promptManagement has no effect; ensure the test covers both enabled and
disabled states so the change from devFlags to featureFlags is locked in.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 7f225630-ce1f-465f-984f-a4e0c5fc03c1
📒 Files selected for processing (7)
backend/src/types.tsbackend/src/utils/constants.tsfrontend/src/__mocks__/mockDashboardConfig.tsfrontend/src/concepts/areas/const.tsfrontend/src/k8sTypes.tsmanifests/common/crd/odhdashboardconfigs.opendatahub.io.crd.yamlpackages/gen-ai/frontend/src/odh/extensions.ts
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6897 +/- ##
==========================================
+ Coverage 64.09% 64.16% +0.07%
==========================================
Files 2529 2523 -6
Lines 76692 76637 -55
Branches 19202 19189 -13
==========================================
+ Hits 49152 49175 +23
+ Misses 27540 27462 -78
... and 19 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
CI failure is not related to this PR. |
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: danpierce1 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
This PR should be merged once complete prompt management feature is in /hold |
https://redhat.atlassian.net/browse/RHOAIENG-55013
Description
Removed devFlag and added TP feature flag for
promptManagementHow Has This Been Tested?
Test Impact
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
mainSummary by CodeRabbit
New Features
Refactor