Skip to content

feat(remediation): disable cache#1139

Merged
MR2011 merged 1 commit intomainfrom
mr2011/issue-x/disable-remediation-cache
Mar 18, 2026
Merged

feat(remediation): disable cache#1139
MR2011 merged 1 commit intomainfrom
mr2011/issue-x/disable-remediation-cache

Conversation

@MR2011
Copy link
Collaborator

@MR2011 MR2011 commented Mar 18, 2026

Description

Disable cache for Remediations.

Copilot AI review requested due to automatic review settings March 18, 2026 14:39
@MR2011 MR2011 requested a review from michalkrzyz as a code owner March 18, 2026 14:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR disables caching specifically for the Remediations handler while leaving the app-wide cache enabled for other handlers.

Changes:

  • Instantiate RemediationHandler with a HandlerContext that has Cache: nil to bypass caching.
  • Wire the pre-built remediationHandler into the HeurekaApp struct instead of constructing it inline with the shared context.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +84 to +89
remediationHandler := remediation.NewRemediationHandler(common.HandlerContext{
DB: db,
EventReg: er,
Cache: nil,
Authz: authz,
})
@MR2011 MR2011 merged commit 9a6e62d into main Mar 18, 2026
13 checks passed
@MR2011 MR2011 deleted the mr2011/issue-x/disable-remediation-cache branch March 18, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants