Skip to content

refactor: remove orphaned history_snapshot module - #540

Merged
usmanimamu17-create merged 1 commit into
ApexChainx:mainfrom
beulah7717108-eng:fix/467-remove-orphaned-snapshot
Aug 31, 2026
Merged

refactor: remove orphaned history_snapshot module#540
usmanimamu17-create merged 1 commit into
ApexChainx:mainfrom
beulah7717108-eng:fix/467-remove-orphaned-snapshot

Conversation

@beulah7717108-eng

Copy link
Copy Markdown
Contributor

Summary

NormalizedSnapshot / normalize_history were documented as the way to summarize history "for dashboard telemetry", but no contract method returned them and the type was not #[contracttype], so it could not cross the contract boundary. The documented dashboard path did not exist and nothing it exposed was actually obtainable on-chain.

The dashboard surface is now explicitly get_stats (cumulative aggregate) alongside get_severity_telemetry (per-severity weekly windows), so the dashboard story is one coherent surface.

Changes

  • Removed history_snapshot.rs and its lib.rs module registration.
  • docs/MODULE_OWNERSHIP.md: dropped the removed module from the data-layer scope and review tables.
  • lib.rs: get_stats docs now name it, together with get_severity_telemetry, as the supported dashboard aggregate so no docs present an aggregate the contract cannot return.

Tests

The crate compiles and the suite passes after removing the module; no remaining references to normalize_history / NormalizedSnapshot.

Closes #467

NormalizedSnapshot and normalize_history were documented as the way to
summarize history "for dashboard telemetry", but no contract method
returned them and the type was not #[contracttype], so it could not cross
the contract boundary. The documented dashboard path did not exist and
nothing it exposed was actually obtainable on-chain. The dashboard
surface is now explicitly get_stats (cumulative aggregate) with
get_severity_telemetry (per-severity weekly windows); the module, its
lib.rs registration, and its ownership-list entries are removed and the
get_stats docs name the supported aggregate so no dashboard path points
at an unexposed type.

Closes ApexChainx#467
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@beulah7717108-eng Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@usmanimamu17-create usmanimamu17-create left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Clean refactor, merging.

@usmanimamu17-create usmanimamu17-create left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Clean, thanks!

@usmanimamu17-create
usmanimamu17-create merged commit 0dd56a7 into ApexChainx:main Aug 31, 2026
11 checks passed
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.

NormalizedSnapshot is orphaned: the dashboard aggregate documented in history_snapshot.rs is never exposed or used

2 participants