backstage-plugins icon indicating copy to clipboard operation
backstage-plugins copied to clipboard

[Feat]: Improve initial loading time for execution

Open SarvJ1 opened this issue 3 years ago • 1 comments

🔖 Feature description

Currently the plugin if serviceID is configured, makes 4 API calls for it to show the executions.This happens only during the first time you load the executions.

🎤 Context

Screenshot 2022-11-22 at 6 47 00 PM
  • The first API is to check for the licenses issued to the account
  • As we currently take latest 5 pipelines that have been executed for the particular service,for that we need the service name
  • So second API gets us the service name which we will use to filter and get latest 5 pipelines
  • Third API gets us the latest 5 pipelines with that particular service name
  • Fourth API gets us our executions

SarvJ1 avatar Nov 22 '22 13:11 SarvJ1

Currently working on the new API which will help us to get executions for particular serviceID and pipelineIDs in one API call. This should improve our initial loading time

SarvJ1 avatar Nov 22 '22 13:11 SarvJ1