Chore: Protect chatbot view using feature flag (PR #2151)

Related issues

  • Closes #

Proposed changes

Describe the big picture of your changes here to communicate to the reviewers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.

How to reproduce

Explain like if someone who doesn’t know this project is reviewing your changes and how they can replicate this.

Screenshots and videos

Paste here any screenshots or videos related to your changes, if applicable.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc…


Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 66.98%. Comparing base (1e63861) to head (aa7b3d1).

Additional details and impacted files
@@             Coverage Diff             @@
##              dev    #2151       +/-   ##
- Coverage   97.82%   66.98%   -30.84%     
  Files         156      155        -1     
  Lines       21895    21887        -8     
- Hits        21419    14662     -6757     
- Misses        476     7225     +6749     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Please add the flag verification also in the stream_chatbot_response view. And add a migration to automatically create this flag like in this PR

@RisingOrange You will probably need to update the tests because of the flag. see: Automated testing with Waffle — django-waffle 4.0.0 documentation