Remove UserPermission::AI_TUTOR_ACCESS #68406
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cleans up the user permissions for ai tutor
to do still
Before merge, audit the list of users here:
Code.org vs the list of users here Code.org to see if we want to add anyone to the pilot,
Then revoke the UserPermission from everyone before deleting it, so we don't orphan them.
Do this on every env?
replace the tutor2 check with trust_chat_client
expose has_ai_tutor_access to the frontend (similar to how aichat does it by exposing a controller action?)
hook it up to the frontend / re think through when to show tutor vs not vs sleeping. is tutor always there all the time but sleeping? do we need a separate check for "enabled by experiment" and "disabled" so we can differentiate between sleeping and not visible? (GA would be always sleeping everywhere unless ai_tutor_available?)
Links
Testing story
Deployment strategy
Follow-up work
Privacy
Security
Caching
PR Creation Checklist: