Follow-up: Download previous licenses in the admin area
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/download
API endpoint, using a newdownload_license(license_record)
method. Maybe there is aDownloadService
to create?🤷 -
Provide placeholder API path helper to that new endpoint in DOM
-
- FE
-
Store placeholder path helper on load -
Update license_card
download button to use a processed version of that string.
-