Skip to content

Fix Amazon Q disconnect for already destroyed app

What does this MR do and why?

The problem is:

  • An application is destroyed
  • Which means Doorkeeper::Application.find_by_id(ai_settings.amazon_q_oauth_application_id) is nil
  • So it means that destroy_oauth_application! returns nil and execute returns early with an empty error
  • But there's no validation error
  • This is why we see a failure with an unknown error
Edited by Igor Drozdov

Merge request reports

Loading