Skip to content

Make axios requests for rotating access tokens

What does this MR do and why?

What: Remove Rails UJS functionality for AJAX requests (data-remote, data-method statements etc.) from rotate buttons in the access tokens table. We use Axios requests instead.

Why: Rails UJS is deprecated and its use discouraged. No page reload anymore.

How to set up and validate locally

  1. Go to your personal access token page
  2. Create a new personal access token
  3. Try to rotate and revoke the access token using the buttons in the Actions column

Token creation, rotation and revocation should work the same as before for personal, project, group and impersonation access tokens.

Related to #505233 (closed)

Related to #505251

Edited by Henry Helm

Merge request reports

Loading