Skip to content

Cache-Control decoration on GET /api/v1/campaigns, claims, audit logs #240

Description

@kilodesodiq-arch

Problem Statement. The HTTP-cache interceptor exists but only fires from the
controller decorator side. List endpoints haven't been adorned.

Why it matters. Dashboards refetch the same campaign list every minute. A correct
max-age=30 saves significant Prisma load.

Technical Context. @HttpCacheTtl(30) and @SkipHttpCache() decorators exist;
campaign, claim, audit-list endpoints do not use them.

Expected Outcome. All findAll-style GET endpoints decorated; an X-Edge-Cache-Status
returned in non-prod for debuggability.

Acceptance Criteria.

  • E2E test asserts GET /campaigns returns max-age=30 after first call.
  • A second call within the TTL returns 304 with X-Edge-Cache-Status: hit.

Files or modules likely to be affected. src/campaigns/campaigns.controller.ts,
src/claims/claims.controller.ts, src/audit/audit.controller.ts.

Dependencies. #31 (pagination).

Difficulty. Easy
Estimated effort. S



Backlog item #32 from `docs/maintainer-issue-backlog.md.

Activity

  1. Kend07 commented on Jul 15, 2026

    @Kend07
    Contributor

    Hello maintainer, I have reviewed the issue and I am ready to work on it. I have experience with Typescript, PplgSQL and Python development, also audit logs management and HTTPs endpoints utilization. Let me help you!
    I participated in the previous GranfFox Campaign (First Ofifcial Campaign) I will take over and deliver a HQ PR.

  2. grantfox-oss commented on Jul 15, 2026

    @grantfox-oss

    🦊 GrantFox — @Kend07 has been assigned to this issue as part of the Official Campaign | FWC26 campaign!

    Next steps:

    1. Open a Pull Request referencing this issue (e.g., Closes #240)
    2. Your PR will be reviewed by the ChainForgee maintainers

    Good luck! Track your progress on GrantFox.

  3. grantfox-oss commented on Jul 19, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox as part of the Official Campaign | FWC26 campaign!

    @Kend07's PR #369 was approved and merged by @kilodesodiq-arch.

    🏆 @Kend07: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (131 total points). Track your full progress on GrantFox.

    👏 Great work, @Kend07! Keep contributing to ChainForgee.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions