Show Download/Preview Payload buttons only if data exists in cache
ServicePing might take a long time to generate, so it might case http timeout. And in general, its not the ideal to run such a long running code within a http request.
The idea is to show Download/Preview Payload buttons only is ServicePing data was generated and stored in cache.
Rails.cache.exists? :usage_data
If data doesnt exists in cache we can show text with a few options
- Run/enable
gitlab_service_ping
cron job - Generate service ping from console
- other ideas?
Problem
Proposal
Result
Next steps (if any)
Edited by Niko Belokolodov