Skip to content

Add background job for ai hint request - #1135

Draft
cocomarine wants to merge 6 commits into
mainfrom
1932-add-background-job-for-AiHint-request
Draft

cocomarine wants to merge 6 commits into
mainfrom
1932-add-background-job-for-AiHint-request

Conversation

@cocomarine

Copy link
Copy Markdown
Contributor

Status

Points for consideration:

  • Security
  • Performance

What's changed?

Description of what's been done - bullets are often best

Steps to perform after deploying to production

If the production environment requires any extra work after this PR has been deployed detail it here. This could be running a Rake task, a migration, or upgrading a Gem. That kind of thing.

Clearing input when either sucessfully completed or failed getting Ai hint.
This controller will replace the existing controller, FriendlyErrorMessagesController, once polling is enabled in editor-ui and deployed.
@cla-bot cla-bot Bot added the cla-signed label Nov 24, 2026
ai_hint.complete!(hint)
rescue FriendlyErrorMessagesInferenceClient::Error => e
Sentry.capture_exception(e)
ai_hint.fail!
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Test coverage

94.22% line coverage reported by SimpleCov.
Run: https://github.com/RaspberryPiFoundation/editor-api/actions/runs/45441613307

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant