Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Remove aichat-polling experiment - #60703

#60703
Merged
fisher-alice merged 3 commits into
stagingcode-dot-org/code-dot-org:stagingfrom
alice/test-active-jobscode-dot-org/code-dot-org:alice/test-active-jobsCopy head branch name to clipboard
Aug 29, 2024
Merged

Remove aichat-polling experiment#60703
fisher-alice merged 3 commits into
stagingcode-dot-org/code-dot-org:stagingfrom
alice/test-active-jobscode-dot-org/code-dot-org:alice/test-active-jobsCopy head branch name to clipboard

Conversation

@fisher-alice

@fisher-alice fisher-alice commented Aug 28, 2024

Copy link
Copy Markdown
Contributor

This PR documents the testing of the ActiveJob API for aichat completion (currently hidden behind experiment 'aichat-polling') on production and removes the experiment flag.
This is the final step to a multi-PR process implemented by @sanchitmalhotra126 .

Screencast video of dev network tab with experiment when sending a chat request on an aichat level on production:

Screen.Recording.2024-08-28.at.9.41.19.AM.mov

This is a screenshot of the dev network tab with the experiment disabled. Note that the api endpoint called is chat_completion instead of start_chat_completion / chat_request.

Screenshot 2024-08-28 at 1 31 13 PM

After submitting multiple aichat requests, I checked the AichatRequests table to confirm that the requests were logged as expected.

Here's a screenshot of the AichatRequests table while polling is taking place and then when the request was resolved (see row 12):

Screenshot 2024-08-28 at 10 36 57 AM

As requested by @sanchitmalhotra126 , I let infra team know about this update - Slack thread.

Links

jira

Testing story

After removing the experiment, I disabled the experiment locally and then confirmed that the Active Job API was now being called successfully.

Screenshot 2024-08-28 at 1 34 57 PM

Deployment strategy

Follow-up work

Remove chat_completion action and associated code. Update tests!

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@fisher-alice
fisher-alice marked this pull request as ready for review August 28, 2024 18:35
@fisher-alice
fisher-alice requested review from a team August 28, 2024 18:44
@fisher-alice
fisher-alice marked this pull request as draft August 28, 2024 19:30

@bencodeorg bencodeorg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

chatEventsCurrent.filter(isChatMessage) as ChatMessage[],
aiCustomizations,
aichatContext,
experiments.isEnabled(experiments.AICHAT_POLLING)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this experiment?

@fisher-alice
fisher-alice marked this pull request as ready for review August 28, 2024 20:19
@fisher-alice
fisher-alice merged commit d712c4e into staging Aug 29, 2024
@fisher-alice
fisher-alice deleted the alice/test-active-jobs branch August 29, 2024 12:57
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.