Skip to content

fix: convert data retention period deltas to challenges#429

Merged
silent-cipher merged 3 commits intomainfrom
fix/data-retention-challenges
Apr 3, 2026
Merged

fix: convert data retention period deltas to challenges#429
silent-cipher merged 3 commits intomainfrom
fix/data-retention-challenges

Conversation

@silent-cipher
Copy link
Copy Markdown
Collaborator

Fix the semantic mismatch between Challenges and Proving Periods, as discussed in FilOzone/pdp-explorer#89.

Copilot AI review requested due to automatic review settings April 2, 2026 08:02
@FilOzzy FilOzzy added this to FOC Apr 2, 2026
@github-project-automation github-project-automation bot moved this to 📌 Triage in FOC Apr 2, 2026
Copy link
Copy Markdown
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

Adjusts backend data-retention metrics to resolve the semantic mismatch between proving periods and challenges (per issue #89), ensuring the Prometheus counters represent challenges rather than periods.

Changes:

  • Introduces a CHALLENGES_PER_PROVING_PERIOD constant (5) and applies it to period deltas.
  • Converts faulted/success deltas from proving periods into challenge deltas before incrementing dataSetChallengeStatus counters.
  • Updates in-code documentation and log field names to reflect “challenges delta”.

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

Comment thread apps/backend/src/data-retention/data-retention.service.ts
Comment thread apps/backend/src/data-retention/data-retention.service.ts
@silent-cipher silent-cipher requested a review from BigLep April 2, 2026 08:14
@silent-cipher silent-cipher self-assigned this Apr 2, 2026
@rjan90 rjan90 moved this from 📌 Triage to 🔎 Awaiting review in FOC Apr 2, 2026
@rjan90 rjan90 added this to the M4.2: mainnet GA milestone Apr 2, 2026
@github-project-automation github-project-automation bot moved this from 🔎 Awaiting review to ✔️ Approved by reviewer in FOC Apr 2, 2026
@silent-cipher silent-cipher merged commit a79eecc into main Apr 3, 2026
7 checks passed
@silent-cipher silent-cipher deleted the fix/data-retention-challenges branch April 3, 2026 07:30
@github-project-automation github-project-automation bot moved this from ✔️ Approved by reviewer to 🎉 Done in FOC Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

5 participants