fixup! checkers: add HTML report rendering for observation providers
Some checks are pending
continuous-integration/drone/push Build is running

Pass scope to GetObservationsByExecution for defense-in-depth.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
nemunaire 2026-04-14 16:59:55 +07:00
commit 71c14b446c

View file

@ -296,7 +296,7 @@ func (cc *CheckerController) GetExecutionResult(c *gin.Context) {
func (cc *CheckerController) GetExecutionHTMLReport(c *gin.Context) {
exec := c.MustGet("execution").(*happydns.Execution)
snap, err := cc.statusUC.GetObservationsByExecution(exec.Id)
snap, err := cc.statusUC.GetObservationsByExecution(targetFromContext(c), exec.Id)
if err != nil {
c.AbortWithStatusJSON(http.StatusNotFound, gin.H{"errmsg": "Observations not available"})
return