action #166310
Updated by livdywan 3 months ago
## Motivation We want to get rid of jquery, and as one part of this we could get rid of is our ajax calls. We are currently using jquery for that, e.g. `$.ajax({ ... })`. Instead we could use the fetch API: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch ## Acceptance Criteria * **AC1:** We don't use jquery any more for ajax calls * **AC2:** Ajax calls still work in all browsers we support ## Suggestions * Confirm that fetch API is available in all current browsers (including the latest versions of Chromium and Firefox available under the oldest still supported Leap version, e.g. some Firefox ESR version provided by Leap) * Consider checking that we document what browsers are supported by/required by openQA * Grep for `$.ajax`, `$.ajaxSetup` and similar calls to find relevant usages to be replaced (and post/ajaxSetup or similar calls) * For the `X-CSRF-TOKEN` header see https://github.com/os-autoinst/openQA/blob/master/assets/javascripts/openqa.js#L22 ## Out of scope * Whatever datatables does internally