Skip to content

Conversation

@rtibblesbot
Copy link

@rtibblesbot rtibblesbot commented Feb 9, 2026

Summary

Closes #5691

  • Remove the ai_feature feature flag from feature_flags.json, the IsAIFeatureEnabledForUser permission class from the backend, and the isAIFeatureEnabled Vuex getter and its usage from the frontend
  • Search recommendations are now available to all authenticated users without requiring the feature flag
  • The feature flags system itself (hasFeatureEnabled, FeatureFlagKeys, other flags) remains intact

Changes

  1. Schema: Removed ai_feature entry from feature_flags.json
  2. Backend: Removed IsAIFeatureEnabledForUser permission class from viewsets/user.py and its import/usage in viewsets/recommendation.pyRecommendationView now only requires IsAuthenticated
  3. Frontend: Removed isAIFeatureEnabled getter from session Vuex module and the feature flag guard in SearchOrBrowseWindow.vue's shouldShowRecommendations computed property
  4. Tests: Updated session and SearchOrBrowseWindow JS specs to remove isAIFeatureEnabled references; added Python tests asserting ai_feature is now rejected by the schema validator and that unauthenticated users are denied access to the recommendations endpoint

Test plan

  • JS tests pass (session/index.spec.js, SearchOrBrowseWindow.spec.js)
  • Python feature flag validation tests pass (test_feature_flags.py)
  • Python recommendation API tests pass (requires PostgreSQL — verified code changes only)
  • Open a channel in the channel editor, use import from channels, and confirm recommendations panel is visible alongside search results without the feature flag set
  • Verify non-admin users can see search recommendations

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

rtibblesbot and others added 4 commits February 8, 2026 17:14
Remove the ai_feature property from the feature flags JSON schema,
ungating the AI recommendations feature. Add test verifying ai_feature
is rejected as an unknown property.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Delete the IsAIFeatureEnabledForUser permission class from user.py and
remove its import/usage from recommendation.py. The recommendations
endpoint now only requires authentication, making AI recommendations
available to all authenticated users. Add test verifying non-admin
users can access the recommendations endpoint.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ommendations UI

Remove the isAIFeatureEnabled Vuex getter from the session module and
remove the FeatureFlagKeys import that was only used by it. Remove the
feature flag check from SearchOrBrowseWindow.vue's shouldShowRecommendations
computed property, making recommendations available to all users.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@learning-equality-bot
Copy link

learning-equality-bot bot commented Feb 9, 2026

👋 Thanks for contributing!

We will assign a reviewer within the next two weeks. In the meantime, please ensure that:

  • You ran pre-commit locally
  • All issue requirements are satisfied
  • The contribution is aligned with our Contributing guidelines. Pay extra attention to Using generative AI. Pull requests that don't follow the guidelines will be closed.

We'll be in touch! 😊

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.

1 participant