Skip to content

feat: add QA dataset export for events, views, and KPIs (#742)#782

Merged
Cedarich merged 2 commits into
Pulsefy:mainfrom
Ejirowebfi:feat/742-qa-dataset-export
May 27, 2026
Merged

feat: add QA dataset export for events, views, and KPIs (#742)#782
Cedarich merged 2 commits into
Pulsefy:mainfrom
Ejirowebfi:feat/742-qa-dataset-export

Conversation

@Ejirowebfi

Copy link
Copy Markdown
Contributor

closes #742

Summary

Implements #742 — adds repeatable QA dataset exports for events, materialized views, and KPIs, targeting a Stellar ledger range.

Changes

  • src/qa_exporter.pyQAExporter class with export_events(), export_views(), export_kpis(), and run() methods
  • scripts/export_qa_datasets.py — CLI script (--start-ledger, --end-ledger, --output-dir, --datasets)
  • scripts/README_qa_export.md — documents output format, envelope schema, and usage
  • tests/test_qa_exporter.py — 9 unit tests with mocked ledger range (all passing)

Usage

python scripts/export_qa_datasets.py --start-ledger 1000 --end-ledger 2000

Outputs events_1000_2000.json, views_1000_2000.json, kpis_1000_2000.json to exports/qa/.

Acceptance Criteria

- [x] Exports include raw events + materialized views
- [x] Can target a ledger range via --start-ledger / --end-ledger
- [x] Output format documented in scripts/README_qa_export.md

Testing

pytest tests/test_qa_exporter.py -v  # 9 passed

@drips-wave

drips-wave Bot commented May 27, 2026

Copy link
Copy Markdown

@Ejirowebfi 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

@Cedarich Cedarich merged commit f23ae9f into Pulsefy:main May 27, 2026
1 check 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.

Data-processing: Export Datasets for QA (Events, Views, KPIs)

2 participants