Skip to content

Add load testing, disaster recovery, exports, and cohort retention - #900

Merged
Smartdevs17 merged 2 commits into
Smartdevs17:mainfrom
codeX-james:fix/assigned-issues-846-851
Sep 28, 2026
Merged

Smartdevs17 merged 2 commits into
Smartdevs17:mainfrom
codeX-james:fix/assigned-issues-846-851

Conversation

@codeX-james

Copy link
Copy Markdown
Contributor

Summary

  • add configurable k6 smoke and staged payment-path load tests with a manual CI workflow
  • add a disaster recovery runbook, isolated restore drill automation, and verified-only backup restores
  • add CSV, JSON, and Excel exports for generated custom reports with formula-injection protection
  • add an aligned cohort-retention matrix endpoint for dashboard heatmaps

Validation

  • npm --workspace backend exec vitest -- run src/services/reports/report-export.test.ts src/services/__tests__/cohort-analytics.test.ts (16 tests passed)
  • shell syntax checks for backup and disaster-recovery scripts
  • JavaScript syntax checks for both k6 scripts
  • GitHub Actions workflow YAML parse checks
  • git diff --check

Closes #846
Closes #847
Closes #850
Closes #851

@vercel

vercel Bot commented Sep 25, 2026

Copy link
Copy Markdown

@JamesVictor-O is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Sep 25, 2026

Copy link
Copy Markdown

@codeX-james 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

@gitguardian

gitguardian Bot commented Sep 25, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

Since your pull request originates from a forked repository, GitGuardian is not able to associate the secrets uncovered with secret incidents on your GitGuardian dashboard.
Skipping this check run and merging your pull request will create secret incidents on your GitGuardian dashboard.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
15742864 Triggered Generic Password 6d52251 .github/workflows/backup.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@Smartdevs17
Smartdevs17 merged commit 35ba24e into Smartdevs17:main Sep 28, 2026
25 of 41 checks passed
github-actions Bot pushed a commit that referenced this pull request Sep 29, 2026
## Problem

`package.json` at the repo root is **not valid JSON**. The `scripts` block is missing a comma after `"release": "semantic-release"` and re-declares `"dev"`, which was already defined a few lines above:

```json
"release": "semantic-release"
"dev": "turbo run dev"
```

Because the manifest cannot be parsed, npm aborts before resolving a single workspace:

```
npm error JSON.parse Expected ',' or '}' after property value in JSON at position 1790 (line 36 column 5)
```

## Impact

- `npm install` / `npm ci` fail for every contributor.
- Any CI job that installs dependencies at the root fails before running.
- Frontend tests cannot even load: `vitest.config.ts` resolution walks up to the root manifest and dies with `Expected "," in JSON but found "\"dev\""`.
- The broken state is present on `main` (introduced in #900).

## Fix

Remove the duplicated `"dev"` key, which leaves the trailing comma issue moot and keeps the first `"dev": "turbo run dev"` definition.

## Verification

```bash
python3 -c "import json; json.load(open('package.json'))"   # valid
npm install --no-audit --no-fund --ignore-scripts          # resolves all workspaces
```

With this applied, the root install completes and workspace test tooling becomes runnable.


---
🤖 Generated with Codebuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants