Explore: Call data endpoint to cancel queries running on BigQuery by jobId

Description

PRDE - Story default text according to the team DoR (Definition of Ready)

01 - PERSON OF CONTACT (PERSON THAT CAN ANSWER QUESTIONS ABOUT THE PROBLEM):

  • Andre Pasold

03 - PROBLEM (WHAT'S THE CURRENT PROBLEM SCENARIO OR PAIN TO BE RESOLVED?):

  • on several scenarios, a BigQuery job is requested by the user or the FE app, but while the job is running, the user is not interested in that result anymore (maybe he sent a second query, or just navigate away from the page where that request were relevant). To avoid slots being wasted, the FE app could call an endpoint to cancel the job

10 - ACCEPTANCE CRITERIA:

  • Explore Editor UI
    • Add standard button "Cancel” on the right side of “Query is running…” tag
  • trigger cancel query when:
    • leave home
    • leave explore/search
    • leave explore/editor
    • run a new query on explore/editor

Already done as today - QA please validate:

  • SQL Processing tasks should be cancelled by task