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.
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).
- BE
-
Add GET /licenses/:id/downloadAPI endpoint, using a newdownload_license(license_record)method. Maybe there is aDownloadServiceto create?🤷 -
Provide placeholder API path helper to that new endpoint in DOM
-
- FE
-
Store placeholder path helper on load -
Update license_carddownload button to use a processed version of that string.
-
Edited by 🤖 GitLab Bot 🤖