Follow-up: Download previous licenses in the admin area

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Follow up of https://gitlab.com/gitlab-org/gitlab-ee/issues/7054

In https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9733 and https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9785 we improved the admin licenses area.

One shortcut taken was not adding a new download endpoint to the API. This limits us to using the existing rails controller action that will only provide an octet-stream of the current license's data. This means we only show the download button for the current license (first license in the list).

  1. BE
    1. Add GET /licenses/:id/download API endpoint, using a new download_license(license_record) method. Maybe there is a DownloadService to create? 🤷
    2. Provide placeholder API path helper to that new endpoint in DOM
  2. FE
    1. Store placeholder path helper on load
    2. Update license_card download button to use a processed version of that string.
Edited Jun 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading