Issues
Issues copied to clipboard
Usage of step templates in CaC projects are not displayed unless a release has been created recently
Severity
Low
Version
All
Latest Version
I could reproduce the problem in the latest build
What happened?
Usage of step templates in CaC projects are not displayed unless a release has been created recently - even if older releases using the step template existed already. Usages should show the latest 20 releases, instead it fetches the latest 20 releases (Unique on the latest release for a GitRef and Project) across all CAC projects and only looks for usages within this 20 releases.
Reproduction
- Create two CAC projects, connect the first to an Step Template, create a release and deploy.
- Create a second CAC project, that is not linked to any Step Templates.
- Create a release.
- Update the GitRef and create another release. Repeat this 20 times.
- Check step template usage, will show as empty.
Error and Stacktrace
NA
More Information
The code that handles this process does the following
- Fetch all the deployment processes using CAC related to that action template
- Fetch all version-controlled projectIds
- Fetch all releases related to those projects (optionally filter on a branch) and take the latest 20.
- It then matches on the Octopus.Action.Template.Id property and checks the ActionTemplateId matches, there's a number of other checks but these all default to true on the usages page.
Workaround
No response