API to export user data should mark banner reminder to export user data as dismissible
Summary
From !130815 (comment 1631216503)
When using offline cloud licensing, the admin of a self managed instance is reminded to export user data to send to GitLab monthly. There are two methods to do the export, UI and API, but only one marks the banner as dismissible.
Steps to reproduce
- Wait for the banner to remind admins to export user data appears on your self-managed instance using offline cloud licensing
- Use API to export the data
- Banner is not dismissible until user clicks button in UI to export user data
What is the current bug behavior?
Banner is not dismissible when using API to export user data
What is the expected correct behavior?
Banner should be dismissible when using API or UI to export user data
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: \`sudo gitlab-rake gitlab:env:info\`) (For installations from source run and paste the output of: \`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production\`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:check SANITIZE=true`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true`) (we will only investigate if the tests are passing)
Possible fixes
See !130815 (comment 1631216503)
Similar to Admin::Licenses::UsageExportsController used by the UI, set license_usage_data_exported: true after usage data has been exported via API so that Gitlab::Licenses::SubmitLicenseUsageDataBanner#dismissable? returns true
Edited by Valerie Burton

